Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,17 @@ The Go process applies pinned, embedded Goose migrations before opening the appl

## Product page and demo

`web/product/` is the public product page, and `npm run build:demo` builds the real app against in-browser sample data. `npm run screenshots` captures the app screenshots the page shows, and `npm run build:pages` builds both into `web/dist-pages`. The Pages workflow deploys that on every merge to `main`.
`web/product/` is the public product page, and the demo is the real app running against in-browser sample data. Neither needs the Go backend. From `web/`:

```sh
npm run dev:product # product page with live reload
npm run dev:demo # demo at /demo/ with live reload
npm run screenshots # capture the app screenshots the page shows
npm run build:pages # build both into dist-pages/
npm run preview:pages # serve dist-pages/ as GitHub Pages does
```

The Pages workflow deploys `dist-pages` on every merge to `main`. `npm run dev` is the full app and needs the Go process from the steps above.

## Run on local Kubernetes

Expand Down
5 changes: 4 additions & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@
"type": "module",
"scripts": {
"dev": "vite",
"dev:product": "vite --config vite.product.config.ts",
"dev:demo": "vite --mode demo --base /demo/",
"build": "tsc -b && vite build",
"check": "tsc -b --pretty false",
"format": "prettier --write .",
"format:check": "prettier --check .",
"test:e2e": "playwright test",
"build:demo": "tsc -b && vite build --mode demo --base /demo/ --outDir dist-demo",
"screenshots": "playwright test --config playwright.screenshots.config.ts",
"build:pages": "rm -rf dist-pages && tsc -b && vite build --config vite.product.config.ts && vite build --mode demo --base /demo/ --outDir dist-pages/demo"
"build:pages": "rm -rf dist-pages && tsc -b && vite build --config vite.product.config.ts && vite build --mode demo --base /demo/ --outDir dist-pages/demo",
"preview:pages": "vite preview --config vite.product.config.ts"
},
"dependencies": {
"@fontsource-variable/geist": "^5.3.0",
Expand Down
Loading