Frontend SPA (Vite) template — z3k platform
|
|
||
|---|---|---|
| .forgejo/workflows | ||
| src | ||
| .dockerignore | ||
| .gitignore | ||
| Caddyfile | ||
| Dockerfile | ||
| index.html | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
frontend
Vite single-page app, built in CI and served by Caddy
on the z3k platform. Push to main to deploy.
- Listens on
PORT(default8080) GET /healthreturns200- SPA fallback routing: unknown paths serve
index.html, so client-side routers just work - The demo page renders a raw WebGL animation — GPU work is client-side, the platform only serves static assets
React, Vue, Svelte, three.js... all work — this is just Vite. Swap in your
framework of choice, keep the build script emitting to dist/, and push.
Local development
npm install
npm run dev