Skip to content

🚀 Pull Request: Todo App Improvements and Redis Caching#3

Open
HarysVizcaino wants to merge 2 commits intomandrade86:mainfrom
HarysVizcaino:harys-vizcaino
Open

🚀 Pull Request: Todo App Improvements and Redis Caching#3
HarysVizcaino wants to merge 2 commits intomandrade86:mainfrom
HarysVizcaino:harys-vizcaino

Conversation

@HarysVizcaino
Copy link

Summary

This PR includes several improvements and optimizations to the existing Todo application built with Next.js and Node.js:

✨ What’s New
• Redis Integration
• Implemented Redis caching for the GET /tasks endpoint.
• Added cache invalidation on task creation, update, and deletion to ensure data accuracy.
• Code Quality
• Refactored backend structure into controllers, services, and models for better separation of concerns.
• Added a reusable custom hook on the frontend for managing tasks state.
• Frontend Enhancements
• Added UI improvements using Tailwind CSS.
• Introduced toast notifications for better user feedback on actions (add, update, delete).
• Docker Setup
• Added docker-compose configuration to run MongoDB, backend, and frontend containers easily.

🧪 How to Test
1. Clone the repo and run docker-compose up from the root directory.
2. Visit http://localhost:3000 to access the frontend.
3. Interact with the Todo UI – all changes should reflect immediately, and data will persist.
4. Redis caching is applied for fast task fetching.

Demo Video:
https://youtu.be/vdcjjRE75X8

Let me know if any adjustments are needed or if you’d like me to split this PR by feature. Thanks for reviewing! 🙌

- Cache task list responses on GET /tasks
- Invalidate cache on POST, PUT, and DELETE requests to ensure data consistency
- Improves performance and reduces MongoDB load
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant