Web onboarding, paywall and admin for a fitness app
- My role
- React / Firebase Developer
- Team
- 6 developers
- Platforms
- Web, Backend
Client name left out
A subscription fitness app on iOS needed a way to sell outside the App Store and a way for the team to manage its content without a developer. I built the whole web side on Firebase: a 16-step onboarding funnel that ends in a Stripe paywall, Cloud Functions that turn a Stripe subscription into premium access inside the iOS app through Adapty, and an admin panel for workouts, exercises, recipes and app versions.
The problem
The product was a subscription fitness app on iOS: a quiz-style onboarding that produces a personal plan, workouts with a video player, recipes, a water tracker, reminders and progress. The team wanted two things the app alone could not give them: a web funnel where a person goes through the quiz in the browser and pays by card, outside the App Store, and an admin panel so content changes stop going through a developer and an app release.
What we built
- An iOS app in Swift with a quiz onboarding, a calculated personal plan, workouts with a player and soundtracks, recipes, a water tracker, reminders, a profile and subscriptions through Adapty.
- A web onboarding funnel that mirrors the app: 16 routes from name to workout schedule, a "calculating your plan" step, a finish page, login with Google or Apple, a paywall with a countdown timer, plan selection (one- and three-month) and success and cancel pages.
- Card payments on the web through Stripe Checkout, created by a Cloud Function that writes a checkout session for the signed-in Firebase user.
- A bridge from web purchases to the app: a Firestore trigger watches the user's Stripe subscription, maps the Stripe price to the app's product and calls the Adapty API to grant or revoke the premium access level, so the iOS app simply sees the user as a paying subscriber.
- An admin panel with login, workout plans, workouts, exercises and their order inside a workout, additional workouts, recipes with ingredients and step-by-step instructions, and a version-control page that switches the active app version.
- Cloud Functions as the API for all three clients: user and personal plan, workouts and exercises for the app, and a separate set of admin CRUD functions with an auth check on every call.
- Firebase Hosting with two targets (admin and onboarding) and a Cloud Functions deploy with lint and build as predeploy steps.
My part
I joined a Swift codebase and owned everything that was not the iOS app: the whole Firebase side.
- Built the admin panel from scratch on React, TypeScript, Redux Toolkit and the Moon Design System, with validation on every form, confirmation before deletes and lists cached in Redux.
- Built the onboarding funnel as a separate React app, mobile-first, with its state in a single onboarding slice and a loading step that mirrors the app's "calculating results" animation.
- Designed and wrote the payment path: the Stripe checkout function, the success and cancel pages, and the Firestore trigger that turns a Stripe subscription into premium access in Adapty — the piece that lets the web and the app share one subscription.
- Added Google and Apple sign-in on the web on Firebase Auth, so a person who paid in the browser signs into the app with the same account.
- Separated admin data from app data in Cloud Functions and the frontend, so admin edits could not break what the app reads.
- Built the version-control page and its functions, which let the team mark the current app version without a release.
- Wrote the admin panel README with setup and environment instructions for the rest of the team.
Result
The web funnel, the admin panel and the functions were deployed on Firebase Hosting and Cloud Functions next to the iOS app, and the admin panel was in daily use by the team.
Tech stack
- Web
- React 18
- TypeScript
- Redux Toolkit
- React Router 6
- React-Bootstrap
- Moon Design System
- Sass
- react-firebase-hooks
- Payments
- Stripe Checkout (stripe-js)
- Stripe Firebase extension (checkout sessions)
- Adapty server API (grant / revoke premium)
- Backend
- Firebase Cloud Functions (TypeScript)
- Firestore triggers
- Firebase Auth (Google, Apple)
- Firebase Admin
- Firebase Hosting (two targets)
- iOS app it serves
- Swift
- Adapty subscriptions
- AppsFlyer
- Firebase Functions SDK
- Fastlane (TestFlight)
Have a similar problem? Tell me about it.
Pick a 30-minute slot, or send a few sentences about the business problem by email.