Sailor - A MVC framework in Lua

I will be working with Lablua this summer as part of Google Summer of Code (GSoC). 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. View the proposal here

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

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.

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

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.

· coding, lua, GSoC, web, elasticsearch, internship