This application is built using the MERN (MongoDB, Express.js, React.js, Node.js) stack. It includes CRUD functionality for tasks, JWT token authentication, user roles (admin and regular user), MongoDB integration for backend data storage, and a calendar component for task visualization.
- JWT token authentication.
- User roles (admin and regular user) for authorization.
- CRUD operations for tasks, with restricted access based on user roles.
- Integration with MongoDB for storing task and user data.
- Implementation of a resource calendar for task visualization.
- Dynamic navigation system based on user roles.
- Synchronization of the calendar component with the backend for adding tasks.
- Node.js
- Express.js
- MongoDB
- Bcrypt
- React.js
- Axios for API requests
- JWT for authentication
- Tailwind CSS
- Clone the repository from GitHub:
git clone <repository-url>
- Navigate to the backend folder and install dependencies:
cd backend && npm install
- Set up the MongoDB database and configure the connection in the .env file.
- Run the backend server:
npm start
- Navigate to the frontend folder and install dependencies:
cd ../frontend && npm install
- Run the frontend application:
npm start
- Implemented using Passport.js middleware.
- Routes for user registration, login, and logout.
- Middleware for authentication and authorization.
- Two user roles: admin and regular user.
- Admins have full access to CRUD operations for tasks.
- Regular users can only modify their tasks.
- Enhanced to include a relationship with users.
- Tasks can be assigned to specific users.
- Implemented API routes and controllers for CRUD operations.
- Users can only modify their tasks, while admins can modify any task.
- MongoDB used for storing task and user data.
- Database connection configured in the .env file.
- User registration, login, and logout components implemented.
- Dynamically changes based on user roles (admin or regular user).
- JWT tokens used for authenticating and authorizing API requests.
- Modified to allow only authorized users to perform CRUD operations.
- UI components updated based on user roles.
- Synchronized with the backend for adding tasks.
![](https://private-user-images.githubusercontent.com/130221905/315960983-eb749fcc-c4ee-4433-8329-fef77e501a6c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg1MDYyODEsIm5iZiI6MTcxODUwNTk4MSwicGF0aCI6Ii8xMzAyMjE5MDUvMzE1OTYwOTgzLWViNzQ5ZmNjLWM0ZWUtNDQzMy04M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GZiNDk4OWIxNWZjODI3ZGYyN2RlYzkxMzkzOWVlZTBhZjcwNDY5MzA0YzA3ZTNiY2FhMzNjMzMwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.Pconw83wVn0a6yHtJpX_kJu6lumSoysahzH-w6fnmIw)
![](https://private-user-images.githubusercontent.com/130221905/315962377-96e0e84c-15dc-4065-95c2-a6fea2cd3435.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg1MDYyODEsIm5iZiI6MTcxODUwNTk4MSwicGF0aCI6Ii8xMzAyMjE5MDUvMzE1OTYyMzc3LTk2ZTBlODRjLTE1ZGMtNDA2NS05NWMyLWE2ZmVhMmNkMzQzNS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjE2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYxNlQwMjQ2MjFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04MWExNzYzMTcxMTcxNTNkMWVkNWUyNzliODkwMTcyM2JhNTc4MjYwNzU4MGEwN2QyNjZjMzAxMDZiYmFmNTg2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.DStlfzKolCnDd5Hd1QL33gBcjPrpwXfTP3718a2dnzA)
![](https://private-user-images.githubusercontent.com/130221905/315962765-08b904e8-1201-4609-8daa-97932c734947.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXV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pZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.BK2PZS8vShN0bTrFd5uztQ7w2QXeYYRorfsImXBUOag)
The Task Management Application built using the MERN stack provides comprehensive functionality for managing tasks, user authentication, and role-based access control. The integration with MySQL and the implementation of a resource calendar enhance the user experience and productivity. For any issues or further assistance, please refer to the documentation or contact the developers.