Skip to content

A full-stack MERN Todo app with MongoDB for persistent storage, replacing local storage from the original course. Built with MVC architecture, it improves scalability and structure. Features full CRUD functionality, but needs UI enhancements and state optimization. A great learning experience beyond the Udemy course! πŸš€

Notifications You must be signed in to change notification settings

sudhanvapops/Todo_app_MERN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“Œ MERN Stack Todo App

A simple yet functional Todo app built using the MERN stack, with enhancements over the original course implementation by Hitesh Choudhary.

React MongoDB Express.js TailwindCSS Postman License


πŸš€ About This Project

This is an improved version of the Todo app taught in Hitesh Choudhary's MERN course on Udemy.

  • Original implementation used React + Local Storage
  • Enhanced version uses MongoDB for persistence and follows proper MVC architecture

πŸ›  Tech Stack

  • React – Frontend framework
  • MongoDB – Database for persistent storage
  • Express.js – Backend framework
  • Tailwind CSS – Styling
  • Postman – API testing tool

πŸ“ˆ Features & Improvements

βœ… Full CRUD operations (Create, Read, Update, Delete) using MongoDB
βœ… Applied MVC architecture for modular, maintainable code
βœ… Implemented optimizations beyond the course
βœ… Improved state updates after CRUD operations (no full refetch)


πŸ” Areas for Improvement

❌ UI is not mobile-friendly
❌ Basic styling (can be enhanced for interactivity)
βœ… Optimized state updates after CRUD operations


πŸ†• Optimization: State Updates

Previously, every Create, Update, Delete action triggered a full fetch of all todos.

βœ… Now:

  • Create Todo: Append to existing state
  • Update Todo: Modify only updated todo
  • Delete Todo: Remove deleted todo

This reduces API calls and improves performance πŸš€


⚠️ Setup Instructions

  1. Ensure MongoDB is running locally
  2. Clone the repo:
   git clone https://github.com/sudhanvapops/mern-todo-app.git
   cd mern-todo-app
  1. Install dependencies:
npm install
  1. Add missing .env variables (MongoDB URI, etc.)

πŸ“ Project Structure

mern-todo-app/
β”œβ”€β”€ frontend/              # React frontend
β”œβ”€β”€ backend/               # Express backend
└── README.md           # Project documentation

πŸ“š What I Learned

βœ… Integrating MongoDB for persistence βœ… Implementing MVC architecture for cleaner code βœ… Using Postman to test API endpoints βœ… Optimizing React state updates for better performance βœ… Practical full-stack MERN skills beyond the course


πŸ“Œ Conclusion

This project helped solidify my MERN stack knowledge while teaching me state optimization, backend integration, and MVC architecture. UI improvements and mobile responsiveness remain areas for future work. 🎯 Contributions and suggestions are welcome! πŸš€


About

A full-stack MERN Todo app with MongoDB for persistent storage, replacing local storage from the original course. Built with MVC architecture, it improves scalability and structure. Features full CRUD functionality, but needs UI enhancements and state optimization. A great learning experience beyond the Udemy course! πŸš€

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published