A motivational habit tracker to help users build and maintain habits. Users can create habits with a frequency, mark daily completions, visualize their progress in a calendar, and track streaks.
This repo contains both the frontend (React + Vite + Tailwind) and backend (Node + Express + MongoDB) in a clean monorepo structure.
habit-tracker/
│
├── client/ # Vite + React frontend
├── server/ # Node + Express + MongoDB backend
├── README.md
├── CONTRIBUTING.md
├── LICENSE
└── .github/ # Issue templates- Add habits with frequency (daily, weekly, or custom interval)
- Mark habits complete for the day
- Calendar heatmap showing % completion per day
- Per-habit streaks
- Hover tooltips for day-wise progress
- Node.js (v18+)
- npm or yarn
- MongoDB instance (local or Atlas)
cd client
npm install
npm run devcd server
npm install
npm run devThe backend will run on http://localhost:5000 by default.
Make sure to set your MongoDB connection string in .env:
MONGO_URI=your_mongodb_uri_here
PORT=5000We love contributions! Please read CONTRIBUTING.md before submitting any PRs or issues. It explains how to set up your environment, create branches, and contribute properly.
This project is licensed under the MIT License. See the LICENSE file for details.