/nodejs-auth

RESTful API Auth Service using nodejs and JWT

Primary LanguageJavaScript

nodejs-auth

RESTful API Auth Service using nodejs and JWT

Tools

  • node.js
  • npm
  • mongodb

Dependencies to be installed via npm

Run npm install then will be automatically installed these:

  • bcrypt : hash your plain password and store hashed password in database
  • body-parser : Parse incoming request bodies in a middleware before your handlers, available under the req.bodyproperty
  • express : Express is a minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications.
  • jsonwebtoken : JSON Web Token (JWT) is an open standard (RFC 7519) that defines a compact and self-contained way for securely transmitting information between parties as a JSON object.
  • mongoose : Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment.
  • morgan : HTTP request logger middleware for node.js
  • nodemon : nodemon will watch the files in the directory in which nodemon was started, and if any files change, nodemon will automatically restart your node application.

Run

npm start