42 team project · ft_transcendence · 1337
Repa
We built a social fitness app that lets you find a gym, plan a workout around its equipment, and track your sets during a session.
From gym search to workout
The starting question was simple. If I’m in a new city, where can I find a squat rack? Search for a gym by city, check its equipment, then choose it as your current gym. The exercise picker can show the exercises you can do there.
Save exercises to a day in your plan with target sets and reps. Start a session from that day, log each set, then review your duration, completed sets, and total volume.
Anyone can submit a public gym for admin review, or keep a private home gym with their own equipment.
My role
Technical lead of a five-person team at 1337 Khouribga.
- Chose the stack and wrote the API contracts between the parts, so all five of us could build in parallel
- Shaped the data model: reusable workout plans kept apart from session history
- Mapped dependencies and blockers before they stopped anyone
- Reviewed the pull requests and explained the hard parts until they clicked
- Built the workout engine, including live PR detection
- Set up Docker Compose for the whole stack and deployed it on Azure
The other features are my teammates’ work.
The hard part
What counts as a personal record?
A lifter rarely repeats the same weight for the same reps, so “heavier than last time” is not enough. 82.5 kg for 8 and 90 kg for 5: which one is the better lift? Repa puts every set on one scale with the Epley formula, which estimates your one-rep max: weight × (1 + reps / 30). (The 90 kg set wins, just: about 105 against 104.5.)
A set earns the live PR badge when its estimate beats your best from an earlier completed workout. That rule also decides the edge cases. Your first logged lift has nothing to beat, so it sets the baseline instead of a badge, and the badge appears during the session, not after it.
- Previous best82.5 kg × 8≈ 104.5 kg estimated max
- New set90 kg × 5≈ 105 kg estimated max
- ResultNew PRThe badge appears during the session.
How it runs
- Frontend
- React
- API and data
- Express, Prisma, PostgreSQL
- Real-time chat
- Sockets
- Deployment
- Azure Ubuntu VM, Docker Compose, Nginx, HTTPS