Skip to content

ArifRosandika/Project_MultiRole

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“Œ Project MultiRole

A Fullstack Web Application with multi-role authentication (Admin & User). Built with React + Redux Toolkit + TailwindCSS for the frontend, and Express + Sequelize (MySQL) for the backend.

πŸ“‚ Project Structure Project_MultiRole/ β”‚ β”œβ”€β”€ Backend/ # Backend API (Express + Sequelize) β”‚ β”œβ”€β”€ controllers/ # Business logic for routes β”‚ β”œβ”€β”€ database/ # Database configuration β”‚ β”œβ”€β”€ middleware/ # Auth/session middleware β”‚ β”œβ”€β”€ models/ # Sequelize models β”‚ β”œβ”€β”€ routes/ # API endpoints β”‚ β”œβ”€β”€ index.js # Backend entry point β”‚ β”œβ”€β”€ package.json
β”‚ β”œβ”€β”€ Frontend/ # Frontend (React + Vite + TailwindCSS) β”‚ β”œβ”€β”€ public/ # Static assets β”‚ β”œβ”€β”€ src/
β”‚ β”‚ β”œβ”€β”€ app/ # Redux store setup β”‚ β”‚ β”œβ”€β”€ auth/ # Authentication slice (Redux Toolkit) β”‚ β”‚ β”œβ”€β”€ component/ # Reusable components β”‚ β”‚ β”œβ”€β”€ pages/ # Main pages (Login, Dashboard, CRUD, etc.) β”‚ β”‚ β”œβ”€β”€ App.jsx # Root app β”‚ β”‚ β”œβ”€β”€ main.jsx # React entry point β”‚ β”œβ”€β”€ package.json
β”‚ └── README.md

πŸš€ Backend Setup πŸ”§ Dependencies "dependencies": { "argon2": "^0.44.0", "connect-session-sequelize": "^8.0.2", "cors": "^2.8.5", "dotenv": "^17.2.2", "express": "^5.1.0", "express-session": "^1.18.2", "mysql2": "^3.14.5", "sequelize": "^6.37.7" }

βš™οΈ Installation cd Backend npm install

▢️ Run Backend npm start

The backend runs at http://localhost:5000

🎨 Frontend Setup πŸ”§ Dependencies "dependencies": { "@reduxjs/toolkit": "^2.9.0", "@tailwindcss/vite": "^4.1.13", "axios": "^1.12.1", "react": "^19.1.1", "react-dom": "^19.1.1", "react-icons": "^5.5.0", "react-redux": "^9.2.0", "react-router-dom": "^7.9.1", "tailwindcss": "^4.1.13" }

βš™οΈ Installation cd Frontend npm install

▢️ Run Frontend npm run dev

The frontend runs at http://localhost:5173

πŸ”‘ Features

βœ… Authentication with hashed passwords (argon2)

βœ… Role-based access control (Admin / User)

βœ… Session management (express-session + sequelize)

βœ… CRUD for Users & Products

βœ… Protected routes with React Router + Redux

βœ… Responsive UI with TailwindCSS

πŸ› οΈ Tech Stack

--- Frontend ---

  • React

  • Redux Toolkit

  • React Router DOM

  • TailwindCSS

  • Axios

--- Backend ---

  • Express

  • Sequelize ORM

  • MySQL

  • Argon2 (password hashing)

  • Express-session + connect-session-sequelize

πŸ“œ License

MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages