A web-based platform for solving algorithmic coding problems with real-time code execution, AI-powered hints, and code explanations.
- Browse and filter coding problems by difficulty, category, and tags
- Code editor supporting Python, C++, and Java
- Real-time code execution via OneCompiler
- AI-powered hints and code explanations via OpenRouter
- User authentication with profile and progress tracking
- Admin panel for managing problems and viewing submissions
- Dark theme UI
- Backend: Node.js + Express.js
- Database: MongoDB
- Views: EJS
- Code Execution: OneCompiler API
- AI: OpenRouter API
- Styling: CSS3
-
Install dependencies:
npm install
-
Create
.envfile:MONGODB_URI=mongodb://localhost:27017/algoforge ONECOMPILER_KEY=your_onecompiler_api_key OPENROUTER_KEY=your_openrouter_api_key OPENROUTER_MODEL=openai/gpt-4o-mini SESSION_SECRET=your_session_secret PORT=3000 -
Start the server:
npm run dev
-
Seed problems (optional):
node scripts/seedProblems.js
Default admin credentials: admin / admin
Admin panel: http://localhost:3000/admin/login