dashboard-admin — Project README (EN)
Project Overview dashboard-admin is a fully responsive and dynamic admin panel built with Vite + React, featuring role‑based authentication for both Admin and User dashboards. Data is handled using Mock Data, and global state is managed using Context API.
Key Features
Admin Dashboard
• Role-based login
• Three main menus:
- Dashboard – Dynamic statistic cards, recent activities
- Activity – Latest activities
- Users – User list, edit roles, delete users, add users, search, filter, pagination
• Notification system (view & clear all)
• Admin profile page (update photo, change password)
• Log activity section
User Dashboard • Three menus:
- Dashboard – Stats, teams, ticket status
- Profile – Same features as admin profile
- Orders – Dynamic order list & statuses
• Logout functionality
• Notification system (same as admin)
Responsive Design The layout is fully responsive on mobile, tablet, and desktop.
Tech Stack
• Vite
• React
• React Router
• Context API
• CSS Modules
• React Icons
• Mock Data
Folder Structure (Suggested) src/ ├── assets/ ├── components/ ├── context/ ├── data/ ├── App.jsx └── main.jsx
Getting Started
-
Clone the Repository
git clone https://github.com/mrm-jamali/dashboard-admin.git -
Install Dependencies
npm install -
Start Development
npm run dev -
Build for Production
npm run build
Deploying on GitHub Pages
-
Update vite.config.js
export default defineConfig({ base: "/ dashboard-admin /", }); -
Build
npm run build -
Deploy
Upload the dist folder in GitHub Pages settings.