$ cp .env.example .env
- fill
.env
with your environment variables
- prepare your Docker engine file sharing settings
or open the project manually:
# clone the repository
$ git clone https://github.com/95gabor/book-store
# open the project folder
$ cd book-store
# open the project in vscode
$ code .
and then:
ctr
/ cmd
+ shift
+ p
> Dev Containers > Open Folder in Container...
# uses docker.compose.yaml and docker.compose.override.yaml by default
$ docker compose up
# build all containers that has build configuration
$ docker compose build
# replace `my-migration` with the migration name that you want
$ docker compose exec book-store npm run migration:generate ./src/migrations/my-migration
# Run unit tests
$ docker compose exec book-store npm run test
# Run E2E tests
$ docker compose exec book-store npm run test:e2e
# Start containers in production mode
# may require to rebuild the image (use `--build` flag)
$ docker compose -f docker-compose.yaml up
# Do a clean install
$ npm ci
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
Nest is MIT licensed.