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
- Host: GitHub
- URL: https://github.com/benbowes/nestjs-rest-api
- Owner: benbowes
- Created: 2020-07-30T07:46:04.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-01-16T20:02:26.000Z (over 1 year ago)
- Last Synced: 2025-03-31T11:35:37.306Z (over 1 year ago)
- Language: TypeScript
- Size: 1.17 MB
- Stars: 10
- Watchers: 1
- Forks: 7
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
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
```