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
- Host: GitHub
- URL: https://github.com/mahdimotamedi/nodejs-mongodb-api-example
- Owner: mahdimotamedi
- Created: 2018-06-24T06:08:56.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-01T12:42:34.000Z (over 7 years ago)
- Last Synced: 2025-04-01T21:05:25.107Z (9 months ago)
- Topics: api, example, expressjs, mongodb, mvc, nodejs
- Language: JavaScript
- Size: 14.6 KB
- Stars: 10
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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