Master algorithms, data structures, and top-tier software engineering skills interactively with real-time feedback and gamified progression.
Features • Tech Stack • Setup & Installation • Architecture • Previews
CodePilot is an interactive, gamified learning platform built for developers who want to take their coding skills to the next level. Through structured learning paths, real-world algorithmic problems, and instant verification, CodePilot makes practicing and mastering code an engaging and rewarding experience.
- 🎮 Gamified Progression: Keep your learning streak alive and build momentum.
- ⚡ Instant Validation: Run your code and check it against test cases instantly.
- 📚 Structured Paths: Specially curated courses covering C++, Java, Python, and Web Development.
Write and test your code directly inside the browser. CodePilot features a robust mock-execution engine that handles and verifies code submissions instantly, letting you debug and refine your solution.
Track your performance stats at a glance. Features a gamified user profile including active coding streaks (flames), acquired Respect Points, and a list of all successfully completed problems.
Take curated courses tailored to major languages and concepts. Get access to detailed theory, syntax references, and custom practice material for C++, Java & OOP, Python, and Full-Stack Web Development.
A production-ready authorization flow securing user profiles and personal statistics using JSON Web Tokens (JWT) and secure bcryptjs password hashing.
| Layer | Technology | Purpose |
|---|---|---|
| Frontend | HTML5, Vanilla CSS3 | Responsive and elegant user interface, crafted with glassmorphic cards and dark-mode accents. |
| Frontend Scripting | JavaScript (ES6+) | Asynchronous API integration, dynamic DOM rendering, and client-side page routing. |
| Backend API | Node.js, Express.js | Structured MVC server, RESTful routing, request logging, and robust controller middlewares. |
| Database | MongoDB, Mongoose | Persistent storage for users, courses, coding challenges, and historical submissions. |
| Security | JSON Web Tokens, bcryptjs | User session management and secure credential hashing. |
Here is an overview of the file structure in CodePilot:
CodePilot/
├── assets/ # Images, logos, and UI screenshot assets
├── backend/
│ ├── config/ # Configuration files (Database connections)
│ ├── controllers/ # Controller logic (Auth, problems, courses, submissions)
│ ├── middleware/ # JWT Authorization verification
│ ├── models/ # Mongoose DB schemas (User, Problem, Course, Submission)
│ └── routes/ # RESTful API endpoints mapping
├── css/ # Sleek design stylesheets & variables
├── js/ # Frontend script handlers and logic
├── index.html # Main landing page
├── auth_v2.html # Login/Signup gate
├── dashboard_v2.html # User profile, streaks, and achievements dashboard
├── course_v2.html # Learning path detailed outline
├── problems_v2.html # Algorithmic coding practice challenges repository
├── practice_v2.html # Interactive code-editor and execution workspace
├── mcq_v2.html # Core concept multiple choice questions page
├── server.js # Server main entrypoint
├── seed.js # Master DB seed script (Default courses & problems)
├── package.json # App dependencies & script configuration
└── .env # Server environment configurations
Follow these steps to run CodePilot locally on your machine:
Make sure you have Node.js and a MongoDB Instance installed.
Navigate to the root directory and install dependencies:
git clone https://github.com/ChandanVarshney031/CodePilot.git
cd CodePilot
npm installCreate a file named .env in the root directory and add the following config details:
PORT=5001
MONGODB_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_signing_keyTo populate CodePilot with default courses and practice problems, run the seed script:
node seed.jsStart the development server:
npm startYour application will be live at http://localhost:5001!
Track your daily coding streak, view earned respect points, and review solved challenges.
Write solutions, run test cases instantly, and receive immediate console responses.
Distributed under the ISC License. See package.json for details.
Developed with ❤️ by Chandan Varshney.


