A full-stack todo application built with React, Node.js, Express, and MongoDB. Features a modern UI with Tailwind CSS and real-time updates.
- ✅ Create new todo items
- 📅 Add due dates to todos
- ✔️ Mark todos as completed
- 🗑️ Delete todos
- 💾 Persistent storage with MongoDB
- 🎨 Modern UI with Tailwind CSS
- 📱 Responsive design
- React
- Tailwind CSS
- Vite
- Node.js
- Express
- MongoDB
- Mongoose
- Cors
- Node.js (v14 or higher)
- MongoDB Atlas account
- npm or yarn
- Clone the repository
git clone https://github.com/Kailramiya/Todo.git
cd Todo- Install Backend Dependencies
cd Todo-backend
npm install- Configure Environment Variables
Create a
.envfile in the backend directory:
MONGODB_URI=your_mongodb_connection_string
PORT=3001- Install Frontend Dependencies
cd ../todo-frontend1
npm install- Start the Backend Server
cd ../Todo-backend
npm start- Start the Frontend Development Server
cd ../todo-frontend1
npm run devThe application should now be running on:
- Frontend:
http://localhost:5173 - Backend:
http://localhost:3001
GET /api/todo- Get all todosPOST /api/todo- Create a new todoPUT /api/todo/:id/completed- Mark a todo as completedDELETE /api/todo/:id- Delete a todo
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file