Unix Philosophy Webserve
HEAD Latest release released
29 1
Veronika Tyler

The Unix Webserver

Uses toml config file to map http routes to executables.

Example config.toml

"/" = "./echo.sh"

When you curl host:3000?FOO=bar it calls echo.sh with the FOO=bar environment variable.

echo This is a bash script. FOO is equal to $FOO

Echos This is a bash script. FOO is equal to bar

This works for any executable

Another example:


"/time" = "date"

Shell output

$ curl localhost:3000/time
Sat May 20 05:20:49 PDT 2017

The idea is to have a webserver that follows the Unix Philosophy

  github: hackervera/unix-web
License MIT
Crystal 0.22.0


Dependencies 4

  • db
    {'github' => 'crystal-lang/crystal-db'}
  • kemal master
    {'branch' => 'master', 'github' => 'kemalcr/kemal'}
  • pg
    {'github' => 'will/crystal-pg'}
  • toml master
    {'branch' => 'master', 'github' => 'manastech/crystal-toml'}

Development Dependencies 0

Dependents 0

Last synced .
search fire star recently