/nestjs-mongo-docker

Nest.js + Mongo + Docker Starter

Primary LanguageTypeScriptMIT LicenseMIT

Nest Logo

Nest.js + MongoDB + Docker Starter

This is starter project for Nest.js, MongoDB and Docker. You can easily start your production ready containered project by forking this repo.

How to use

Install dependencies

$ npm install

Run docker container in development mode

$ npm run docker:dev

or

$ docker-compose up

Create and run docker container on production

$ docker build -t app-name . && docker run app-name -p 8080:3000

Running the app without Docker and MongoDB

# 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

Learn more

License

This project is MIT licensed.