Skip to content

Riti2407/my-habit-tracker

🌸 My Daily Habits Tracker

React License Contributions Welcome

A clean and functional React app to track your daily habits with a beautiful and responsive UI.
This tracker helps you build consistency by logging your habits like Sleep, Water Intake, Study, Meditation, Workout, Screen Time, and more β€” all visualized in a weekly checklist format.


πŸš€ Live Demo

πŸ‘‰ Try It Out Here


Project/ File Structure

πŸ“‚ my-habit-tracker/\
β”‚
β”œβ”€β”€ πŸ“‚ .github/\
β”‚   β”œβ”€β”€ pull_request_template.md\
β”‚   β”œβ”€β”€ πŸ“‚ Issue_Template/\
β”‚   β”‚   β”œβ”€β”€ bug_report.md\
β”‚   β”‚   β”œβ”€β”€ config.yml\
β”‚   β”‚   β”œβ”€β”€ custom_issue.md\
β”‚   β”‚   β”œβ”€β”€ documentation_issue.md\
β”‚   β”‚   └── feature_request.md\
β”‚   β”‚
β”‚   └── πŸ“‚ workflows/\
β”‚       └── deploy.yml\
β”‚
β”œβ”€β”€ πŸ“‚ public/\
β”‚   β”œβ”€β”€ favicon.ico\
β”‚   β”œβ”€β”€ favicon.svg\
β”‚   β”œβ”€β”€ index.html\
β”‚   β”œβ”€β”€ logo192.png\
β”‚   β”œβ”€β”€ logo512.png\
β”‚   β”œβ”€β”€ manifest.json\
β”‚   └── robots.txt\
β”‚
β”œβ”€β”€ πŸ“‚ src/\
β”‚   β”œβ”€β”€ πŸ“‚ components/\
β”‚   β”‚   β”œβ”€β”€ About.css\
β”‚   β”‚   β”œβ”€β”€ About.jsx\
β”‚   β”‚   β”œβ”€β”€ Auth.css\
β”‚   β”‚   β”œβ”€β”€ BackToTop.css\
β”‚   β”‚   β”œβ”€β”€ BackToTop.js\
β”‚   β”‚   └── ... (more components)\
β”‚   β”‚
β”‚   β”œβ”€β”€ App.css\
β”‚   β”œβ”€β”€ App.js\
β”‚   β”œβ”€β”€ App.test.js\
β”‚   β”œβ”€β”€ i18n.js\
β”‚   β”œβ”€β”€ index.css\
β”‚   β”œβ”€β”€ index.js\
β”‚   β”œβ”€β”€ logo.svg\
β”‚   β”œβ”€β”€ privacy.html\
β”‚   β”œβ”€β”€ reportWebVitals.js\
β”‚   β”œβ”€β”€ setupTests.js\
β”‚   └── terms.html\
β”‚
β”œβ”€β”€ .gitignore\
β”œβ”€β”€ CODE_OF_CONDUCT.md\
β”œβ”€β”€ Contributing.md\
β”œβ”€β”€ HabitStreakTracker.html\
β”œβ”€β”€ License\
β”œβ”€β”€ README.md\
β”œβ”€β”€ heatmap-demo.html\
β”œβ”€β”€ package-lock.json\
β”œβ”€β”€ package.json\
└── todolist.html\

✨ Features

  • βœ… Weekly checklist for multiple habits (Sun β†’ Sat)
  • πŸŒ™ Light/Dark mode toggle
  • 🌱 Interactive tree that grows as you complete habits
  • πŸ“Š Habit tracking with structured inputs:
    • Sleep Tracker β†’ Date, hours slept, ideal sleep info
    • Mood Tracker β†’ Emoji + reason
    • Water Tracker β†’ Date, glasses drank, recommended intake
    • Study / Workout / Steps / Screen Time β†’ Hours, steps, yes/no, all with dates

πŸ› οΈ Tech Stack

- React.js β€” UI library
- CSS β€” Styling (responsive design)
- JavaScript β€” Functionality
- Vercel β€” Deployment


## πŸš€ Getting Started

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

### Clone the Repo

```bash
git clone https://github.com/Riti2407/my-daily-habits-tracker.git
cd my-daily-habits-tracker

Install Dependencies

npm install

Start the App

npm start

Open http://localhost:3000 in your browser to see it in action.


πŸ› οΈ Available Scripts

In the project directory, you can run:

npm start

Runs the app in development mode.

npm run build

Builds the app for production to the build folder.

npm test

Launches the test runner in interactive watch mode.


🎯 Usage Example

-Log your daily sleep hours

-Track your mood with emojis

-Record water intake (glasses/day)

-Update study/workout progress

-Watch the tree grow as you complete tasks 🌱

πŸ”§ Contribution Steps

Follow these steps to contribute:

1️⃣ Fork the Repository

Click the Fork button in the top-right corner of this repo.

2️⃣ Clone Your Fork

git clone https://github.com/Riti2407/my-habit-tracker.git
cd my-habit-tracker

3️⃣ Create a Branch

git checkout -b feature/your-feature-name

4️⃣ Make Your Changes

Edit styles, fix bugs, or update content.

5️⃣ Commit Your Work

git add .
git commit -m "✨ Add: Your clear commit message"

6️⃣ Push to GitHub

git push origin feature/your-feature-name

7️⃣ Create a Pull Request

  • Go to your fork on GitHub
  • Click Compare & pull request
  • Add a clear title and description
  • Click Create Pull Request

Open a Pull Request πŸŽ‰

πŸ“œ License

This project is licensed under the MIT License. See the LICENSE file for details.

πŸ“š Learn More


Built with ❀️ by Riti

About

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors