Skip to content

jstutorials/node-js-user-auth-using-jwt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-js-user-auth-using-jwt

This nodejs app authenticate user using JWT.

How to configure nodejs app

  • Clone the repo
  • cd to the ~/node-js-user_aut-using-jwt
  • Run 'npm install'
  • ~/node-js-user_aut-using-jwt: node app.js

How to configure Mysql wiwth nodejs app

  • Create 'test' databse into mysql server.
  • Import login.sql table file into test database.
  • Create .env file into root of ~/nodejs_user_authentication_using_jwt folder.
  • Add database parameters into this file
DB_HOST=localhost
DB_NAME =test
DB_USER =root
DB_PASS=''

#Test nodejs application open http://project_name:3000 on browser.

Prerequisite

Node js (v0.12.3 or greater)

About

This node application used to create user authentication using JWT

Topics

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors