Skip to content
Node Token-based Authentication REST APIs tutorial with examples - learn how to build a secure user authentication CRUD APIs using JSON web token.
JavaScript
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
database first commit Oct 12, 2019
middlewares first commit Oct 12, 2019
models first commit Oct 12, 2019
node_modules first commit Oct 12, 2019
routes Updated id key in signin api Oct 16, 2019
.DS_Store first commit Oct 12, 2019
README.md Update README.md Oct 12, 2019
package.json first commit Oct 12, 2019
server.js first commit Oct 12, 2019

README.md

node-token-based-authentication

Node Token-based Authentication REST APIs tutorial with examples - learn how to build a secure user authentication CRUD APIs using JSON web token.

Written Article

Build Secure (JWT) Token Based Authentication API with Node

Authentication REST APIs

  • GET (users list) /api
  • POST (sign-in) /api/signin
  • POST (sign-up) /api/register-user
  • GET (user profile) /api/user-profile/id
  • PUT (update user) /api/update-user/id
  • DELETE (delete user) /api/delete-user/id

Start Node Server

  • Run npm install to install required packages
  • Open terminal run nodemon
  • Open other terminal run mongod

Open API URL on http://localhost:4000/api

You can’t perform that action at this time.