This is a template that gets you easily started with svelte, routify, vite and express.
In development it will serve the development version of the frontend, on a separate server.
In production as build it will serve the front end build on the same server.
Run npm run client-install
.
Create .env
file in root with at least NODE_ENV = dev
in it.
Run server: npm run dev
basic commands:
npm run client-install
will install the client side packages (Launch this first IMPORTANT) npm run client-build
npm run server-run
npm run client
npm run dev
npm run build-server
production
as NODE_ENV
in .env
)If I've forgotten anything feel free to create an issue.