A Strava-lite fitness tracker built with Next.js showing how to build high-retention consumer apps with Trophy.
Tutorial »
Trophy »
View Demo
·
Report Bug
·
Request Feature
This is a comprehensive example of a consumer fitness application (like Strava or Nike Run Club) powered by Trophy. It demonstrates how to handle multiple activity types, complex leaderboards, and a unified progression system.
Key Features:
- Multi-Sport Tracking: Log Runs, Rides, and Swims with specific attributes (Pace, Style).
- XP Normalization: A unified "Level" system that weights activities fairly (e.g., 1km Swim > 1km Cycle).
- Advanced Leaderboards: Switch between "Global" and "City" views to see local rankings.
- Activity Streaks: A daily consistency loop that rewards simply showing up.
- Next.js (App Router)
- Shadcn/UI & TailwindCSS
- Lucide Icons
- Trophy for the gamification engine
To use the gamification features, you'll need a Trophy account.
- Create an Account: Sign up at Trophy.so.
- Get your API Key: Copy it from the Developer Settings.
- Configure Environment:
cp .env.example .env.localTROPHY_API_KEY='Your API key'npm install
npm run devContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
See LICENSE for more information.
Trophy - hello@trophy.so
Project Link: https://github.com/trophyso/example-fitness-platform