- Install packages
$ yarn install
- Setup env files
$ cp ./.env.development.template ./.env.development
$ cp ./.env.production.template ./.env.production
# development
$ yarn run start
# watch mode
$ yarn run start:dev
# production mode
$ yarn run start:prod
Running with Docker will ensure that users can quickly get environment up and running so they can quickly iterate on work. The application will work regardless of operating system and configuration.
- Download Docker Desktop or Docker (for Linux).
- Ensure you have Docker running. You can set it to run on device startup in Docker Desktop so you can forget about it. If you are unable to install Docker Desktop, you can use the command
dockerd
to start Docker. - Build the Docker image using
docker build -f Dockerfile -t backend .
- Run
docker run -it -p 4200:4200 backend
to run the frontend in a docker container.
# unit tests
$ yarn run test
# test coverage
$ yarn run test:cov