Skip to content

mrehanamjad/Code2DSA-AI-Powered-Coding-Platform-Like-LeetCode

Repository files navigation

Code2DSA 🚀

AI-Powered Coding Platform (LeetCode-like)

Code2DSA is a full-stack, AI-powered coding platform designed to help developers practice Data Structures & Algorithms efficiently. It provides real-time code execution, multi-test case submissions, performance tracking, and an AI-based code reviewer that analyzes solutions and offers improvement suggestions.


✨ Features

  • 🧠 DSA Problem Solving – Practice curated coding problems
  • ▶️ Code Execution – Run code instantly against custom inputs
  • Multi-Test Case Submissions – Submit solutions against multiple test cases
  • 🌍 Multiple Language Support - JavaScript, Python, Java, C++ and others
  • 🎯 Filtering - Difficulty & Topic-Based
  • 🤖 AI Code Reviewer – Analyze solutions, suggest optimizations, and provide feedback
  • 📐 AI-Based Complexity Analysis - Time & Space complexity
  • 🔐 Authentication – Secure login using NextAuth
  • 👤 User Profiles – Track solved problems, submissions, and performance stats
  • 📊 Submission History & Analytics – Monitor progress over time

🛠 Tech Stack

Frontend & Backend

  • Next.js (Full Stack)
  • TypeScript
  • Tailwind CSS

Authentication

  • NextAuth

AI Integration

  • OpenAI Agent SDK

Database

  • MongoDB

🚀 Live Demo

🔗 Live App: https://code2dsa.vercel.app


⚙️ Installation & Setup

  1. Clone the repository
git clone https://github.com/mrehanamjad/code2dsa.git
cd code2dsa
  1. Install dependencies
npm install
  1. Environment Variables

Create a .env.local file and add:

MONGODB_URI=your_mongodb_connection_string
NEXTAUTH_SECRET=your_secret_key
NEXT_PUBLIC_APP_URL=http://localhost:3000
GEMINI_API_KEY=your_gemini_api_key
  1. Run the development server
npm run dev

Open http://localhost:3000 in your browser.


👨‍💻 Author

Muhammad Rehan Amjad


⭐ Support

If you find this project helpful, consider giving it a ⭐ on GitHub — it really helps!


If you want, I can also:

  • make a shorter README (startup-style)
  • add architecture diagrams
  • write a contributing.md
  • optimize it for open-source visibility

Just tell me 👌

About

AI-Powered Coding Platform like leetcode ( under construction )

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages