<-- home

Lablua - Sailor Framework

I will be working with Lablua as part of Google Summer of Code, 2016. I shall be extending the Sailor framework by adding an centralized configuration editor and adding integrations to facilitate Elasticsearch indexes to be stored as Sailor Models. Sailor is a Web Framework.

What is a Web Framework ?

From Wikipedia,

A web framework (WF) or web application framework (WAF) is a software framework that is designed to support the development of web applications including web services, web resources and web APIs.

As it says, it’s basically used to remove the same redundant overhead associated with creating web applications. Most web applications have/do the following things

  • Database access, mapping, configuration
  • Session Management
  • User Interfaces
  • Secure authorization and authentication
  • URL routing/mapping

Web frameworks promote code re-use by providing easy ways to do the above mentioned stuff. They differ in each other in their architectural pattern, the most common one being the M(Database logic) V(User Interface) C(Business logic) MVC architecture.

I will be working on a Web Framework named Sailor this summer. {: .text-justify}## Sailor Sailor is a web development framework and all applications are structured in a MVC(Model-View-Controller) architecture. It uses a Javascript virtual machine for use of Lua in the browser if required. An example of the JS Virtual Machine can be found here

Features


  • Compatible with Lua 5.1, Lua 5.2 and LuaJIT
  • MVC Structure
  • Routing
  • Friendly URL’s
  • Lua at Client using JS virtual machines deployed with the application
  • Model generation from the database
  • CRUD function generation using the models
  • Validation module
  • Object relational mapping(ORM layer for the database.)
  • Form Generation
  • Integrated Themes and layouts
  • Runs on both nix and windows

What exactly am I doing for Sailor ?

Centralized configuration editor


Most web frameworks generally have an admin center for editing configuration files, making controllers, models etc. Sailor has autogenerator fucntions which create models and controllers for you. My task is to encompass a configuration file editor, the autogen functions inside a protected environment for use in development.

Elasticsearch Integration


Elasticsearch is a search database server based on Apache Lucene. It can be used to search all kinds of documents. It provides scalable search, has near real-time search, and supports multitenancy(One instance of a software being shared by multiple users).
There is a low level client for this in lua called elasticsearch-lua and I shall be integrating this into Sailor. Once done, you can search an elasticsearch instance using the form module in Sailor. You can also use Elasticsearch indexes as Sailor Models.

Edit: I worked on these features and you can see the corresponding pull request here.