Skip to content

Creating API with JWT user authentication using Express, Passport JWT and ArangoDB

Notifications You must be signed in to change notification settings

mikicoding/node-rest-auth-arangodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-rest-auth-arangodb

Creating API with JWT user authentication using the following:

  • nodejs
  • Express
  • jwt
  • passport
  • ArangoDB

Requirements

  1. Install ArangoDB
  2. Install Node.js

Configure /include/config.js

  1. Set JWT secret key
  2. Set location to ArangoDB
  3. Set database in ArangoDB

Install

npm install

Run

  1. Make sure ArangoDB is running
  2. node server

RESTful API endpoints

POST /api/users/register

Register by providing username and password.

POST /api/users/authenticate

Authenticate by providing username and password.

GET /api/users/memberinfo

Get user data by providing token.

Credits

Based on https://github.com/clemudensi/nodeJS_backend

License

MIT

About

Creating API with JWT user authentication using Express, Passport JWT and ArangoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published