Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shivpr23/user_dashboard
https://github.com/shivpr23/user_dashboard
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/shivpr23/user_dashboard
- Owner: shivpr23
- Created: 2024-11-27T18:48:13.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-27T19:51:05.000Z (about 2 months ago)
- Last Synced: 2024-11-27T20:26:02.290Z (about 2 months ago)
- Language: JavaScript
- Size: 69.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
# User Admin Dashboard## Project Overview
This project is a **User Admin Dashboard** built with **Vite** and **React**. The dashboard is designed for an admin to manage users, including their roles and access. Admins can log in, view a list of users, select a user, and perform role management functions. The app also includes a login section where users can select a specific account to log in and has a logout option.
## Features
- **Login Section**: Admins can log in by selecting a specific user from a list of available users.
- **Manage Users**: Admins can view all users and their details (name, role, etc.).
- **Manage User Roles**: Admins can modify the roles of users (e.g., assign admin or regular user roles).
- **Logout**: Admin can log out of the dashboard and return to the login screen.## Setup Instructions
Follow these steps to set up the project locally on your machine:
## Prerequisites
Before starting, make sure you have the following installed on your system:
- **Node.js** (v14 or higher)
- **npm** (or Yarn, if preferred)
- **Vite** (for project bundling)## 1. Clone the repository
Clone this repository to your local machine using the following command:
```bash
git clone https://github.com/shivpr23/User_Dashboard.git
```
## 2. Install dependenciesNavigate to the project folder and install the necessary dependencies:
```bash
cd user-admin-dashboard
npm install
```
## 3. Run the development serverStart the development server using Vite:
```bash
npm run dev
```
By default, the app will be accessible at http://localhost:5173.## 4. Build for production
To create a production build of the application, run:
```bash
npm run build
```
This will generate optimized files for deployment in the dist/ folder.# Explanation of Features
## 1. Login Section
The login page allows an admin to log into the dashboard by selecting a user from a predefined list. The selected user’s credentials are used to authenticate the admin and grant access to the dashboard.
Admins can choose from a list of users (with roles).
After selecting a user, the login will proceed, and the user will be redirected to the dashboard.## 2. User Management
Once logged in, the admin will have access to a list of all users. Each user’s details, including their name and current role, will be displayed.
Admin can click on any user to view more details or update their role.## 3. Role Management
Admins can modify the roles of users within the dashboard. The roles available may include:
Admin: Full access to the application and all its features.
User: Limited access, based on the predefined permissions.
The admin can select a user and change their role with ease.## 4. Logout
The app includes a logout button that allows the admin to securely log out of the dashboard and return to the login screen.
## 5. UI and Design
The user interface is designed for clarity and simplicity, with the goal of providing a seamless experience for admins when managing users. It uses React components for dynamic rendering and state management, ensuring smooth interactions.
# Technologies Used
React: For building the user interface.
Vite: For fast bundling and development server.
CSS: For styling the application.
Contributing
Feel free to fork the repository and make any contributions. If you find any bugs or have feature requests, open an issue or create a pull request.