feat: Add AI Doubt Solver and 30-Day Python Challenge Tracker - #17
Open
Hemasri0405 wants to merge 1 commit into
Open
feat: Add AI Doubt Solver and 30-Day Python Challenge Tracker#17Hemasri0405 wants to merge 1 commit into
Hemasri0405 wants to merge 1 commit into
Conversation
Add two new learning features to the PyBe platform: AI Doubt Solver (/doubts): - Submit Python code for syntax/logical error analysis - Beginner-friendly error explanations with hints - Corrected code suggestions - Related concept recommendations - Full history with delete support 30-Day Python Challenge (/challenge): - 30 progressive challenges (Easy/Medium/Hard) - Day selector with difficulty color coding - Progress tracking with streak counter - Badge system (Beginner, Consistent Learner, Explorer, Master) - Persistent backend storage in db.json Backend: - New routes: doubts, challenges - New service: doubtSolver (rule-based Python analyzer) - Updated store.js with doubt/challenge CRUD operations Frontend: - Added react-router-dom for page routing - Navbar with Learn / Doubt Solver / Challenge navigation - DoubtSolver and PythonChallenge pages - Updated styles.css with responsive layouts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces two new learning features to the PyBe platform:
Features Added
AI Doubt Solver (
/doubts)30-Day Python Challenge (
/challenge)db.jsonBackend Changes
New Routes
/api/doubts/api/doubts/api/doubts/:id/api/challenges/api/challenges/progress/api/challenges/:day/completeNew Files
server/src/services/doubtSolver.js— Rule-based Python code analyzerserver/src/data/challenges.js— 30 challenge definitionsserver/src/routes/doubts.js— Doubt solver API routesserver/src/routes/challenges.js— Challenge tracker API routesUpdated Files
server/src/index.js— Registered new routesserver/src/data/store.js— Added doubt/challenge CRUD operationsFrontend Changes
New Files
client/src/pages/DoubtSolver.jsx— Doubt Solver pageclient/src/pages/PythonChallenge.jsx— Challenge pageUpdated Files
client/src/main.jsx— Added react-router-dom routing + navbarclient/src/styles.css— Added responsive styles for new pagesclient/package.json— Added react-router-dom dependencyTesting
vite build)