Home

Awesome

What's this?

This repository contains a sample application for the Sailor MVC framework, set up to work with the Lwan web server. In a nutshell:

Getting started

  1. Clone Lwan: git clone https://github.com/lpereira/lwan;
  2. Follow its build instructions. You'll need Lua 5.1 (from PUC-Rio) or LuaJIT 2.0. Note: although Lwan will build on OS X and FreeBSD, it uses pkg-config to find the Lua libraries; while this tool is available for these operating systems, the .pc file necessary to find the Lua libraries is not usually shipped with Lua itself;
  3. There's no need to install Lwan, but note the path to the generated lwan binary. It's located in the build directory, under the lwan directory;
  4. Clone this repository: git clone https://github.com/lpereira/sailor-hello-lwan;
  5. Fetch the submodules: git submodule init and then git submodule update;
  6. Execute Lwan from the sailor-hello-lwan directory: /path/to/build/lwan/lwan -c conf/lwan.conf;
  7. It should be working! Click here to test;
  8. Now that it's working, consult the Things to fix section below. That's where the fun starts. Happy hacking!

Things to fix

Not everything is working in Lwan yet. Some things are easier to fix than others, and all help is welcome. It would be nice to support the following features:

License

The generated code is licensed under the same terms as Sailor MVC itself. The Lwan configuration file is licensed under CC0.