{"id":20763300,"url":"https://github.com/tinspham209/breadit","last_synced_at":"2026-04-13T03:05:55.322Z","repository":{"id":175773604,"uuid":"654451649","full_name":"tinspham209/breadit","owner":"tinspham209","description":"Fullstack Reddit Clone","archived":false,"fork":false,"pushed_at":"2023-12-15T08:25:09.000Z","size":837,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-18T05:44:04.680Z","etag":null,"topics":["editorjs","mysql","next-auth","nextjs","prisma","react-hook-form","react-query","tailwindcss","typescript"],"latest_commit_sha":null,"homepage":"https://breadit-nine.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/tinspham209.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":"2023-06-16T06:52:51.000Z","updated_at":"2023-07-05T22:41:01.000Z","dependencies_parsed_at":"2024-11-17T10:43:49.697Z","dependency_job_id":"1f4f43ec-8467-4751-84fe-1a115c4a2860","html_url":"https://github.com/tinspham209/breadit","commit_stats":null,"previous_names":["tinspham209/breadit"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinspham209%2Fbreadit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinspham209%2Fbreadit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinspham209%2Fbreadit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinspham209%2Fbreadit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinspham209","download_url":"https://codeload.github.com/tinspham209/breadit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243086242,"owners_count":20234002,"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":["editorjs","mysql","next-auth","nextjs","prisma","react-hook-form","react-query","tailwindcss","typescript"],"created_at":"2024-11-17T10:43:41.616Z","updated_at":"2026-04-13T03:05:55.284Z","avatar_url":"https://github.com/tinspham209.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BREADIT\n\nFullstack Reddit Clone\n\u003chr/\u003e\n\n## Tech-stack\n- NextJS 13\n- TypeScript\n- TailwindCSS, shadcn/ui\n- Next-Auth\n- Prisma\n- Redis (Upstash)\n- MySQL / PlanetScale\n- React-Query\n- React-Hook-Form\n- EditorJS\n- date-fns\n- Vercel\n\n## Setup\n\n1. Connect to DB MySQL/PlanetScale\n- Install `planetscale-cli`\n  - https://github.com/planetscale/cli#windows\n- Create an account and \u0026 db in [planetscale](planetscale.com)\n- Get Connection with Prisma type and update `DATABASE_URL` to `.env`\n- Run these cmd\n```\npscale auth login\nyarn prisma generate\nyarn prisma db push\n```\n\n2. Create Google ID \u0026 Google Client ID\n- create new project in [Google Cloud](cloud.google.com)\n- setup new credentials in OAuth2\n- update `GOOGLE_CLIENT_ID` \u0026 `GOOGLE_CLIENT_SECRET` in `.env`\n\n3. Create Upstash/redis ID\n-  create new project in [Upstash](upstash.com) with Redis database \n-  get 2 key in REST API (`UPSTASH_REDIS_REST_URL`, `UPSTASH_REDIS_REST_TOKEN`) of console.upstash.com\n-  update key in `.env`\n```\nREDIS_URL={UPSTASH_REDIS_REST_URL}\nREDIS_SECRET={UPSTASH_REDIS_REST_TOKEN}\n```\n\n4. `NEXTAUTH_SECRET`\n- access to https://generate-secret.vercel.app/32 to get the key\n\n5. Install dependencies\n```\nyarn\n```\n\n6. Run project\n```\nyarn dev\n```\n\n\n# Preview\n\n\u003cimg src=\"./assets/homepage.png\" alt=\"homepage\" width=\"500\"/\u003e\n\u003cbr/\u003e\n\n\u003cimg src=\"./assets/subreddit.png\" alt=\"subreddit\" width=\"500\"/\u003e\n\u003cbr/\u003e\n\n\u003cimg src=\"./assets/create-new-post.png\" alt=\"create-new-post\" width=\"500\"/\u003e\n\u003cbr/\u003e\n\n\u003cimg src=\"./assets/post-detail.png\" alt=\"post-detail\" width=\"500\"/\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinspham209%2Fbreadit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinspham209%2Fbreadit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinspham209%2Fbreadit/lists"}