{"id":25458938,"url":"https://github.com/ahmad-masud/compcode","last_synced_at":"2026-03-09T15:32:55.149Z","repository":{"id":247723072,"uuid":"826673868","full_name":"ahmad-masud/CompCode","owner":"ahmad-masud","description":"⌨ Prepare for your company's coding interview through solving frequently asked LeetCode problems.","archived":false,"fork":false,"pushed_at":"2025-12-03T05:11:15.000Z","size":8759,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-06T06:38:23.822Z","etag":null,"topics":["express","faang","leetcode","mongodb","nodejs","react","stripe"],"latest_commit_sha":null,"homepage":"https://compcode.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ahmad-masud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-07-10T06:51:55.000Z","updated_at":"2025-12-03T05:11:21.000Z","dependencies_parsed_at":"2024-07-13T21:32:32.064Z","dependency_job_id":"a908d42c-756c-42b2-bde9-f3ee34a900e3","html_url":"https://github.com/ahmad-masud/CompCode","commit_stats":null,"previous_names":["ahmad-masud/faangcode"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ahmad-masud/CompCode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmad-masud%2FCompCode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmad-masud%2FCompCode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmad-masud%2FCompCode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmad-masud%2FCompCode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahmad-masud","download_url":"https://codeload.github.com/ahmad-masud/CompCode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmad-masud%2FCompCode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30301109,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T14:33:48.460Z","status":"ssl_error","status_checked_at":"2026-03-09T14:33:48.027Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["express","faang","leetcode","mongodb","nodejs","react","stripe"],"created_at":"2025-02-18T03:29:04.412Z","updated_at":"2026-03-09T15:32:55.125Z","avatar_url":"https://github.com/ahmad-masud.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CompCode\n\nCompCode is a web application designed to help you prepare for coding interviews by solving commonly asked LeetCode problems from various popular companies. The app provides a user-friendly interface to browse, solve, and track your progress.\n\n---\n\n## Features\n\n- **Company-Specific Problems** – View and solve questions by company.\n- **Submission Reports** – Track which problems you've completed.\n- **Progress Tracking** – Lessons, quizzes, and coding tasks are auto-tracked.\n- **Stripe Payments** – Premium subscription with checkout and customer portal.\n- **User Authentication** – Google login powered by Passport.js and JWT.\n- **Dark/Light Mode** – Theme adapts to system or manual preference.\n- **Responsive Design** – Mobile-first and fully responsive.\n\n---\n\n## Tech Stack\n\n- **Frontend**: React + Vite + React Router + Tailwind CSS\n- **Backend**: Express.js + MongoDB + Mongoose\n- **Auth**: Google OAuth 2.0 with Passport.js + JWT\n- **Payments**: Stripe Checkout and Webhooks\n- **Hosting**:\n  - Frontend: [Vercel](https://vercel.com/)\n  - Backend: [Vercel](https://vercel.com/)\n\n---\n\n## Getting Started\n\n### Prerequisites\n\n- Node.js v16+\n- MongoDB Atlas (or local MongoDB)\n- Stripe Account\n- Google Cloud OAuth Client\n- Vercel Account\n\n---\n\n### Server Setup\n\n1. **Clone the project and set up server directory**:\n\n   ```bash\n   git clone https://github.com/ahmad-masud/CompCode.git\n   cd CompCode/server\n   npm install\n   ```\n\n2. **Create a `.env` file**:\n\n   ```env\n   MONGO_URI=your_mongodb_connection_string\n   JWT_SECRET=your_jwt_secret\n   STRIPE_SECRET=your_stripe_secret_key\n   STRIPE_WEBHOOK_SIGNING_SECRET=your_stripe_webhook_secret\n   GOOGLE_CLIENT_ID=your_google_client_id\n   GOOGLE_CLIENT_SECRET=your_google_client_secret\n   CLIENT_URL=http://localhost:3000\n   SERVER_URL=http://localhost:4000\n   ```\n\n3. **Run the server**:\n\n   ```bash\n   npm start\n   ```\n\n---\n\n### Client Setup\n\n1. **Navigate to client**:\n\n   ```bash\n   cd ../client\n   npm install\n   ```\n\n2. **Add a `.env` file**:\n\n   ```env\n   REACT_APP_SERVER_URL=http://localhost:4000\n   REACT_APP_STRIPE_PUBLISHABLE_KEY=your_stripe_publishable_key\n   ```\n\n3. **Run the client**:\n\n   ```bash\n   npm run dev\n   ```\n\n---\n\n## Deployment Notes\n\n- Deploy the **client** (React) to [Vercel](https://vercel.com/)\n- Deploy the **server** (Express) to [Vercel](https://vercel.com/)\n- Set up your Stripe Webhook URL to:\n  ```\n  https://your-backend-host.com/api/payment/webhook\n  ```\n\n---\n\n## License\n\nDistributed under the CC BY-NC-ND 4.0 License. See [LICENSE](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmad-masud%2Fcompcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahmad-masud%2Fcompcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmad-masud%2Fcompcode/lists"}