The Daily Mood and Habit Tracker is a web application designed to help users monitor their daily mood and track up to 5 custom habits. This tool provides insights into your emotional well-being and habit formation over time, allowing you to make positive changes in your life.
- Daily mood tracking using emoji ratings
- Gender-specific habit suggestions
- Custom habit tracking (up to 5 habits)
- 7-day overview chart
- Weekly summary report
- Responsive design for desktop and mobile use
- Firebase backend integration for authentication and data storage
- Inline error feedback and improved accessibility
- A modern web browser (e.g., Chrome, Firefox, Safari)
- Internet connection (for initial load and CDN resources)
- A Firebase project (see below)
- Clone the repository or download the source code:
git clone https://github.com/Barontex1000/Daily-Mood-and-Habit-Tracker.git - Navigate to the project directory:
cd mood-habit-tracker - Open the
index.htmlfile in your web browser. - Configure Firebase:
- Copy your Firebase project config into
js/firebase-config.jsas shown in the comments.
- Copy your Firebase project config into
No additional installation or setup is required as the application runs entirely in the browser.
- Sign Up/Login: Create an account or log in to an existing one. Authentication is handled by Firebase Auth.
- Select a Date: Use the date picker to choose the date you want to track.
- Rate Your Mood: Click on an emoji that best represents your mood for the selected date.
- Select Gender: Choose your gender to see relevant habit suggestions.
- Track Habits: Check off the habits you've completed for the day. You can:
- Use pre-defined habits based on your gender selection
- Add custom habits (up to 5) using the "Add Custom Habit" button
- Save Entry: Click the "Save Entry" button to record your mood and habits for the day. Data is stored securely in Firestore under your user account.
- View 7-Day Overview: Scroll down to see a chart showing your mood and habit completion over the last 7 days (data is loaded from Firestore).
- Read Weekly Report: Below the chart, you'll find a summary of your week, including average mood and habit completion rates.
- Logout: Use the logout button in the header when you're done.
The application is built using:
- HTML5
- CSS3
- JavaScript
- Chart.js
- Bootstrap
- Firebase (Auth & Firestore)
I welcome contributions to improve the Daily Mood and Habit Tracker! If you'd like to contribute, please follow these steps:
- Fork the repository
- Create a new branch (
git checkout -b feature/AmazingFeature) - Make your changes
- 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.md file for details.
Thank you for using the Daily Mood and Habit Tracker! We hope it helps you gain valuable insights into your daily life and supports your personal growth journey.