yarn
inside of client
and server
before running or building.The client code is written in Svelte, which is compiled before it's downloaded.
Build for production:
yarn run build # build the client code and minify
yarn run server # build the client code for the server to render
Watch for development:
yarn run dev
The server code is written in TypeScript, using the Express framework for routing. It pre-renders each webpage so that Svelte can start faster.
In order to run the server, you must copy server/config/config.default.ts
to config.ts
.
Modify the defaults to match your setup.
Run production:
yarn run build # run this every time you pull
yarn run run
Run development:
yarn run dev
Then connect to localhost:3000