A simple Todo application built with React, Express, and MongoDB.
/client- React frontend (Node.js 14)/server- Express backend with MongoDB (Node.js 18)
- Node.js 14.x for the frontend
- Node.js 18.x for the backend
- MongoDB (local or Atlas)
cd server
npm installcd client
npm installMake sure MongoDB is running on your machine or you have a MongoDB Atlas connection string.
cd server
npm run devThe server will start on http://localhost:5000
cd client
npm startThe React app will start on http://localhost:3000
GET /api/todos- Get all todosPOST /api/todos- Create a new todoPUT /api/todos/:id- Update a todo by IDDELETE /api/todos/:id- Delete a todo by ID