Daily Routine
This section is still a work in progress.
I will update this description soon, detailing this project and include links to a more detailed writeup about the process and decisions made. And my attempts at Figma design.
For now, the calander shows the current month, with days ive been to the gym highlighted. Underneath you can see stats for the selected day.
It turns out sleep data may not be possible, originally I thought I could pull it from Google since they are getting data from my watch through Apple HealthKit, but it turns out that they are not making all the data available through the Google Fit API. I will look into alternatives, but I'm cautious of building up too much tech debt.
My backend is TypeScript on Cloudflare workers (serverless architecture) utilising their KV storage (NoSQL). Perfomed MITM attack on the Gym Group App to figure out their API endpoints and data structure for my Gym data - praying they dont update their API anytime soon. For my health data, Google Fit gets my data through AppleHealthkit, then I setup an OAuth2 connection to the Google Fit API. My auth and refresh tokens are stored in parralel with my health and gym data in Cloudflare KV storage. I have a cron job that runs every hour to refresh my data. Frontend and Backend are built and deployed seperately through GitHub Actions.