Skip to content

Taha-Chaudhry/health-tracker-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Health Tracker

An iOS app that shows users their health data easily. Used to showcase modern SwiftUI design.

Powered by:

  • CoreData (Database)
  • WireMock (Test Data)
  • MVVM Architecture

Preview

Screenshot 2024-09-25 at 3 24 33 PM Screenshot 2024-09-30 at 4 21 01 PM Screenshot 2024-09-30 at 3 46 07 PM

Test Data

By default, test data is taken from the mockUserData.json file:

{
    "user": {
        "name": "Taha Chaudhry",
        "age": 17,
        "weight": 60,
        "sex": "Male",
        "activity": {
            "name": "Running",
            "averageHeartbeat": 90,
            "caloriesBurned": 173,
            "timeElapsed": 468
        },
        "foodLog": {
            "caloriesConsumed": 850,
            "mealsHad": 3,
            "items": [
                {
                    "name": "Apple",
                    "calories": 200
                },
                {
                    "name": "Orange",
                    "calories": 150
                },
                {
                    "name": "Banana",
                    "calories": 500
                }
            ]
        },
        "vitals": {
            "bloodPressure": 120,
            "breathingRate": 16,
            "caloriesBurned": 173,
            "heartbeat": 90,
            "temperature": 36
        }
    }
}

Wiremock

Alternatively, use test data from WireMock using a Docker container:

docker run -it --rm \
  -p 8080:8080 \
  --name wiremock \
  -v PATH/TO/WireMockData:/home/wiremock \
  wiremock/wiremock:3.9.1

Todo

  • Widgets
  • Live Activities

About

iOS app to visualise and handle health and fitness data.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages