Lua + MongoDB + HTMX + Tailwind
HTTP server built on top of luv.
This repository is above all a Lua learning exercise. Do not use this in production by any means.
- File-system routing for easy definition of new routes;
- Responses compressed with zlib;
- APIs for common use cases (HTTP, HTMX, routing, path resolving, plugins and such).
👷♂️ Work in progress!
config/: Contains.luafiles with app-related configurations, such as the port number etc;lib/: Has all dependencies to build & bootstrap an HTTP server with routes, plugins and such. This folder is and should be separated of all the server business logic; It is a framework per se;public/: The folder server as the static directory from the HTTP server by default;server/: The application itself;install: Installs all dependencies to run the server (rocks,tailwindcss/clietc);build: Builds the app styles with Tailwind's CLI;start: Starts the HTTP server;watch: Starts the HTTP server in watch mode;dev: Runs bothbuildin watch mode andwatch.
build-essentialmongo-c-driverinotify-toolsfor devmprocsfor dev
./install./start [port] # defaults to `39179`This command will start the tailwindcss build in --watch mode; it'll also run the HTTP server in watch mode, meaning it'll restart on every file change detected.
./dev [port]- Add websocket support
- Would
sqlitebe better?