A RESTful API for managing tasks built with Node.js, Express, and MongoDB.
During this Learnathon, I gained experience with:
task-management-api/
โโโ config/ # Database configuration
โโโ models/ # Database models
โโโ routes/ # API routes
โโโ .env # Environment variables
โโโ server.js # Main application file
โโโ vercel.json # Vercel deployment config
POST /api/tasks: Create a new taskGET /api/tasks: Get all tasksGET /api/tasks/:id: Get a specific taskPUT /api/tasks/:id: Update a taskDELETE /api/tasks/:id: Delete a taskgit clone [your-repo-link]
cd task-management-api
npm install
MONGODB_URI=your_mongodb_connection_string
PORT=3000
# Development
npm run dev
# Production
npm start
Use Postman or browser to test the API endpoints: