Vue Starter Kit
The Vue starter kit is a generated frontend scaffold for Apps that enable the Web UI component.
It gives the App a frontend/ project with Vue, Vite, TypeScript, routing, styling, and an initial build artifact.
When It Appears
The starter kit selection appears during forj new when Web UI is enabled.
If Web UI is disabled, starter kit selection is skipped and the starter kit is cleared.
If the demo App is selected, the demo owns its own frontend and the starter kit is not applied.
Generated Ownership
The Vue starter kit writes:
frontend/Important files include:
frontend/package.jsonfrontend/vite.config.tsfrontend/src/App.vuefrontend/src/main.tsfrontend/src/router.tsfrontend/src/style.cssfrontend/dist/index.html
The generated frontend is App-owned after it is created. Edit it like normal application code.
Rendering Behavior
When the Vue starter kit is scaffolded, the existing frontend/ directory can be replaced.
Do not select the starter kit over an existing custom frontend unless replacing it is intentional.
Development
Generated dev configuration can add a pre-task:
cd frontend && npm installand a frontend watcher when Web UI is enabled.
Use:
forj devfor the generated local watcher workflow.
Serving Assets
When Web UI is enabled, generated main.go embeds frontend/dist and registers the SPA with the HTTP runtime.
Build frontend assets before relying on embedded production output:
cd frontend
npm run buildCommon Mistakes
Common mistakes
- Do not assume starter kit files remain framework-owned after generation.
- Do not rerender over a custom frontend unless replacement is intended.
- Do not depend on
node_modulesbeing part of the template output. - Do not confuse Web UI with Web API; they are separate component choices.
