onyx-learning

byThanush H

You are an expert full-stack developer and ML engineer. I am building a hackathon project called *"AI Personalized Learning Assistant"* and I need a COMPLETE working solution using: * Frontend: React (modern UI) * Backend: Python Flask * Machine Learning: scikit-learn * Dataset: Student performance dataset (CSV) ⚠️ IMPORTANT CONSTRAINTS: * This is a 6-hour hackathon project * Keep implementation SIMPLE but IMPRESSIVE * Avoid unnecessary complexity * Everything must WORK without errors * No external paid APIs * Use dataset-based ML (not just prompts) --- # 🎯 PROJECT GOAL Build a system that: 1. Takes student marks  subject wise and analysis it  csv file should contain below headings: 1.student name 2.subject and its marks 3.study time 4.attendance 2. Uses ML to classify student level: * Beginner * Intermediate * Advanced 3. Provides: * Personalized recommendations * Simple study plan 4. Displays results in a modern UI dashboard 5. --- # 🧠 TECHNIQUES TO INCLUDE Explicitly implement and explain: 1. Recommendation System * Based on weak subjects 2. Classification Model * Use ML (RandomForest or similar) 3. NLP (basic) * Generate study plan using rule-based or simple logic * Use NLP to analyze student responses, detect key concepts, identify misconceptions, and provide targeted feedback based on answer quality and sentiment --- # πŸ“ OUTPUT REQUIREMENTS Give FULL code for: ## 1. Dataset * Provide sample CSV (students.csv) ## 2. ML Model (model.py) * Load dataset * Create labels * Train model * Predict function ## 3. Backend (Flask) * app.py with: * /analyze endpoint * JSON input/output * Integration with ML model ## 4. Frontend (React) * Modern UI (dark theme) * Components: * Form (input marks) * Dashboard * Result display * Use axios for API calls ## 5. Styling * Clean, modern, hackathon-winning UI * Cards, buttons, layout --- # πŸ—οΈ ARCHITECTURE Include a clear explanation of: Frontend β†’ Backend β†’ ML Model β†’ Dataset β†’ Output --- # πŸš€ EXECUTION STEPS Provide step-by-step instructions: * Install dependencies * Run backend * Run frontend * Test API --- # 🎀 HACKATHON EXPLANATION Also include: 1. How to explain project in 1 minute 2. Where each technique is used: * Recommendation system * Classification * NLP 3. Expected judge questions + answers --- # ⚠️ ERROR HANDLING Ensure: * No missing imports * No broken code * Works on Windows * Clear instructions --- # πŸ† FINAL OUTPUT The result should be: * Fully working ML-based web app * Clean UI * Real ML usage * Easy to demo in hackathon --- Now generate the COMPLETE solution step-by-step.

LandingArchitectureReportAdmin
Landing

Comments (0)

No comments yet. Be the first!

Project Tasks13

#1

Implement Theme and Structure

To Do

