-
Notifications
You must be signed in to change notification settings - Fork 0
Quick Setup Guide ⚡
Joey.Huang edited this page Jul 6, 2025
·
2 revisions
Get your Running Page 2.0 up and running in just 15 minutes!
This guide will help you:
- Fork and deploy the project
- Connect your Strava account
- Set up automatic data sync
- Enable map visualization
- GitHub account
- Strava account with activities
- Vercel account (free)
- Mapbox account (optional, free tier available)
- Go to the repository: https://github.com/oiahoon/running2.0
- Click "Fork" in the top-right corner
- Choose your account as the destination
- Wait for the fork to complete
- Visit Vercel: https://vercel.com
- Sign in with your GitHub account
- Click "New Project"
- Import your forked repository
- Click "Deploy" (use default settings)
- Wait for deployment to complete
-
Note your URL:
https://your-project.vercel.app
- Go to Strava API: https://www.strava.com/settings/api
-
Create a new application:
- Application Name: "My Running Page"
- Category: "Data Importer"
- Club: Leave empty
- Website: Your Vercel URL
- Authorization Callback Domain: Your Vercel domain
-
Save and note your:
- Client ID
- Client Secret
-
Visit this URL (replace YOUR_CLIENT_ID):
https://www.strava.com/oauth/authorize?client_id=YOUR_CLIENT_ID&response_type=code&redirect_uri=http://localhost&approval_prompt=force&scope=read,activity:read_all -
Authorize the app and copy the
codefrom the URL -
Get your refresh token using curl or Postman:
curl -X POST https://www.strava.com/oauth/token \ -F client_id=YOUR_CLIENT_ID \ -F client_secret=YOUR_CLIENT_SECRET \ -F code=YOUR_CODE \ -F grant_type=authorization_code
-
Save the
refresh_tokenfrom the response
- Go to your forked repository
- Settings → Secrets and variables → Actions
-
Add these secrets:
-
STRAVA_CLIENT_ID: Your Strava Client ID -
STRAVA_CLIENT_SECRET: Your Strava Client Secret -
STRAVA_REFRESH_TOKEN: Your refresh token
-
- Go to Vercel Dashboard
- Select your project
- Settings → Environment Variables
-
Add these variables:
NEXT_PUBLIC_USER_NAME = "Your Name" NEXT_PUBLIC_GITHUB_USERNAME = "your-github-username" NEXT_PUBLIC_USER_EMAIL = "4296411@qq.com"
Your running page should now be live at your Vercel URL!
- Go to your repository → Actions
- Click "Sync Strava Data"
- Click "Run workflow"
- Wait for completion (2-5 minutes)
- Check your website - you should see your activities!
For map visualization, see the Mapbox Setup Guide.
- Check the Common Issues page
- Review GitHub Actions logs
- Ask for help in Discussions
🎊 Congratulations! You now have your own running page!