Next: , Up: Basic in GNU Artanis   [Contents]

7.1 How to run a site with GNU Artanis

This is the simplest case to run a site:

#!/bin/env guile
!#
(use-modules (artanis artanis))
(init-server)
(get "/hello" (lambda () "hello world"))
(run)