{"id":28092630,"url":"https://github.com/aestheticsuraj234/chai-or-leetcode","last_synced_at":"2025-05-13T13:24:39.849Z","repository":{"id":287133588,"uuid":"963678421","full_name":"Aestheticsuraj234/chai-or-leetcode","owner":"Aestheticsuraj234","description":" Welcome to LeetLab A Platform Inspired by Leetcode which helps you to prepare for coding interviews and helps you to improve your coding skills by solving coding problems","archived":false,"fork":false,"pushed_at":"2025-05-03T10:33:29.000Z","size":10339,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-03T11:29:42.172Z","etag":null,"topics":["backend","daisyui","docker","expressjs","frontend","judge0","postgres","prisma","reactjs"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Aestheticsuraj234.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-10T03:43:48.000Z","updated_at":"2025-05-03T10:33:32.000Z","dependencies_parsed_at":"2025-05-03T11:35:04.544Z","dependency_job_id":null,"html_url":"https://github.com/Aestheticsuraj234/chai-or-leetcode","commit_stats":null,"previous_names":["aestheticsuraj234/chai-or-leetcode"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aestheticsuraj234%2Fchai-or-leetcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aestheticsuraj234%2Fchai-or-leetcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aestheticsuraj234%2Fchai-or-leetcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aestheticsuraj234%2Fchai-or-leetcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aestheticsuraj234","download_url":"https://codeload.github.com/Aestheticsuraj234/chai-or-leetcode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253948900,"owners_count":21989050,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backend","daisyui","docker","expressjs","frontend","judge0","postgres","prisma","reactjs"],"created_at":"2025-05-13T13:24:38.876Z","updated_at":"2025-05-13T13:24:39.836Z","avatar_url":"https://github.com/Aestheticsuraj234.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"```bash\nnpx prisma init\n```\n\nThis will create a new `prisma/` folder with a `schema.prisma` file inside, and also add a `.env` file at the root of your project.\n\nIf you haven't installed Prisma yet, first install it with:\n\n```bash\nnpm install prisma --save-dev\n```\n\nAnd if you also want the Prisma Client to query your database:\n\n```bash\nnpm install @prisma/client\n```\n\n\ndocker run --name my-postgres -e POSTGRES_USER=myuser -e POSTGRES_PASSWORD=mypassword -p 5432:5432 -d postgres\n\n\n# LeetCode Clone - Problem Solving Platform\n\n---\n![Project Thumbnail](./frontend/public/thumbnail.png)\n\n## 🌟 About the Project\n\nThis is a **LeetLab - A Leetcode Inspired Product** designed to help developers practice coding challenges in multiple programming languages (JavaScript, Python, Java). The platform includes features such as:\n\n- **Dynamic Code Editor**: Powered by Monaco Editor, allowing users to write and test code in real-time.\n- **Problem Descriptions**: Detailed problem descriptions, examples, constraints, and hints.\n- **Test Cases**: Predefined test cases for each problem to validate solutions.\n- **Multi-Language Support**: Write solutions in JavaScript, Python, or Java.\n- **Submission Tracking**: View submission history, memory usage, runtime, and status (Accepted, Wrong Answer, etc.).\n- **Responsive Design**: Built with modern UI/UX principles for a seamless experience on all devices.\n\n---\n\n## 🚀 Features\n\n### 1. **Interactive Code Editor**\n\n- Real-time syntax highlighting using the Monaco Editor.\n- Supports JavaScript, Python, and Java.\n\n### 2. **Dynamic Input Parsing**\n\n- Users can submit input dynamically via `readline` or predefined test cases.\n\n### 3. **Problem Details**\n\n- Each problem includes:\n  - Description\n  - Examples with inputs, outputs, and explanations\n  - Constraints\n  - Editorial (hints and optimal solutions)\n\n### 4. **Execution and Submission**\n\n- Run code directly in the browser and get instant feedback.\n- View execution results, including runtime, memory usage, and error messages.\n\n### 5. **User Authentication**\n\n- Secure login and registration for tracking user progress and submissions.\n\n### 6. **Admin Panel**\n\n- Admins can add new problems, manage submissions.\n\n---\n\n## 🛠️ Tech Stack\n\n- **Frontend**: React.js, Tailwind CSS, Monaco Editor\n- **Backend**: Node.js, Express.js\n- **Database**: PostgreSQL (or Prisma ORM)\n- **Authentication**: JWT (JSON Web Tokens)\n- **Code Execution**: Judge0 API (for running and validating code submissions)\n- **State Management**: Zustand (React state management library)\n- **Version Control**: Git, GitHub\n\n---\n\n## 📦 Installation and Setup\n\n### Prerequisites\n\n- Node.js (v16 or higher)\n- npm or yarn\n- PostgreSQL database\n- Judge0 API \n### Steps to Run Locally\n\n1. **Clone the Repository**\n\n   ```bash\n   git clone https://github.com/Aestheticsuraj234/chai-or-leetcode.git\n   cd backend\n   cd frontend\n   ```\n\n2. **Install Dependencies**\n\n   ```bash\n   npm install\n   ```\n\n3. **Set Up Environment Variables**\n   Create a `.env` file in the root directory and add the following variables:\n   ```env\n   PORT =\n   DATABASE_URL=\n   JWT_SECRET=\n   JUDGE0_API_URL=http://localhost:2358/\n   ```\n\n4. **Run the Development Server**\n```bash\nnpm run dev\n````\n\n\n\n---\n\n\n## 📝 Contributing\n\nWe welcome contributions from the community! Here’s how you can help:\n\n1. **Fork the Repository**\n2. **Create a New Branch**\n   ```bash\n   git checkout -b feature/your-feature-name\n   ```\n3. **Commit Your Changes**\n   ```bash\n   git commit -m \"Add your feature description\"\n   ```\n4. **Push to the Branch**\n   ```bash\n   git push origin feature/your-feature-name\n   ```\n5. **Open a Pull Request**\n\n\n\nHere’s the categorized table for the tasks you’ve listed, organized into **Bug Fixes**, **Enhancements**, and **New Features**:\n\n---\n\n### **Categorized Tasks**\n\n| **Category**       | **Task Description**                                                                                     | **Focus Area**                                                                 |\n|---------------------|---------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| **Bug Fixes**      | On problem load, there is an issue with the editor.                                                     | Debugging and fixing editor initialization issues.                            |\n|                     | Fix the profile page current UI.                                                                       | Improving UI/UX consistency on the profile page.                               |\n|                     | Fix the syntax highlighting of My Submissions in the profile.                                           | Ensuring proper syntax highlighting for code submissions.                      |\n|                     | Not handled empty states properly.                                                                     | Adding proper error handling and placeholder content for empty states.         |\n|                     | Fix the proper indentation issue while creating a question in the add problem section.                  | Ensuring clean formatting and validation for problem creation.                 |\n| **Enhancements**   | Add Syntax Highlighting for Output.                                                                    | Enhancing UI/UX by improving readability of outputs (e.g., JSON, arrays).      |\n|                     | Add Light and Dark Mode Toggle Functionality.                                                          | Improving user experience with theme preferences.                              |\n|                     | Enhance Our Code Editor (e.g., Code Formatting, Auto-completion, Add Custom Test Cases).                | Upgrading the editor with advanced features for better usability.              |\n|                     | Proper Profile Tracking (like LeetCode) with Contribution Graph.                                        | Adding detailed tracking and visualization for user progress.                  |\n|                     | A Great Landing Page and Proper Navigation Routes.                                                     | Improving the first impression and navigation flow of the platform.            |\n| **New Features**   | Add Code Submit and Code Running Logic.                                                                | Implementing core functionality for running and submitting code.               |\n|                     | Make a dynamic function to handle `readline` for dynamic input handling.                                | Supporting interactive input for coding challenges.                            |\n|                     | Integrate Free AI Models into This Application.                                                        | Adding AI-powered features like hints, suggestions, or explanations.           |\n|                     | Like, Unlike, Save, Mark for Revision.                                                                 | Adding social and study-tracking features for problems.                        |\n\n---\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faestheticsuraj234%2Fchai-or-leetcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faestheticsuraj234%2Fchai-or-leetcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faestheticsuraj234%2Fchai-or-leetcode/lists"}