benbowes / nestjs-rest-api

A CRUD REST API using the NodeJS NestJS framework and MongoDB/Mongoose

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NestJS REST API

A CRUD REST API using the NestJS framework and MongoDB/Mongoose.

Setup

Create a .env file in the root of the project with your mongodb uri

e.g.

DB_CONNECTION_STRING=mongodb+srv://<USERNAME>:<PASSWORD>@<URL>/<DATABASE_NAME>?retryWrites=true&w=majority

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

About

A CRUD REST API using the NodeJS NestJS framework and MongoDB/Mongoose


Languages

Language:TypeScript 100.0%