/nestjs-mongodb

Simple NestJS application connecting to MongoDB

Primary LanguageTypeScript

NestJS with MongoDB

Installation

$ npm install

Running

This example requires docker.

Docker

There is a docker-compose.yml file for starting Docker.

$ docker-compose up -d

After running the sample, you can stop the Docker container with

$ docker-compose down

Running NestJS

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod