A modern, interactive coding platform for Python practice with real-time feedback.
-
Start the frontend server:
python3 -m http.server 8000
-
Open in browser:
http://localhost:8000
Edit config.js file and change the BASE_URL:
const BACKEND_CONFIG = {
// Change this to your backend server URL
BASE_URL: '', // Empty = same server, or 'http://localhost:8001' for different server
// ...
};| Backend Setup | BASE_URL | Description |
|---|---|---|
| Same Server | '' |
Frontend and backend on same domain |
| Local Different Port | 'http://localhost:8001' |
Backend on port 8001 |
| Production API | 'https://api.yourbackend.com' |
Remote backend server |
Your backend must implement these endpoints:
POST /login- User login (supports both regular users and admin users)POST /signup- User registration
GET /get_syllabus- Get course topicsPOST /save_syllabus- Save uploaded syllabusDELETE /delete_syllabus- Clear syllabus
POST /generate_task- Generate coding tasks (JSON body with topic and difficulty)POST /submit_code- Submit and evaluate code
GET /get_stats- Get user's solved task statistics
GET /notification-settings- Get user preferencesPOST /notification-settings- Save preferences
- ✅ User Authentication (login/signup)
- ✅ Interactive Coding with real-time feedback
- ✅ Task Generation with difficulty levels
- ✅ Progress Tracking and scoring (backend-based)
- ✅ Smart Hints system
- ✅ Notification Settings
- ✅ Modern UI with animations
frontend_study_buddy/
├── index.html # Main HTML file
├── script.js # Main JavaScript logic
├── style.css # Styling
├── config.js # Backend configuration
└── README.md # This file
- Frontend: Pure HTML/CSS/JavaScript
- Backend: Any server (Python, Node.js, etc.)
- CORS: Configure your backend to allow requests from frontend domain