MVC api project with NodeJS and Express and MongoDB
# 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 :)
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
- 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
header for send token : x-access-token