A cute and clever running training plan generator with a fox-inspired theme.
- Generate personalized running training plans
- Real API backend for data processing
- Fox-themed workout representation
- Beautiful orange and black color scheme
- Visual workout distribution charts
- Weekly training summary statistics
- Responsive design for all devices
- React
- Material-UI
- Chart.js
- Node.js
- Express
- CSV Parsing
- Node.js (v14 or later)
- npm or yarn
- Clone the repository
git clone https://github.com/yourusername/training-app.git
cd training-app- Install all dependencies (frontend and backend)
npm run install-all- Start the development server (frontend + backend)
npm run dev- Open http://localhost:3000 in your browser
/server- Backend Express API/src- Frontend React app/components- UI components/utils- Utility functions/data- Training data
GET /api/training-schedules- Get all training schedulesPOST /api/generate-plan- Generate a personalized training planGET /api/integrations/strava/config- Check Strava integration server configGET /api/integrations/strava/auth-url- Start Strava OAuth flowPOST /api/integrations/strava/exchange-code- Exchange OAuth code for connectionPOST /api/integrations/strava/sync- Sync recent Strava activitiesPOST /api/integrations/apple-health/import- Import Apple Health workouts from file data
- Create a Strava API application at https://www.strava.com/settings/api
- Set your authorization callback domain to your frontend origin (example:
http://localhost:3000) - Add these values to
server/.env:
STRAVA_CLIENT_ID=your_strava_client_id
STRAVA_CLIENT_SECRET=your_strava_client_secret
STRAVA_REDIRECT_URI=http://localhost:3000/devices
STRAVA_SCOPE=read,activity:read_all- Restart the backend (
npm run start-serverornpm run dev) - Open the Devices page and click Connect Strava
- Apple Health does not expose direct browser OAuth access.
- Use the Devices page to import Apple Health export files (
.xml,.json,.csv). - The app will normalize running workouts and sync them to your profile.
-
Fill in your details:
- Age
- Weight
- Gender
- Current weekly mileage
-
Click "Generate My Training Plan!"
-
View your personalized 7-day training schedule with cute visualizations
-
Click "Create a New Plan" to start over
This project is licensed under the MIT License - see the LICENSE file for details.
- Training schedules are designed for recreational runners
- All emoji art is included within the app