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
- Host: GitHub
- URL: https://github.com/mahanteshkumbar/nodejs-ejs-role-jwtoken-auth-sequilizemigration-express-framework
- Owner: Mahanteshkumbar
- Created: 2022-05-17T14:29:02.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-24T05:13:54.000Z (about 4 years ago)
- Last Synced: 2025-06-17T09:04:09.716Z (12 months ago)
- Topics: 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
- Language: SCSS
- Homepage:
- Size: 6.65 MB
- Stars: 6
- Watchers: 1
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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

# Login Page with validation

# Signup Page with validation

# Admin Dashboard

# Admin Dashboard Roles

# Admin Dashboard Users

# User Dashboard
