One Club · Publicis Groupe
The Publicis employees' sports club, gamified
- iOS and Android app
- Website
- Web back-office

The web version

Role
Web and mobile developer, apprenticeship
A web and mobile ecosystem that brings employees together around sports goals. Activities come in from Strava or Garmin, a gamification engine turns them into points, tiers and rankings, and a social feed keeps the club going. Sign-in uses the company's Microsoft account. Presented as a proof of concept.
What's inside
- React and TypeScript web app, Flutter mobile app for iOS and Android.
- NestJS backend, MongoDB Atlas hosted in Paris, hourly activity sync.
- Microsoft Entra ID sign-in with OpenID Connect and PKCE, no client secret.
- Strava and Garmin over OAuth2 with webhooks, optional and consent-based connections.
- Gamification: points, tiers, individual and team rankings, collective rewards.
- Social feed, collective events and outings proposed between colleagues.
- Back-office behind JWT and a second factor, rate limiting, input validation.
In detail
01Where it comes from
A project for Publicis Groupe, born during my apprenticeship at Publicis Sapient. The goal was to bring employees together around shared sports goals, by linking their Strava or Garmin accounts and turning their activities into points, team challenges and rankings, with a social feed so it lives on between colleagues.
It's a proof of concept, and it's presented as one, with what remains to be wired in.
02The product
An internal sports gamification platform for Publicis France, named One Club. An employee links a Strava or Garmin account, their activities come in by themselves, are converted into points and feed individual and team rankings around events. Around that, a social feed and outings organised between colleagues.
The guiding idea is that the collective is the point. Individual points push team and club gauges forward, and their tiers unlock rewards for everyone.
Three surfaces, a Flutter mobile app for iOS and Android, a React website, and a web-only admin back-office.
03Identity and sign-in
Sign-in goes through Microsoft Entra ID, with OpenID Connect and PKCE. The employee authenticates with Microsoft under the tenant's policies, MFA included, and the application never sees their password. The backend fetches the tenant's public keys, checks the signature, issuer, audience, expiry and tenant, then issues its own 8-hour session token. No Microsoft token is kept.
The back-office has its own path. A bcrypt-hashed password, then a six-digit code sent by e-mail, randomly drawn, valid for ten minutes, single-use, compared in constant time. An administrator is created through a server command, never through an exposed route.
SSO is still waiting for the Azure Client IDs from IT. Meanwhile, a "Continue with Strava" link stays available and disappears by itself once the Client ID is configured.
04Activities, points, events
Strava and Garmin are linked independently, each revocable, with a consent sheet that says what will be read, for what purpose, and that access is read-only, as the CNIL recommends. Tokens are stored per user and refreshed automatically, and the providers' secrets stay server-side.
Sync runs through an hourly job and through both providers' webhooks. On a webhook, the server calls the API back rather than trusting the payload. Every activity is deduplicated on the provider's identifier, so a repeated sync never doubles the points.
There is one points rule per sport, editable by administrators. 100 points per kilometre run, 40 cycling, 400 swimming, 50 walking, and time-based for hiking, strength, yoga and crossfit. Garmin activities are mapped to Strava's vocabulary so a single rule set covers both. Automatic badges reward yearly distance and total points.
Two kinds of events. Official ones, created from the back-office, with a period, accepted sports, a global goal and three tiered reward families, in teams if enabled. Personal ones, which anyone can create from the Events tab, earn no points, and the server enforces that whatever the client sends, which rules out cheating and avoids moderation.
05Architecture and security
Mobile is in Flutter with Riverpod, go_router and Dio, the web in React 19, Vite and TypeScript on Vercel, the API in NestJS 10 on Render in Frankfurt, and MongoDB Atlas in Paris. Nothing flows into Publicis' information system, the only contact is the outbound authentication to Entra ID.
HTTPS everywhere, JWT sessions verified on every call, allow-listed CORS, rate limiting at 120 requests per minute and 5 on authentication, Helmet headers, strict input validation that closes NoSQL injection, and mobile secrets in the iOS Keychain and Android Keystore. A blocked account loses access in under thirty seconds, without waiting for its session to expire.
It's a proof of concept, and it's presented as one. Free hosting for the demonstration phase, Azure in France on the group's subscription as the target, and a few screens still unfinished, such as team chat, referral and the Steam integration.