AI_Cycling_Coach

🚴 AI Cycling Coach

An intelligent web app that pairs cyclists with an AI coaching agent to build personalized training plans. Chat with your coach, manage your life schedule, and track your workouts — all in one place.

Features

Quick Start

Prerequisites

Backend Setup

cd backend
python -m venv venv
source venv/bin/activate  # Windows: venv\Scripts\activate
pip install -r requirements.txt
cp .env.example .env      # Edit with your API key
python run.py             # Starts on http://localhost:5000

Frontend Setup

cd frontend
npm install
npm run dev               # Starts on http://localhost:3000

Using Ollama (Free, Local AI)

brew install ollama
ollama pull llama3.2
ollama serve

Then in backend/.env:

OPENAI_API_BASE=http://localhost:11434/v1
OPENAI_API_KEY=ollama
OPENAI_MODEL=llama3.2

Documentation

Tech Stack

Layer Technology
Backend Python, Flask, SQLAlchemy
Database SQLite (dev) / PostgreSQL (prod)
AI OpenAI-compatible API
Frontend React 18, TypeScript, Vite
Calendar FullCalendar

License

MIT