Skip to content

A Flet based health tracking app with medication, reminders and scheduling management.

License

Notifications You must be signed in to change notification settings

reory/Health-Tracker-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

9 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Health Tracker App

Python Platform License Last Commit Repo Size

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

Dashboard

Appointments

Appointments

Add Appointment

Add Appointment

Edit Appointment

Edit Appointment

Medications

Medications

Schedules

Schedules

Settings

Settings

Dark Mode

Dark Mode

User Profile

User Profile

Analytics Dashboard

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
venv\Scripts\activate
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 charts for intake history
  • Add cloud sync or optional online backup
  • Add multiโ€‘user profiles
  • 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.

๐Ÿค Contributions Contributions are welcome as always.

๐Ÿ‘ค Author โ€” Roy Peters Enjoy architecting clean, maintainable Python applications with clarity and purpose for everyone.