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

https://github.com/mahdimotamedi/nodejs-mongodb-api-example

MVC api project with NodeJS and Express and MongoDB
https://github.com/mahdimotamedi/nodejs-mongodb-api-example

api example expressjs mongodb mvc nodejs

Last synced: 6 months ago
JSON representation

MVC api project with NodeJS and Express and MongoDB

Awesome Lists containing this project

README

          

# NodeJS and MongoDB api example

> MVC api project with NodeJS and Express and MongoDB

## Build Setup

``` bash
# install dependencies
npm install

# serve application at localhost:8081
npm start

# serve application at localhost:8081 for developing
npm run dev

# do not forget to run mongodb :)
```

## Postman

our api test is on postman:

https://www.getpostman.com/collections/91ec44dd2f21635f6192

> please install Postman and import collection to test api.

it's a very handy software to test api and make doc for that

## Packages

* **bcrypt** : encryption password
* **emailsender** : send emails
* **express-rate-limit** : rate limit of express
* **express-validator** : validate requests
* **jsonwebtoken** : make json web token
* **mongoose** : connect and use MongoDB
* **mongoose-paginate** : pagination data for MongoDB
* **mongoose-timestamp** : CreatedAt and UpdatedAt fields for MongoDB
* **multer** : upload files
* **uniqid** : make string for validate email

## Help

**header for send token** : x-access-token