Node/Express/Mongoose Example App

NestJS codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld API spec.


About

The project uses GRASP and SOLID patterns. There is an emphasis on the division of responsibility, layered architecture

Note

The database for the project is used in a docker container, so you will need tools to work with the docker

Download

git clone https://github.com/mr-scrpt/medium-nest-prisma.git
cd medium-nest-prisma

Install dependencies

$ yarn install

Start Postgres DB on docker container

$ docker-compose up -d

Run migration for DB

$ yarn migrate:dev

(Optional) Add seed data

$ yarn seed:dev

Running the app

# development
$ yarn start:dev

# prod mode
$ yarn run start:prod