A full-stack habit tracking application built with Flask backend, React frontend, and SQLite database.
- Landing Page: Welcome and app introduction
- Tracker Page: Calendar view for tracking daily habits
- Add Habits: Create new habits with custom schedules
- Statistics: Visual analytics with charts and graphs
- User Authentication: Login and account management
- User Profile: Avatar, username, and contact details
- Backend: Flask (Python)
- Frontend: React with TypeScript
- Database: SQLite
- Charts: Chart.js for statistics
- Styling: Tailwind CSS
coderslab-demo-1/
├── backend/ # Flask API, SQLite database
├── frontend/ # React app
└── README.md
└── QUICKSTART.md
└── PROJECT_OVERVIEW.md
└── setup.sh
- Navigate to
backend/directory - Install dependencies:
pip install -r requirements.txt - Run the Flask app:
python app.py
- Navigate to
frontend/directory - Install dependencies:
npm install - Start the development server:
npm start
POST /api/auth/login- User loginPOST /api/auth/register- User registrationGET /api/habits- Get user habitsPOST /api/habits- Create new habitPUT /api/habits/<id>- Update habitDELETE /api/habits/<id>- Delete habitPOST /api/tracker/<date>- Track habit completionGET /api/statistics- Get habit statistics
- Users: id, username, email, password_hash, avatar_url
- Habits: id, user_id, name, schedule, created_at
- HabitLogs: id, habit_id, user_id, date, completed