Live Link:
This LeetCode Clone is a high-performance platform designed for developers to practice coding problems, execute code in real-time, and share detailed solutions. By integrating the Monaco Editor (the engine behind VS Code) and JudgeAPI, it provides a production-grade environment for mastering Data Structures and Algorithms.
- Multi-Language Execution: Support for C, C++, Python, JavaScript, and Java using a secure remote execution engine.
- Advanced Code Editor: Integrated Monaco-React Editor providing a VS Code-like experience with syntax highlighting and indentation.
- Real-Time Code Running: Leverage JudgeAPI to run code against test cases and receive instant feedback on performance and errors.
- Solution Sharing: A dedicated space for users to write and share their logic using React-MD Editor for beautiful Markdown formatting.
- AI Leet Bot: A built-in chat assistant to help users brainstorm algorithms, explain time complexity, or debug code logic.
- Progress Tracking: Personalized dashboard displaying the total count of solved problems and a comprehensive history of all user submissions.
- Secure Authentication: Robust sign-up flow with email verification via Resend Mail and schema validation using Zod.
- Next.js: Full-stack React framework for optimized routing and server-side rendering.
- Tailwind CSS: For a sleek, responsive, and developer-centric UI/UX.
- MongoDB: Database for managing users, coding problems, and shared solutions.
- TypeScript: Ensuring end-to-end type safety and better developer experience.
- JudgeAPI: External API for compiling and executing code in a sandboxed environment.
- Monaco-React: The industry-standard web code editor.
- React-MD Editor: A powerful Markdown editor for community solution posts.
- Resend: Professional email API for handling account verification.
- React Hook Form & Zod: For efficient form management and strict data validation.
Follow these steps to set up the project on your local machine:
- Clone the Repository
git clone https://github.com/Avijit200318/Uber-Clone.git- Add all the .env variables
- Make sure to update the values (like API keys, Mongo URI, etc.) inside both .env files according to .env.txt file local setup or environment.
- Install Dependencies
npm install- Run the Development Server
npm run devThe application will be accessible at http://localhost:3000.
For API documentation click here
- Account Verification: Sign up and verify your email through the link sent by Resend.
- Solve Problems: Choose a challenge, select your preferred language (C, C++, Python, JS, Java), and write code in the Monaco Editor.
- Run & Submit: Use the Run button to test your logic against sample cases via JudgeAPI and Submit to permanently save your progress and update your solved count.
- Chat with Bot: Use the Leet Bot to get hints, clarify problem statements, or brainstorm logic when stuck.
- Post Solutions: Navigate to the solution tab and use the Markdown Editor (React-MD) to explain your approach with formatted code blocks and text.
- Track Growth: View your profile to see the total count of problems solved and review your entire submission history.
Contributions are welcome! Whether you're fixing a bug, enhancing features, or suggesting improvements, feel free to submit a pull request or open an issue.
This project is licensed under the MIT License. See the LICENSE file for full details.


