Next: , Up: GNU Artanis Basics   [Contents]

7.1 How to run a site with GNU Artanis

This is the simplest way to run a site:

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