An open API service indexing awesome lists of open source software.

https://github.com/benbowes/nestjs-rest-api

A CRUD REST API using the NodeJS NestJS framework and MongoDB/Mongoose
https://github.com/benbowes/nestjs-rest-api

Last synced: over 1 year ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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://:@/?retryWrites=true&w=majority
```

## Installation

```bash
$ npm install
```

## Running the app

```bash
# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod
```