Lapis web framework running on top of OpenResty with LuaJit
Trying out a new framework for me called Lapis. Built on top of OpenResty making for fast rendering of content with LuaJit compiling. I decided to record down my findings for how to accomplish using Lapis tonight.
I started with Ubuntu 15 and the rest is a summary of:
build + install OpenResty
testing Lapis with sample Lua application
For now, this is a good starting point. Next up, I would like to try sending queries to a database.
Install OpenResty 188.8.131.52
Make a plain app to test OpenResty
Create the application
Create nginx configuration file
Contents of ~/conf/nginx.conf
Start the applicatoin
To start the application you need to load your environment’s path with the custom nginx binary that is compiled with OpenResty
We are now ready to test the application with a curl call
The expected output should be:
Now that we have the OpenResty confirmed working, time to move on to the Lapis framework.