{"id":19169028,"url":"https://github.com/anmoldotx/roc8-assignment","last_synced_at":"2025-10-28T14:45:28.376Z","repository":{"id":248522168,"uuid":"828133468","full_name":"AnmolDotX/roc8-assignment","owner":"AnmolDotX","description":"roc8 assignment of moonshot July,2024","archived":false,"fork":false,"pushed_at":"2024-08-04T04:59:17.000Z","size":422,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-03T23:26:48.910Z","etag":null,"topics":["hackathon","moonshot","pern-stack","roc8","roc8assignment","t3-app"],"latest_commit_sha":null,"homepage":"https://roc8-assignment-by-anmol.vercel.app","language":"TypeScript","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/AnmolDotX.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}},"created_at":"2024-07-13T08:06:39.000Z","updated_at":"2024-08-04T04:59:21.000Z","dependencies_parsed_at":"2024-08-04T05:49:48.304Z","dependency_job_id":null,"html_url":"https://github.com/AnmolDotX/roc8-assignment","commit_stats":null,"previous_names":["anmoldotx/roc8-assignment"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnmolDotX%2Froc8-assignment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnmolDotX%2Froc8-assignment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnmolDotX%2Froc8-assignment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnmolDotX%2Froc8-assignment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AnmolDotX","download_url":"https://codeload.github.com/AnmolDotX/roc8-assignment/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240250354,"owners_count":19771778,"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":["hackathon","moonshot","pern-stack","roc8","roc8assignment","t3-app"],"created_at":"2024-11-09T09:44:41.961Z","updated_at":"2025-10-28T14:45:28.267Z","avatar_url":"https://github.com/AnmolDotX.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Roc8-Moonshot Fullstack Assingment\n\nThis project was developed as a take-home assignment for a Fullstack Developer position at Roc8-Career as part of the Moonshot competition. The application is built using Next.js, TypeScript, Tailwind CSS, Prisma, and PostgreSQL (NeonDB), and is deployed on Vercel.\n\n## Table of Contents\n- [Features](#features)\n- [Tech Stack](#tech-stack)\n- [Getting Started](#getting-started)\n  - [Prerequisites](#prerequisites)\n  - [Installation](#installation)\n  - [Environment Variables](#environment-variables)\n  - [Running the Application](#running-the-application)\n- [Deployment](#deployment)\n- [Future Plans](#future-plans)\n- [Contact](#contact)\n\n## Features\n\n- **Signup System with OTP**: Users can sign up using their email. An OTP is sent to the provided email for verification.\n- **Login**: Users can log in using their email and password.\n- **Category Management**: Logged-in users can view all categories and toggle (check/uncheck) their selection. The selected categories are saved to their profile and persisted across sessions.\n\n## Tech Stack\n\n- **Frontend**: Next.js, TypeScript, Tailwind CSS\n- **Backend**: Next.js API Routes, Prisma ORM\n- **Database**: PostgreSQL (NeonDB)\n- **Deployment**: Vercel\n\n## Getting Started\n\n### Prerequisites\n\n- Node.js (v18 or higher)\n- npm or yarn\n- PostgreSQL\n\n### Installation\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/AnmolDotX/roc8-assignment.git\ncd roc8-assignment\n```\n\n2. Install dependencies:\n\n```bash\nnpm install\n# or\nyarn install\n```\n\n### Environment Variables\n\nCreate a `.env` file in the root of your project and add the following environment variables:\n\n```plaintext\n\nAPI_BASE_URL=\"same as the base url for this app\"\nDATABASE_URL=\"postgres database connection string\"\n\nACCESS_TOKEN_SECRET=\"your secret access token key\"\nREFRESH_TOKEN_SECRET=\"your secret refresh token key\"\nRESEND_API_KEY=\"your resend api key\"\n\n\n```\n\n### Running the Application\n\n1. Generate Prisma model in Database:\n\n```bash\nnpm run db:generate\n```\n\n2. seed 100 of data in database:\n\n```bash\ncd src/data\nnode seed.js\n```\n\n3. Start the development server:\n\n```bash\nnpm run dev\n# or\nyarn dev\n```\n\nThe application will be available at `http://localhost:3000`.\n\n## Deployment\n\nThe application is deployed on Vercel. [live](https://roc8-assignment-by-anmol.vercel.app/)\n\n## Future Plans\n\n- **New Endpoints**:\n  - `checked-category`: Allows users to fetch only their checked categories.\n  - `logout`: Removes the HTTP-only cookie set at login to log the user out.\n  \n- **CSS Enhancements**: Improve the visual aesthetics of the application.\n- **Additional Features**: More user profile options and settings.\n\n## Contact\n\nFor any questions or feedback, feel free to contact me at [anmolfolio@gmail.com](mailto:anmolfolio@gmail.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanmoldotx%2Froc8-assignment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanmoldotx%2Froc8-assignment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanmoldotx%2Froc8-assignment/lists"}