1
0
Fork
You've already forked sigil-web-demo
0
Demo web application built with Sigil
app
  • CSS 100%
Find a file
David Wilson 90d7a4d949 Migrate to 0.9.1 transitive deps with version ranges
- Remove tag pins (#v0.8.0) from dependency URLs
- Add version ranges (^0.9.0) to all dependencies
- Remove variable indirection for repo URL
- Generate lockfile with sigil deps install
- Update README build instructions to show sigil deps install
Note: sigil-sqlite native build fails without dev-redirects due
to missing sigil-lib headers (same class of issue as sigil-crypto).
Build works with dev-redirects pointing to local monorepo.
2026年04月01日 13:29:44 +03:00
assets/sigil-web-demo/css feat(web): Add Vinyl Vault demo application 2026年02月18日 08:27:28 +02:00
src/sigil/web feat: Add live-coding support via nREPL and SSE reload 2026年02月21日 15:24:54 +02:00
.gitignore Convert to standalone package 2026年03月31日 11:52:18 +03:00
CHANGELOG.md Release v0.6.0 2026年02月22日 16:05:53 +02:00
dev-redirects.sgl Convert to standalone package 2026年03月31日 11:52:18 +03:00
package.sgl Migrate to 0.9.1 transitive deps with version ranges 2026年04月01日 13:29:44 +03:00
README.md Migrate to 0.9.1 transitive deps with version ranges 2026年04月01日 13:29:44 +03:00
run.sgl Convert to standalone package 2026年03月31日 11:52:18 +03:00
sigil.lock Migrate to 0.9.1 transitive deps with version ranges 2026年04月01日 13:29:44 +03:00

sigil-web-demo

Demo web application showcasing sigil-web features. Implements "Vinyl Vault", a vinyl record collection CRUD app demonstrating routing, forms, data tables, pagination, flash messages, modals, SSE streaming, and server-driven UI.

Features

  • CRUD operations on a SQLite-backed vinyl record database
  • Search and pagination with server-driven partial updates
  • Flash messages for user feedback on create/update/delete
  • Modal dialogs for delete confirmation
  • SSE streaming for live stats updates on the home page
  • Live-coding support via nREPL and SSE reload
  • CSS-in-Sigil styles using sigil-css

Dependencies

Usage

Add as a dependency in your package.sgl:

(from-git url: "codeberg:sigil/sigil-web-demo")

Or clone and run directly:

sigil deps install
sigil build
sigil run run.sgl

The app starts a web server (default port 3000) and opens Vinyl Vault in your browser.

Modules

(sigil web demo)

Main entry point. Call (start-demo) to launch the web server with all routes configured.

(sigil web demo db)

SQLite database layer with schema initialization, seed data, and CRUD operations:

  • init-db - Create table and seed sample records
  • list-records - Paginated listing with optional search
  • count-records - Count with optional search filter
  • get-record / create-record / update-record / delete-record

(sigil web demo views)

SXML view functions for all pages and partials:

  • page-layout - Full HTML page shell with navigation
  • home-page - Welcome page with collection stats
  • records-list-page - Searchable, paginated record table
  • record-detail-page - Single record view with edit/delete actions
  • record-form-page - New/edit form with validation

License

BSD-3-Clause