{"id":14987571,"url":"https://github.com/weiwei2694/x-twitter-clone","last_synced_at":"2025-04-12T00:16:21.827Z","repository":{"id":203125341,"uuid":"694722826","full_name":"weiwei2694/x-twitter-clone","owner":"weiwei2694","description":"Fullstack X Twitter Clone: Next.js 13, React, Typescript, Prisma, Clerk, Tailwind CSS, Cloudinary, MySQL, Shadcn UI, Zustand","archived":false,"fork":false,"pushed_at":"2023-10-29T06:45:35.000Z","size":1689,"stargazers_count":51,"open_issues_count":0,"forks_count":7,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-12T00:16:14.481Z","etag":null,"topics":["clerk","cloudinary","mysql","nextjs13","prisma","react","shadcn-ui","tailwindcss","typescript","zustand"],"latest_commit_sha":null,"homepage":"https://x-twitter-clone-weiwei2694.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/weiwei2694.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-09-21T15:02:36.000Z","updated_at":"2025-03-20T10:00:25.000Z","dependencies_parsed_at":"2023-10-29T07:24:39.628Z","dependency_job_id":null,"html_url":"https://github.com/weiwei2694/x-twitter-clone","commit_stats":{"total_commits":228,"total_committers":2,"mean_commits":114.0,"dds":0.00877192982456143,"last_synced_commit":"e4061363d02a87fdb3f60a52c9c1ce332e6c8eb2"},"previous_names":["weiwei2694/x-twitter-clone"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weiwei2694%2Fx-twitter-clone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weiwei2694%2Fx-twitter-clone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weiwei2694%2Fx-twitter-clone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weiwei2694%2Fx-twitter-clone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weiwei2694","download_url":"https://codeload.github.com/weiwei2694/x-twitter-clone/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248497818,"owners_count":21113984,"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":["clerk","cloudinary","mysql","nextjs13","prisma","react","shadcn-ui","tailwindcss","typescript","zustand"],"created_at":"2024-09-24T14:14:56.950Z","updated_at":"2025-04-12T00:16:21.796Z","avatar_url":"https://github.com/weiwei2694.png","language":"TypeScript","funding_links":[],"categories":["Inspirations \u0026 Examples"],"sub_categories":[],"readme":"# Fullstack X Twitter Clone: Next.js 13, React, Typescript, Prisma, Clerk, Tailwind CSS, Cloudinary, MySQL, Shadcn UI, Zustand\n\nThis project does not implement Websockets, so it still has defects in toggle like, bookmark and follow. and it took me about 3-4 weeks to do it, and of course I learned a lot of new things.\n\n## Demo Notice\n\n\u003ca href=\"https://x-twitter-clone-weiwei2694.vercel.app/\" target=\"_blank\"\u003eX Twitter Clone\u003c/a\u003e\n\nIf you can't open it or there are problems, most likely my railway hobby plan has run out :(.\nSo run it locally if you want to see all the features.\n\nbecause I use a hobby plan from railway, the performance presented by my website will not be very good, maybe there will be a delay of 1-5 seconds, when querying.\n\n\u003ctable style=\"width:100%; border: 0px; box-sizing: border-box;\"\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\n      \u003cfigure\u003e\n\t\t\t\t\u003cimg src=\"./public/assets/previews/preview-home.webp\" loading=\"lazy\" alt=\"Preview Home\" /\u003e\n\t\t\t\u003c/figure\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003cfigure\u003e\n\t\t\t\t\u003cimg src=\"./public/assets/previews/preview-explore.webp\" loading=\"lazy\" alt=\"Preview Explore\" /\u003e\n\t\t\t\u003c/figure\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003cfigure\u003e\n\t\t\t\t\u003cimg src=\"./public/assets/previews/preview-notifications.webp\" loading=\"lazy\" alt=\"Preview Notifications\" /\u003e\n\t\t\t\u003c/figure\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003cfigure\u003e\n\t\t\t\t\u003cimg src=\"./public/assets/previews/preview-bookmarks.webp\" loading=\"lazy\" alt=\"Preview Bookmarks\" /\u003e\n\t\t\t\u003c/figure\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003e\n\t\t\t\u003cfigure\u003e\n\t\t\t\t\u003cimg src=\"./public/assets/previews/preview-profile.webp\" loading=\"lazy\" alt=\"Preview Profile\" /\u003e\n\t\t\t\u003c/figure\u003e\n\t\t\u003c/td\u003e\n\t\u003c/tr\u003e\n\u003c/table\u003e\n\n## Key Features\n\n- Create Tweet - image upload, link\n- Delete Tweet\n- Share Tweet\n- Reply Tweet\n- Like Tweet\n- Bookmark Tweet\n- Follow User\n- Notifications - like, comment, reply, follow\n- Search Menu - search for user\n- Search and Explore Page\n- Edit Profile\n- Profile - posts, replies, likes\n- Pagination\n- Beautiful UI using TailwindCSS and ShadcnUI\n- Full responsivity and mobile UI\n- MySQL database using Railways\n- ORM using Prisma\n- Authentication with Clerk\n\n## Cloning the repository\n\n```bash\ngit clone https://github.com/weiwei2694/x-twitter-clone.git\ncd x-twitter-clone\n```\n\n## Install packages\n\n```bash\nnpm install\nyarn install\npnpm install\nbun install\n```\n\n## Setup .env file\n\n```bash\n# CLERK\nNEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=\nCLERK_SECRET_KEY=\nNEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in\nNEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up\nNEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/onboarding\nNEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/onboarding\n\n# DATABASE\nDATABASE_URL=\n\n# CLOUDINARY\nNEXT_PUBLIC_CLOUDINARY_NAME=\nNEXT_PUBLIC_UPLOAD_PRESET=\n\n# NEXT URL\nNEXT_PUBLIC_NEXT_URL=http://localhost:3000\n```\n\n## Setup Prisma\n\nAdd MySQL Database (I used Railway)\n\n```bash\nnpx prisma generate\nnpx prisma db push\n```\n\n## Available commands\n\n| Command                | Description                              |\n| ---------------------- | ---------------------------------------- |\n| `npm run dev`          | Starts a development instance of the app |\n| `npm run build`        | Builds the app for production            |\n| `npm run start`        | Starts the app in production mode        |\n| `npm run prettier`     | Check and format code using Prettier     |\n| `npm run prettier:fix` | Format code using Prettier (fix issues)  |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweiwei2694%2Fx-twitter-clone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweiwei2694%2Fx-twitter-clone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweiwei2694%2Fx-twitter-clone/lists"}