Skip to content

95gabor/book-store

Repository files navigation

Book Store App

Related docs

Recommended IDE

Configuration

$ cp .env.example .env
  • fill .env with your environment variables

Docker usage

Run in devcontainer

Open in Dev Containers

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...

standard Docker usage

Start in development mode

# uses docker.compose.yaml and docker.compose.override.yaml by default
$ docker compose up

Re-build

# build all containers that has build configuration
$ docker compose build

Generate migration

# replace `my-migration` with the migration name that you want
$ docker compose exec book-store npm run migration:generate ./src/migrations/my-migration

Run tests

# Run unit tests
$ docker compose exec book-store npm run test
# Run E2E tests
$ docker compose exec book-store npm run test:e2e

Production mode

# Start containers in production mode
# may require to rebuild the image (use `--build` flag)
$ docker compose -f docker-compose.yaml up

Host usage

Installation

# Do a clean install
$ npm ci

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

License

Nest is MIT licensed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published