Skip to content

Authentication boilerplate based on ExpressJS, Sequelize, Passport, JsonWebToken and MariaDB

License

Notifications You must be signed in to change notification settings

manfredipist/express-sequelize-passport-jwt-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

express-sequelize-passport-jwt-auth

Authentication boilerplate based on ExpressJS, Sequelize, Passport, JsonWebToken and MariaDB

Contents

Getting Started - install

Before running the project it's mandatory to have a MariaDB server running with a schema called 'ExpressSequelizePassport'

  1. Configure your environment on conf/index.js file

  2. Run the following command on the root folder:

npm install
  1. Finally launch the server
node index.js

API

HTTP MethodServiceDescription
POST /basic/register Register an account. You must pass the following parameters:
  • name: String
  • surname: String
  • number: String
  • email: String
  • password: String
POST /basic/login Login an user and return a jwt. You must pass the following parameters:
  • email: String
  • password: String
GET /auth/secure Return a success message in case of valid authentication. You must pass an header called "auth_token" to the request

You can download an example of Postman collection here

Donate

If you've found this project useful, please consider to donate me a coffee

Donate

About

Authentication boilerplate based on ExpressJS, Sequelize, Passport, JsonWebToken and MariaDB

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published