Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 1.21 KB

File metadata and controls

25 lines (18 loc) · 1.21 KB

Courvux examples

Self-contained example projects covering the most common Courvux patterns.

# Example Build step What it shows
01 TodoMVC None — open index.html Components, computed, watchers, deep persistence to localStorage, keyed cv-for, dynamic :cv-ref
02 Counter (Tauri-friendly) None — open index.html Minimal reactive counter you can drop into a Tauri / Electron / mobile webview shell
03 SSG blog pnpm build useHead, courvux/plugin/ssg, history mode + base, sitemap, dynamic-route prerender
04 Island mode None — open index.html autoInit() upgrading cv-data islands inside server-rendered HTML — no full SPA

Each example has its own README.md with a quick start. Most run without a build step via an import map pointing at the local Courvux dist.

Running examples without a bundler

The "no build step" examples include a small dev server you can use:

# Any of these work — pick one:
npx serve .
python3 -m http.server 5500
php -S localhost:5500

Then open the example's URL (e.g. http://localhost:5500/examples/01-todomvc/).