Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 819 Bytes

README.md

File metadata and controls

55 lines (39 loc) · 819 Bytes

postbank-health-app

  • fitness/health tracking app
  • Google Fit integration
  • PWA
  • Postbank Branding
  • ant.design
  • award system
  • leaderboards
  • works offline
  • admin panel for adding goals

Scoring

  • score points are calculated based on calories and a weighting system where more intensitve activities have a higher weight

for example: swimming: points = 80% of calories * 0.1 running: points = 60% of calories * 0.1 walking: points = 15% of calories * 0.1

Fetching

  • fetch top 5 with their points
    • 1: 1300
    • 2: 1000
    • 3: 850
    • 4: 830
    • 5: 600

Firebase schema

  • store user points in /users/{user} in an object as

    {
      "points": 800,
    }
  • store user awards in /user/{user}/awards/{awardId}

    {
        "title": "10% discount"
    }