Health Tracker App
Health Tracker App

A modern, modular healthโtracking application built with Python and Flet.
Itโs designed to manage medications, reminders, schedules, appointments, and user health data.
The architecture follows a clean separation of concerns with repositories, validators, services, and a background scheduler.
โญ Features
๐ Medication Management
- Add, edit, and view medications
- Dosage tracking
- Notes and status indicators
โฐ Scheduling and Reminders
- Daily and weekly schedules
- Custom reminder offsets
- Automated reminder event generation
- Background scheduler thread
- UI notifications via Fletโs SnackBars
๐
Appointments
- Create and manage appointments
- Notes, location, date, and time
๐ Intake Logs
- Track when medication was taken
- Validation to ensure data integrity
๐ค User Profile
- Basic user information
- Editable profile screen
โ๏ธ Settings
- Toggle notifications
- App preferences
๐ธ Screenshots
Dashboard

Appointments

Add Appointment

Edit Appointment

Medications

Schedules

Settings

Dark Mode

User Profile

Analytics Dashboard

๐งฑ Architecture Overview
The project is structured into clear, maintainable layers.
๐จ UI Layer (Flet Views)
- Screens for medications, appointments, schedules, dashboard, settings, and more
๐ฆ TypedPage
- A custom subclass of
ft.Page that acts as a dependency container
๐ Repositories
- Handle all database interactions
๐ก Validators
- Ensure data integrity before saving
๐ง Services
- Business logic for schedules, reminders, notifications, and intake logs
๐งฎ ScheduleEngine
- Expands schedules into actual datetime events
๐ SchedulerService
- Background thread that checks for due reminders every minute
๐ Project Structure
health_app/
โ
โโโ data/
โโโ models/
โโโ screens/
โโโ services/
โโโ validators/
โโโ ui_types/
โโโ main.py
โโโ README.md
๐ Installation
1. Clone the repository
git clone https://github.com/reory/Health-Tracker-App.git
python -m venv venv
# windows
venv\Scripts\activate
# mac/linux
source venv/bin/activate
Run the App
pip install -r requirements.txt
python main.py
๐บ Roadmap
Planned enhancements and future improvements:
- [ ] Add medication refill reminders
- [ ] Add data export/import (JSON or CSV)
- [ ] Add Analytics Integration (In Development): Utilizing Matplotlib and Numpy
for health trend visualization
- [ ] Add charts for intake history
- [ ] Add cloud sync or optional online backup
- [ ] Add multiโuser profiles - Using FAKER.
- [ ] Add theme customisation (colour palettes)
- [ ] Add optional biometric lock (Windows Hello / Touch ID)
๐งช Test File
A strippedโdown test file (test.py) is included for isolating UI behaviour.
Run the the Test Suite
pytest
๐ค Contributions
Contributions are welcome as always.
๐ค Author โ Roy Peters
Enjoy architecting clean, maintainable Python applications with clarity and purpose for everyone. Click here for contact details ๐