cd web
yarn
yarn dev
cd server
docker compose up # Start db services for development
yarn
yarn watch # Watch for typescript file changes
On another tab:
yarn dev
yarn build
cd server
cp .env.example .env
Set the env variables in .env
. Then:
NODE_ENV=production yarn start
Or, with Docker - set the env variables in the Dockerfile and run:
docker build -t todos .
docker run -p 8080:8080 todos