This project provides a simple task management system with user authentication, CRUD operations for tasks, real-time notifications using Socket.IO, and data persistence with MongoDB.
For detailed documentation on the API endpoints, please visit: API Documentation
The project includes a static page for data streaming, accessible at the root route (/).
- In development, access the static page at: https://localhost:5000
- In production, access the static page at: https://task-management-system-niyo.onrender.com/
- Node.js
- MongoDB
-
Clone the repository:
git clone https://github.com/TechieSamDev/TASK_MANAGEMENT_SYSTEM.git cd task-management-system -
Install Dependencies:
npm install
-
Setting Environment Variables:
- If you have access to the
env.txtfile, copy its contents to a new file named.env. Otherwise, create a new.envfile and add the following variables, providing your own values:# Example .env file NODE_ENV=development MONGO_URI_DEV=mongodb://127.0.0.1:27017/task-managemtent-system MONGO_URI_PROD=mongodb+srv://username:password@clustername.mongodb.net/task-managemtent-system JWT_SECRET_KEY=mysecretkey JWT_EXPIRES_IN=1d
- Please ensure to replace placeholders like
username,password, andclusternamein the MongoDB URI with your actual credentials. JWT_SECRET_KEYshould be replaced with your own secure key.JWT_EXPIRES_INspecifies the expiration time for JWT tokens. You can adjust this value as needed.- Contact the project owner for the
env.txtfile if you don't have access to theenv.txtfile.
- If you have access to the
-
Run the project:
- For development environment:
npm run dev
- For production environment:
npm run prod
- For development environment: