safsaf/examples/blog-site/README.md
2026-04-14 15:30:10 +03:00

591 B

Blog Site Example

A small blog application demonstrating Safsaf's routing, handler wrappers, sessions, CSRF protection, and content negotiation. Uses SQLite for storage.

Running

From the repository root:

./pre-inst-env guile -L examples/blog-site examples/blog-site/blog-site.scm

Or from the example directory:

cd examples/blog-site
../../pre-inst-env guile -L . blog-site.scm

The server listens on http://localhost:8082.

The session secret and database path are hard-coded for demonstration purposes — do not use these values in production.