Webspresso Basic SSR Example

A minimal server-side rendered application demonstrating:

  • File-based Nunjucks routing (pages/index.njk)
  • Server-side data fetching via load() (pages/index.js)
  • JSON API endpoint (pages/api/health.get.js)
  • Static asset serving (public/css/style.css)
  • Layout block inheritance (views/layout.njk)

Running Locally #

BASH
# Start development server with live reload
npm run dev

# Or start directly with Webspresso CLI
npx webspresso dev

Open http://localhost:7331 in your browser.

Created · Updated