aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 5556f062e4005bb0aa533abe21760f3741dafc68 (plain)
1
2
3
4
5
6
7
8
9
10
11
# cgifun

Just an extremely simple example of a CGI program with caddy web server and zig as the CGI program.

To run:
* Have caddy with [CGI plugin](https://caddyserver.com/docs/modules/http.handlers.cgi)
* Have [zig](https://ziglang.org/download/) programming language.
* `zig build && caddy run`
* Open http://localhost:8080 in your browser

You'll see a webpage full of environment variables which are passed as part of the CGI protocol to the cgifun program.