Frontend SPA (Vite) template — z3k platform
Find a file Use this template
Arthur Zinck 2523feb4bb
Some checks failed
build-image / build (push) Failing after 2s
ci: preview build on pull requests
2026-07-27 11:51:41 +00:00
.forgejo/workflows ci: preview build on pull requests 2026-07-27 11:51:41 +00:00
src feat: frontend template — src/style.css 2026-07-26 21:09:11 +00:00
.dockerignore feat: frontend template — .dockerignore 2026-07-26 21:09:13 +00:00
.gitignore feat: frontend template — .gitignore 2026-07-26 21:09:13 +00:00
Caddyfile feat: frontend template — Caddyfile 2026-07-26 21:09:12 +00:00
Dockerfile feat: platform base images (z3k-images) 2026-07-27 07:13:52 +00:00
index.html feat: frontend template — index.html 2026-07-26 21:09:10 +00:00
package.json feat: frontend template — package.json 2026-07-26 21:09:08 +00:00
README.md feat: frontend template — README.md 2026-07-26 21:09:15 +00:00
tsconfig.json feat: frontend template — tsconfig.json 2026-07-26 21:09:09 +00:00

frontend

Vite single-page app, built in CI and served by Caddy on the z3k platform. Push to main to deploy.

  • Listens on PORT (default 8080)
  • GET /health returns 200
  • 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