This is a simple Task Management Application that allows users to create, read, update, and delete tasks. This project demonstrates proficiency in both front-end and back-end development skills using the MERN (MongoDB, Express, React, Node.js) stack.
Before you begin, ensure you have met the following requirements:
- Node.js installed
- MongoDB instance running (local or cloud)
Follow these steps to set up and run the project locally.
git clone https://github.com/yourusername/task-manager.git
cd task-manager
-
Navigate to the
backend
directory:cd backend
-
Install the dependencies:
npm install
-
Create a
.env
file in thebackend
directory and add your MongoDB URI and server port:MONGO_URI=<Your MongoDB URI> PORT=5000
-
Start the backend server:
npm run server
-
Navigate to the
frontend
directory:cd frontend
-
Install the dependencies:
npm install
-
Start the frontend development server:
npm start
For convenience, you can run both the backend and frontend servers concurrently from the root directory using the following command:
npm install
npm run dev
task-manager/
│
├── backend/
│ ├── controllers/
│ │ └── taskController.js
│ ├── models/
│ │ └── taskModel.js
│ ├── routes/
│ │ └── taskRoutes.js
│ ├── app.js
│ └── config/
│ └── db.js
│
├── frontend/
│ ├── public/
│ │ └── index.html
│ ├── src/
│ │ ├── components/
│ │ │ ├── Task.js
│ │ │ ├── TaskForm.js
│ │ │ ├── TaskList.js
│ │ │ ├── TaskDetail.js
│ │ │ └── TaskEdit.js
│ │ ├── App.js
│ │ ├── index.js
│ │ └── App.css
│
├── package.json
└── README.md
- Landing Page: Displays a list of tasks.
- Add New Task: Users can add tasks with a title, description, and due date.
- View Task: Users can view detailed information about each task.
- Edit Task: Users can edit existing tasks.
- Delete Task: Users can delete tasks.
- Front-end: React, Axios
- Back-end: Node.js, Express, MongoDB, Mongoose
- Environment Variables:
dotenv
This project is licensed under the MIT License - see the LICENSE file for details.
- Thanks to the open-source community for providing great tools and resources.