A modern, dark-themed habit tracking web application built with Python (Flask) and JavaScript. Track your daily progress with streaks and interactive charts.
Modern, responsive, and data-driven dashboard.
- Daily Tracking: Mark habits as complete with a single click.
- Streaks: Automatic calculation of current habit streaks.
- Visual Analytics: Interactive 7-day progress charts for every habit.
- Premium Design: Dark mode aesthetic with glassmorphism effects and responsive layout.
- Cross-Platform Database Support:
- Local: Uses SQLite for simple development.
- Production: Supports PostgreSQL (e.g., Supabase) for robust cloud hosting.
- Backend: Python (Flask)
- Database: SQLite (Local) / PostgreSQL (Production)
- Frontend: HTML5, Vanilla CSS, JavaScript (Vanilla + Chart.js)
- Production Server: Gunicorn
-
Clone the repository:
git clone <your-repo-url> cd habit-tracker
-
Create a virtual environment:
python -m venv venv .\venv\Scripts\activate -
Install dependencies:
pip install -r requirements.txt -
Run the application:
python app.py
The app will be available at
http://127.0.0.1:5000.
Detailed deployment instructions can be found in the brain directory guide:
- GitHub: Push your code to a GitHub repository.
- Supabase: Create a Postgres database and use the Connection Pooler (Port 6543) URI.
- Render: Create a New Web Service, connect your repo, and set the
DATABASE_URLenvironment variable. - Initialize DB: Use the Supabase CLI (
supabase db push) or the Render shell to run the migration.
This project is licensed under the MIT License - see the LICENSE file for details.