Shard Detail

unix-web v0.1.0

Unix Philosophy Webserver

Install & Use

Add the following code to your project's shard.yml under:

dependencies to use in production
- OR -
development_dependencies to use in development

  github: hackervera/unix-web


The Unix Webserver

Uses toml config file to map http routes to executables.

Example config.toml

"/" = "./"

When you curl host:3000?FOO=bar it calls 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