As a Frontend Developer, I want to implement the global color theme and structural layout from the mock design pages so that all pages look exactly identical to the mock designs. This includes applying the dark theme (#0D1117 background, #161B22 surface, #C9D1D9 text, #58A6FF accent, #8B949E muted), setting up global CSS/Tailwind config, typography, spacing, card styles, button styles, 3D card animations, progress rings, and animated transitions. Remove any pages not referenced in the SRD or user flows. Scope: Landing, Admin, Architecture, Dashboard, Report, Form pages. All scaffold pages not in scope should be removed or redirected.

AI 85%
Human 15%
High Priority
1 day
Frontend Developer
#8

Implement ML Classification Model

To Do

As an AI Engineer, I want to implement the ML classification model (model.py) using scikit-learn RandomForest so that student performance levels (Beginner, Intermediate, Advanced) can be predicted from marks, study time, and attendance. Includes loading the CSV dataset, feature engineering, label creation, model training, evaluation (accuracy score), and a predict function. Also generate a sample students.csv with subject-wise columns.

AI 80%
Human 20%
High Priority
1 day
AI Engineer
#2

Build Landing Page

To Do

As a Frontend Developer, I want to implement the Landing page based on the existing JSX design (Landing v3) so that users can view the app introduction and navigate to the student form or admin login. The page should feature the dynamic interactive dashboard concept, dark mode aesthetic, animated transitions, and prominent CTAs linking to the Form page (for students) and Admin login (for admins). Follows the user flow: Landing β†’ Form (Student) and Landing β†’ Admin Login (Admin).

Depends on:#1
Waiting for dependencies
AI 90%
Human 10%
High Priority
1 day
Frontend Developer
#3

Build Form Page

To Do

As a Frontend Developer, I want to implement the Form page based on the existing JSX design (Form v1) so that students can input their subject-wise marks, study time, and attendance. The form should have fields for each subject's marks, study time (hours), and attendance (%), a submit button that calls the /analyze backend API, and transitions to the Dashboard page upon successful submission. Follows the user flow: Landing β†’ Form β†’ Dashboard.

Depends on:#1
Waiting for dependencies
AI 90%
Human 10%
High Priority
1 day
Frontend Developer
#4

Build Dashboard Page

To Do

As a Frontend Developer, I want to implement the Dashboard page based on the existing JSX design (Dashboard v1) so that students and admins can view predicted performance levels, personalized recommendations, and study plans. Features include 3D card flip animations showing recommendations, circular progress rings for attendance/study time/marks, a selective re-run button, and navigation to the Report page. Follows the user flow: Form β†’ Dashboard β†’ Report (Student) and Admin β†’ Dashboard (Admin).

Depends on:#1
Waiting for dependencies
AI 88%
Human 12%
High Priority
1.5 days
Frontend Developer
#5

Build Admin Page

To Do

As a Frontend Developer, I want to implement the Admin page based on the existing JSX design (Admin v2) so that admins can log in, upload a CSV dataset, trigger model training, and view model accuracy. The page should include a CSV upload component, a train model button, an accuracy display section, and navigation links to Architecture and Report pages. Follows the user flow: Landing β†’ Admin Login β†’ Upload Dataset β†’ Train Model β†’ View Accuracy β†’ Architecture β†’ Report.

Depends on:#1
Waiting for dependencies
AI 88%
Human 12%
High Priority
1 day
Frontend Developer
#6

Build Architecture Page

To Do

As a Frontend Developer, I want to implement the Architecture page based on the existing JSX design (Architecture v1) so that admins can view the system architecture diagram (Frontend β†’ Backend β†’ ML Model β†’ Dataset β†’ Output) and the user interaction flow chart. The page should render both diagrams in a visually appealing format with dark theme styling. Follows the user flow: Admin β†’ View System Design β†’ View Flow Chart.

Depends on:#1
Waiting for dependencies
AI 88%
Human 12%
Medium Priority
0.5 days
Frontend Developer
#7

Build Report Page

To Do

As a Frontend Developer, I want to implement the Report page based on the existing JSX design (Report v1) so that users can view a summary report of analysis results and download it as a PDF. The page should display student performance level, subject-wise marks breakdown, recommendations, study plan, and a download button. Follows the user flow: Dashboard β†’ Report (Student) and Admin β†’ Report (Admin).

Depends on:#1
Waiting for dependencies
AI 88%
Human 12%
High Priority
1 day
Frontend Developer
#9

Implement Recommendation Engine

To Do

As an AI Engineer, I want to implement the recommendation engine so that personalized study recommendations and a simple study plan are generated based on a student's weak subjects. Includes rule-based NLP logic to detect weak subjects from marks, generate targeted feedback, and produce a structured study plan. Integrates with the ML model output.

Depends on:#8
Waiting for dependencies
AI 78%
Human 22%
High Priority
1 day
AI Engineer
#11

Implement Admin Dataset Upload API

To Do

As a Backend Developer, I want to implement the Flask /upload-dataset and /train-model endpoints so that admins can upload a CSV dataset and trigger model retraining. The upload endpoint accepts a multipart CSV file, saves it, and the train endpoint retrains the model and returns the new accuracy score.

Depends on:#8
Waiting for dependencies
AI 78%
Human 22%
High Priority
0.5 days
Backend Developer
#10

Implement Analyze API Endpoint

To Do

As a Backend Developer, I want to implement the Flask /analyze POST endpoint so that the frontend can submit student data and receive performance level, recommendations, and study plan in JSON. Integrates with the ML model and recommendation engine. Handles input validation and error responses gracefully.

Depends on:#8#9
Waiting for dependencies
AI 80%
Human 20%
High Priority
0.5 days
Backend Developer
#12

Implement Report Generation API

To Do

As a Backend Developer, I want to implement the Flask /generate-report endpoint so that users can generate and download a PDF report summarizing their analysis results, recommendations, and study plan. The endpoint returns a downloadable PDF file using a library like ReportLab or WeasyPrint.

Depends on:#10
Waiting for dependencies
AI 75%
Human 25%
Medium Priority
0.5 days
Backend Developer
#13

Integrate Frontend with Backend APIs

To Do

As a Frontend Developer, I want to wire all frontend pages to the corresponding backend API endpoints using axios so that the Form page submits to /analyze, the Admin page uploads to /upload-dataset and /train-model, and the Report page calls /generate-report for PDF download. Includes setting up React Router for navigation between all pages and handling loading/error states.

Depends on:#7#11#6#4#5#3#10#2#12
Waiting for dependencies
AI 82%
Human 18%
High Priority
1 day
Frontend Developer
Landing design preview
Landing: View App
Admin: Login
Admin: Upload Dataset
Admin: Train Model
Admin: View Accuracy
Architecture: View System Design
Architecture: View Flow Chart
Report: Generate Report
Dashboard: Monitor Performance