MindMate Project

About the Project

MindMate is a simple yet powerful mental wellness chatbot designed to help users track their moods daily and provide a 30-day mood summary, along with insights on how their emotional state might affect their health.

Inspiration

The inspiration for MindMate came from realizing how important it is to be aware of our mental health, especially in today’s fast-paced world. I wanted to create a tool that encourages users to reflect on their feelings regularly and gain insights into their emotional well-being.

What I Learned

How to build a Flask web app with routes to handle chat input and mood tracking.

Managing data persistence using JSON files to log moods over time.

Returning JSON responses from Flask endpoints and handling them on the frontend.

Debugging common issues like file handling and route errors.

Basics of integrating user input with backend logic for real-time feedback.

How I Built It

I used Python Flask for the backend to create APIs that receive mood input and generate mood summaries.

Mood data is logged daily in a JSON file, which the app reads to create a 30-day mood report.

The frontend uses HTML and JavaScript to allow users to type their mood or select from a dropdown, and view summaries dynamically.

Implemented error handling for missing or corrupted data files to improve app robustness.

Challenges Faced

Handling the case when the mood log file didn’t exist initially, causing errors when generating reports.

Debugging asynchronous frontend requests to backend APIs and ensuring smooth JSON communication.

Designing a simple yet meaningful mood summary and linking it to health effects.

Balancing project scope to keep it achievable within limited time while delivering useful functionality.

Built With

Share this project:

Updates