- While NPM can be used, YarnPkg is preferred for its speed and version locking.
- Run
yarn
inside ofclient
andserver
before running or building.
- Install MySQL, Redis, and a Node.js version that supports ES2015.
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