This is an online task manager web app using React, Bootstrap, and Node.js.By creating an account, the user can create tasks, and by just logging in, the user can create new tasks, modify, and delete existing tasks from everywhere. In addition, the user can create, update, and delete custom lists to organize tasks.
- Online (Access task by login)
- Create tasks
- Update tasks
- Delete tasks
- Create, update , delete custom lists
- JavaScript
- React
- Bootstrap
- NodeJS
- MongoDB Atlas
The project directory structure is organized in two sub directories Frontend and Backend, which makes it easy to use. All frontend logic and configuration will be in Frontend directory, and all backend logic and configuration will be in backend directory.
Important Notes:
- You must have installed
Node.Json your device.
Important Nots:
- You must have installed
Node.Json your device.
Root Directory:
Task-Manager
├── backend
└── frontend
Download the root directory and open it in a code editor (e.g., VS Code).
This directory contains the frontend code (components, helpers, modals, utils) and the backend code (routes, controllers, models, etc.). We need to install some important libraries to run the app.
Important Notes:
- The libraries for the frontend must be installed in the Frontend directory.
- The libraries for the backend must be installed in the Backend directory.
- Installing libraries in the root directory may cause unexpected errors.
-
- Create a new root folder for your project, named
Task-Manager.
- Create a new root folder for your project, named
-
- Copy the
backendfolder from the downloaded code and paste it into the root folder.
- Copy the
-
- Switch to the
backendfolder by runningcd backend, and install these libraries:-> npm install express -> npm install mongoose -> npm install dotenv -> npm install body-parser -> npm install cookie-parser -> npm install uuid -> npm install cors -> npm install jsonwebtoken -> npm install bcryptjs
- Switch to the
-
- In the
backendfolder, open thepackage.jsonfile and add the type module:
{ "type": "module", "dependencies": { "bcryptjs": "^2.4.3", "body-parser": "^1.20.3", "cookie-parser": "^1.4.7", "cors": "^2.8.5", "dotenv": "^16.4.7", "express": "^4.21.2", "jsonwebtoken": "^9.0.2", "mongoose": "^8.9.5", "uuid": "^11.0.5" } }- Switch back to the root folder by running
cd ../.
- In the
-
- In the root folder, now configure the
frontendfolder. - Run the following command:
-> npx create-react-app frontend - This will create a folder called
frontendin the root directory.
- In the root folder, now configure the
-
- Now, install libraries in the
frontendfolder by running these commands:-> npm install bootstrap -> npm install react-router -> npm install react-redux -> npm install @reduxjs/toolkit -> npm install quill -> npm install web-vitals (Optional, if error occur)
- Now, install libraries in the
-
- Now, replace the default files of the
frontendfolder with the files from the downloaded code. - Delete
publicandsrcfolders fromfrontend. - Copy
publicandsrcfolders from the downloadedfrontendfolder (which is inTask-Manager) and paste them into this folder
- Now, replace the default files of the
There is a file .env in the backend folder that contains the database connection string.
Make sure to replace the database string with your MongoDB database string.
If you're new to MongoDB, I recommend using MongoDB Atlas, which is easy to set up and use.
- Backend: To run the server, switch to the
backendfolder by runningcd backend, and then run:-> node server.js - Frontend: To run the React app, switch to the frontend folder by running cd frontend, and then run:
-> npm start







