safsaf/examples/blog-site
2026-04-14 15:30:10 +03:00
..
static Initial commit 2026-04-13 14:24:19 +03:00
blog-site.scm Neaten up the blog site example 2026-04-14 15:30:10 +03:00
model.scm Neaten up the blog site example 2026-04-14 15:30:10 +03:00
README.md Neaten up the blog site example 2026-04-14 15:30:10 +03:00
views.scm Neaten up the blog site example 2026-04-14 15:30:10 +03:00

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.