An open API service indexing awesome lists of open source software.

https://github.com/mahanteshkumbar/nodejs-ejs-role-jwtoken-auth-sequilizemigration-express-framework

role based authentication node.js and express.js sequelize migration
https://github.com/mahanteshkumbar/nodejs-ejs-role-jwtoken-auth-sequilizemigration-express-framework

admin-dashboard authentication csrf-protection express express-validation expressjs jwt jwt-authentication material-bootstrap migration mysql node-admin-dashboard node-role-based-login nodejs role role-based-authorization sequelize sequelize-cli sequelize-orm

Last synced: 8 months ago
JSON representation

role based authentication node.js and express.js sequelize migration

Awesome Lists containing this project

README

          

# Nodejs-EJS-Role-JWToken-Auth-SequilizeMigration-Express-Framework materail bootstrap Role Based authentication CSRF protection

This is a Node.js v17.6.0 with framewokr Express.js admin panel starter project with Token based authentication and session management, Server Side Error handling, form field validations. Used Sequilize

Used Sequelize is a promise-based Node.js ORM tool for MySQL Server, You can use migrations to keep track of changes to the database. With migrations you can transfer your existing database into another state and vice versa.

Genrate models, seeds, migration files with npx sequelize-cli model:generate --name UserHasRole --attributes userId:integer for more information visit sequilize official documentatiom for Sequelize migration section.

# Installation
It is a full Node.js and Express.js and Sequilize Migrations project that you should use as a starter project and implement your own functions.

* Clone the repository with git clone
* modify the config/config.json file for mysql server configuration(username and password)
* Run npm install
* Run npx sequelize-cli db:migrate:all
* Run npx sequelize-cli db:seed:all
* Run npm start
* That's it: launch the main URL and login with default credentials for admin admin@admin.com - 123456, for user user@user.com - 123456

# Home Page
![picture alt](https://github.com/Mahanteshkumbar/Nodejs-EJS-Role-JWToken-Auth-SequilizeMigration-Express-Framework/blob/main/snapshots/homepage.png)

# Login Page with validation
![picture alt](https://github.com/Mahanteshkumbar/Nodejs-EJS-Role-JWToken-Auth-SequilizeMigration-Express-Framework/blob/main/snapshots/servervalidation.png)

# Signup Page with validation
![picture alt](https://github.com/Mahanteshkumbar/Nodejs-EJS-Role-JWToken-Auth-SequilizeMigration-Express-Framework/blob/main/snapshots/register.png)

# Admin Dashboard
![picture alt](https://github.com/Mahanteshkumbar/Nodejs-EJS-Role-JWToken-Auth-SequilizeMigration-Express-Framework/blob/main/snapshots/dashboard.png)

# Admin Dashboard Roles
![picture alt](https://github.com/Mahanteshkumbar/Nodejs-EJS-Role-JWToken-Auth-SequilizeMigration-Express-Framework/blob/main/snapshots/dashboard1.png)

# Admin Dashboard Users
![picture alt](https://github.com/Mahanteshkumbar/Nodejs-EJS-Role-JWToken-Auth-SequilizeMigration-Express-Framework/blob/main/snapshots/dashboard2.png)

# User Dashboard
![picture alt](https://github.com/Mahanteshkumbar/Nodejs-EJS-Role-JWToken-Auth-SequilizeMigration-Express-Framework/blob/main/snapshots/userdashboard.png)