"The Duolingo for Software Engineering"
CodeMentor AI is a premium, AI-powered educational platform designed to bridge the gap between computer science theory and practical engineering mastery. Built with a focus on Socratic teaching, interactive visualizations, and a luxury user experience.
If you have just cloned this repository, follow these exact steps to get the "Ultimate App" running on your machine:
npm installCreate a .env file in the root directory:
# Required for progress tracking
DATABASE_URL="file:./dev.db"
# Optional: Add your OpenAI API Key for the premium GPT-4 Socratic Tutor.
# If omitted, the app will use the high-fidelity Local Socratic Fallback Engine.
OPENAI_API_KEY="your_key_here"Set up your local SQLite database and generate the Prisma client. Note that Prisma v7 uses prisma.config.ts for database configuration:
npx prisma migrate dev --name init
npx prisma generatenpm run devNavigate to http://localhost:3000.
- Recommended: Use "Responsive Mode" (Mobile view) in your browser for the best luxury experience.
Unlike typical AI tools that simply "dump" solutions, CodeMentor AI uses a Socratic Engine. It analyzes your code, identifies conceptual gaps, and asks probing questions to lead you to the answer yourself.
- Features: Line-by-line explanations, physical-world analogies, and "Thinking" state simulation.
Master complex topics through visual intuition. The app includes custom-built visualizers for:
- DSA: Bubble Sort, Linked List traversals, Graph searches.
- System Design: CPU Scheduling (Round Robin), Memory (Stack vs Heap).
- AI/ML: Perceptron training, Neural Network layers, MLOps Quantization.
- Networking: The TCP/IP 4-layer stack.
The platform monitors your mistakes and time spent. If you struggle with a concept, the Lesson Engine automatically adjusts:
- Difficulty: Switches from "Expert" (write from scratch) to "Easy" (fill-in-the-blanks).
- Recommendations: Suggests foundational lessons if gaps are detected.
- XP & Levels: Earn points for every correct answer and visualization interaction.
- Daily Streaks: Build the habit of daily coding.
- Skill Tree: Progress through 10+ modules from "Programming Fundamentals" to "Advanced AI & ML".
- Framework: Next.js 15 (App Router)
- UI & Animations: Tailwind CSS v4, Framer Motion
- Database: Prisma with SQLite
- State Management: Zustand (with LocalStorage Persistence)
- Icons: Lucide React
- Testing: Jest
We maintain a high bar for quality. To run the automated test suite:
npm testTo run a production-grade build check:
npm run buildCodeMentor AI is released under the MIT License. Built for the future of developer education.