/fserv

:avocado: lua http runtime

Primary LanguageCzlib LicenseZlib

ABOUT

  'fserv' is a minimal lua http runtime, with a focus on

    - simplicity
    - server side rendering
    - archivability

DEMO

  check out 'demo.lua'

BUILD

  $ make

    builds locally under 'build/'

  $ make install

    installs the binary to '/usr/local/bin/fserv'

  $ make run

    runs 'demo.lua'

USAGE

  $ fserv ?.lua

    runs the lua file

  $ fserv

    without args will serve static files in current directory, use PORT env variable to set port, defaults to 8000

ASYNC

  the http part is based on httpserver.h [0], which is non-blocking on Linux / BSD

  [0] https://github.com/jeremycw/httpserver.h