Skip to content
Areeb Elahi
All work

Case study · Aptech diploma project · Team

FitnessTracker

Workout and nutrition tracker with dashboards and PDF reports.

Log weekly workouts and meal plans in one account, follow calorie and nutrition trends by week, month and year, and export both as PDF.

Illustration of the FitnessTracker dashboard with weekly charts

Problem

Workout logs and food logs usually live in separate apps, so there is no single view of calories burned against calories eaten, and the history is hard to share with a trainer.

What I built

  • A REST API of about 20 routes, protected by JWT.
  • Sign-up and password reset with an emailed one-time code, plus profile photo upload.
  • Workout routines with sets, reps, duration and weight.
  • A meal catalogue with calories, protein, fat and carbs, assigned to days as meal plans.
  • A dashboard with Chart.js charts by week, month and year.
  • PDF export of both the workout and the nutrition tables.

Architecture and key decisions

One account for both logs
Workouts and meals belong to the same user, so the dashboard can compare them directly.
Totals calculated by the API
Weekly and yearly chart data comes from dedicated endpoints, so the browser does not have to add up raw logs.

What I learned

  • Anything that must survive a restart belongs in the database. The sign-up codes live in server memory today, and that is the first thing I would move.
  • I would also switch to the standard MongoDB connection string instead of hard-coded server addresses.
Next case studyEdminUniversity administration platform for admins, faculty, HR and students.