Skip to content
This repository has been archived by the owner on Jan 14, 2022. It is now read-only.
/ planning-demo Public archive

Domain-Driven Design, showing tactical design patterns inside a NestJS application.

Notifications You must be signed in to change notification settings

3dmind/planning-demo

Repository files navigation

Domain-Driven Design: Tactical Design Demo

Quality Gate Status Coverage Code Smells Technical Debt

Description

Showing tactical design patterns inside a NestJS application.

Initial setup and installation

Install all dependencies

$ yarn install

Database setup

To set up the database with a small initial dataset you have to build the docker image for the database migrations. The image includes a script to seed the database.

$ cd prisma
$ docker build -t planning_db_migrate .

Running the app

Start docker-containers

$ docker-compose up -d

Start the app

# development
$ yarn run start

# watch mode
$ yarn run start:dev

# production mode
$ yarn run start:prod

Test

Unit tests

$ yarn run test

Unit tests with coverage

$ yarn run test:cov

E2E tests

Make sure to run all docker containers before executing the e2e tests.

$ yarn test:e2e --runInBand --forceExit

Reset the database after the test run.

$ yarn db:migrate:reset

Docker

To take down all containers and get rid of all volumes.

$ docker-compose down --volumes

About

Domain-Driven Design, showing tactical design patterns inside a NestJS application.

Topics

Resources

Stars

Watchers

Forks

Languages