TaskMaster is a powerful task management system built using Node.js, Express, and MongoDB Atlas with Mongoose. It provides users with the ability to efficiently manage tasks through a user-friendly web interface.
- Create, retrieve, update, and delete tasks.
- RESTful API for seamless integration with other applications.
- Error handling middleware to ensure smooth operation.
- Asynchronous operations for improved performance.
-
Clone the repository:
git clone https://github.com/Prem-Mule/TaskMaster.git
-
Install dependencies:
npm install
-
Set up environment variables:
Create a .env file in the Starter directory.
Add your MongoDB Atlas URI as MONGO_URI in the .env file.
-
1 Start the server:
npm start
- Base URL: http://localhost:4000/api/v1/tasks
- Endpoints:
GET /: Retrieve all tasks.POST /: Create a new task.GET /:id: Retrieve a specific task by ID.PUT /:id: Update a specific task by ID.DELETE /:id: Delete a specific task by ID.
Starter/: Contains the project files.Routes/: Contains route handlers for different API endpoints.Models/: Contains Mongoose models for interacting with the MongoDB database.Middleware/: Contains middleware functions for error handling and other purposes.db/: Contains database connection setup.public/: (Optional) Contains public assets for the frontend, if any.
- express: Fast, unopinionated, minimalist web framework for Node.js.
- mongoose: Elegant MongoDB object modeling for Node.js.
- dotenv: Loads environment variables from a
.envfile intoprocess.env. - nodemon: Utility that monitors for changes in your source code and automatically restarts your server.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License - see the LICENSE file for details.