How rohitk-18/codehelp works
CodeHelp is a Flask coding-practice and review application. Users authenticate, start problem sessions using LeetCode, Codeforces, or manual problem details, submit attempts, and receive AI-generated feedback; they can also browse history, unlock hints, and reveal eligible reference solutions. Routes coordinate persistence, AI services, and platform lookups. The README documents dashboard, profile, and session capabilities; some route details are unsampled, so those links rely on documented behavior rather than inferred calls.
Main entry points: main.py Practice routes · reviewer.py Attempt reviewer · routes.py Authentication · __init__.py Flask factory
Components 14
Application and accounts
- Flask factory
app/__init__.py - Authentication
app/auth/routes.py
Practice workflow
- Practice routes
app/routes/main.py - Practice data
app/models/__init__.py - Web interface
templates
AI feedback and solutions
- Attempt reviewer
app/ai/reviewer.py - Review prompts
app/ai/prompts.py - Solution generator
app/ai/solution.py
Platforms and profiles
- LeetCode service
app/services/leetcode.py - Codeforces service
app/services/codeforces.py
Other components
- User
- Google Gemini
- LeetCode GraphQL
- Codeforces API
Connections 17
- User → Authentication: registers or logs in
README.md - Flask factory → Authentication: registers routes
app/__init__.py - Flask factory → Practice routes: registers routes
app/__init__.py - User → Practice routes: starts and manages sessions
README.md - Authentication → Practice data: reads and creates users
app/auth/routes.py - Practice routes → Practice data: stores and retrieves practice data
app/routes/main.py - Practice routes → LeetCode service: looks up problems and profiles
app/routes/main.py - Practice routes → Codeforces service: looks up problems and profiles
app/routes/main.py - Practice routes → Attempt reviewer: requests attempt review
app/routes/main.py - Practice routes → Solution generator: requests reference solution
app/routes/main.py - Attempt reviewer → Review prompts: builds prompt
app/ai/reviewer.py - Attempt reviewer → Google Gemini: generates review
app/ai/reviewer.py - Solution generator → Google Gemini: generates solution
app/ai/solution.py - LeetCode service → LeetCode GraphQL: queries GraphQL
app/services/leetcode.py - Codeforces service → Codeforces API: requests metadata
app/services/codeforces.py - Practice routes → Web interface: renders screens
README.md - User → Web interface: uses dashboard and history
README.md