/Advance-Express.js-MVC

Advance Node.js project. Creating Shop API (CRUD). Creating auth API. Hashing pass and creating jwt token.

Primary LanguageJavaScript

"# Advance-Express.js-for-SCIC"

Creating Shop REST API

Overview:

  • GET -- get all shop data from mongoDB
  • GET -- findById one shop detail
  • POST -- create one shop save to the mongoDB
  • PUT -- update shop with findByIdAndUpdate and check user authenticatoin
  • DELETE -- delete shop with findOneAndDelete and check user authenticatoin
  • Register API -- with jwt token res and save hash password
  • Login API -- comparison given pass with DB hash pass

Technology:

  • Node.js / Express.js
  • mongoDB / mongoose
  • bcryptjs / jsonwebtoken
  • MVC pattern