- Node.js
- Express.js
- Docker
- MongoDB
- dotenv
- express-async-handler
- mongoose
- nodemon
- >Clone the repository:
- >> bash
- >> git clone https://github.com/your-username/to-do-list-nodeJS.git
Install dependencies:
- > bash
- > cd contact-management-backend
- > npm install
- > Create a .env file in the root directory.
- > Add the following environment variables:
- >> makefile
- >> PORT=3000
- >> MONGODB_URI=your-mongodb-connection-string
- > Start the server:
- >> bash
- >> npm start
- GET /api/tasks: Get all tasks
- POST /api/tasks: Create a new task
- GET /api/tasks/:id: Get a task by ID.
- PUT /api/tasks/:id: Update a task by ID.
- middlewares/: Custom middleware functions.
- controllers/: Request handlers for each route.
- models/: Mongoose schemas and models.
- routes/: Express routes for different endpoints.