The lua app is inside web.lua which is compiled using moonscript compiler from web.moon The nginx conf is inside nginx.conf Requires a nginx compiled with ngx_lua module, see openresty.org, and ngxpostgres which is bundled with openresty. Requires lapis framework installed
luarocks install lapis
Requires postgresql hostname specified as IP address, if not possible then add resolver conf to nginx.conf.
The lapis benchmark is using its ORM, and no raw queries.
http://localhost:8080/db?queries=2
http://localhost:8080/fortunes