Skip to content

mahdimotamedi/nodejs-mongodb-api-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeJS and MongoDB api example

MVC api project with NodeJS and Express and MongoDB

Build Setup

# 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

About

MVC api project with NodeJS and Express and MongoDB

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published