This is a Full-Stack User Management System developed as part of a technical evaluation.
The application includes user and role management features with role-based access control.
- User registration and authentication (JWT)
- Role-based access control
- CRUD operations for users and roles
- Responsive and user-friendly interface
- Frontend: React.js
- Backend: Node.js, Express.js
- Database: MongoDB
- Authentication: JSON Web Tokens (JWT)
Before running the application, ensure you have the following installed:
- Node.js
- MongoDB
- Git
-
Clone the Repository
git clone https://github.com/vinay-patel22/User-Management-System-eLeoRex.git cd User-Management-System-eLeoRex
-
Install Dependencies
- Backend:
npm install
- Frontend:
cd client npm install
- Backend:
-
Set Up Environment Variables
- Create a
.env
file in the root directory with the following content:MONGO=your_mongo_connection_string JWT_SECRET=your_jwt_secret
- Create a
-
Run the Application
- Backend:
npm run dev
- Frontend:
cd client npm run dev
- Backend:
-
Assign Admin Role
- Initially, all users have the "user" role by default.
- To assign the "admin" role, update the user's role manually in the database.