~jturner/astro

A small, simple web framework for Lua
Update dkjson
Add ability to destroy a session
Handle a POST without any content correctly

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~jturner/astro
read/write
git@git.sr.ht:~jturner/astro

You can also use your local clone with git send-email.

Astro is a small, simple web framework for Lua. It targets the 5.2
release and is released under the ISC license.

Astro is designed to be used as a library. Running install.sh will copy
Astro to the /usr/local/share/lua/5.2 directory. Astro has no external
dependencies other than a web server to run it from.

Web applications built using Astro must follow a specific directory
structure. An extremely simple example weblog application is included to
help get you started. If you keep the current checkout's directory
structure you should be able to run the example without the need to
install Astro system wide if you don't want to. The example application
uses the luasqlite3 library found here:
https://github.com/jturner/luasqlite3.

Astro uses CGI and has a single index.cgi entry point. The website's
document root should be set to the public folder. You will also want to
make sure db/, db/blog.db and tmp/ are group writeable by the web
server.

To periodically remove old session files you may want to run something
similar to the following via cron

find /var/www/htdocs/example/tmp -type f -atime +1 -exec rm {} \;

Additional information can be found at: http://astro.calminferno.net/