{"id":27390438,"url":"https://github.com/devdignesh/tweetsphere","last_synced_at":"2025-04-13T19:52:58.338Z","repository":{"id":229975156,"uuid":"778127972","full_name":"devdignesh/tweetsphere","owner":"devdignesh","description":"Developed a full stack application imitating the popular social media app - X (formerly Twitter) using a Next.js14 with TypeScript, Sass, TailwindCSS, Framer-motion, Tanstack Query, MongoDB, Supabase, Prisma, NextAuth and Zustand.","archived":false,"fork":false,"pushed_at":"2025-04-08T10:20:51.000Z","size":1116,"stargazers_count":7,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T11:26:57.699Z","etag":null,"topics":["docker-images","framer-motion","mongodb","nextjs14","nextjs14-typescript","sass","shadcn-ui","tanstack-query","tanstack-react-query","twitter-clone","typescript","zustand"],"latest_commit_sha":null,"homepage":"https://twitter-clone-two-puce.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/devdignesh.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-03-27T06:05:28.000Z","updated_at":"2025-04-08T10:20:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"635c0cfb-7b26-4673-a6f4-2ff3adf6d1c1","html_url":"https://github.com/devdignesh/tweetsphere","commit_stats":null,"previous_names":["devdignesh/twitter-clone","devdignesh/tweetsphere"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devdignesh%2Ftweetsphere","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devdignesh%2Ftweetsphere/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devdignesh%2Ftweetsphere/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devdignesh%2Ftweetsphere/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devdignesh","download_url":"https://codeload.github.com/devdignesh/tweetsphere/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248773946,"owners_count":21159524,"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":["docker-images","framer-motion","mongodb","nextjs14","nextjs14-typescript","sass","shadcn-ui","tanstack-query","tanstack-react-query","twitter-clone","typescript","zustand"],"created_at":"2025-04-13T19:52:57.830Z","updated_at":"2025-04-13T19:52:58.330Z","avatar_url":"https://github.com/devdignesh.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003ch1 align=\"center\"\u003eTweetSphere\u003c/h3\u003e\n\u003cp align=\"center\"\u003e\nDeveloped a full stack application imitating the popular social media app - X (formerly Twitter) using a \u003cb\u003eNext.js 14\u003c/b\u003e with \u003cb\u003eTypeScript\u003c/b\u003e, \u003cb\u003eSass\u003c/b\u003e, \u003cb\u003eTailwindCSS\u003c/b\u003e, \u003cb\u003eFramer-motion\u003c/b\u003e, \u003cb\u003eTanstack Query\u003c/b\u003e, \u003cb\u003eMongoDB\u003c/b\u003e, \u003cb\u003eSupabase\u003c/b\u003e, \u003cb\u003ePrisma\u003c/b\u003e, \u003cb\u003eNextAuth\u003c/b\u003e and \u003cb\u003eZustand.\u003c/b\u003e It showcases advanced frontend and backend capabilities.\n\u003c/p\u003e\n\n\u003cimg width=\"1527\" alt=\"twitter-clone-preview\" src=\"https://tsedxkflgndtkvrmgbug.supabase.co/storage/v1/object/public/images/project_preview.png?t=2024-07-23T09%3A05%3A46.142Z\"\u003e\n\n\n## 📽 Demo video link \nhttps://x.com/imDignesh/status/1784166713694773756\n\n## ✨ Features \n\n- Google / Github / Email (NextAuth) Authentication \n- Edit profile with profile / banner images and other details\n- Create tweet with upto 4 images and support emojis\n- Follow / Unfollow user functionality\n- User can Likes / Comments / Replies / Bookmark tweet\n- User can see following list of other users\n- User can Delete / Pin own post \n- User can see other user's following / followers list \n- Search any tweet and user\n- Discover trending hashtags\n- Fully responsive\n- Change theme using shortcut `Alt + T`\n\n## Built with\n\n- [Next.js](https://nextjs.org/)\n- [TypeScript](https://www.typescriptlang.org/)\n- [Tailwind CSS](https://tailwindcss.com/)\n- [Sass](https://sass-lang.com/)\n- [Mongodb](https://www.mongodb.com/atlas/database)\n- [Prisma](https://www.prisma.io/)\n- [Supabase](https://supabase.com/docs)\n- [Zustand](https://zustand.surge.sh/)\n- [TanStack Query](https://tanstack.com/query/latest)\n- [NextAuth.js](https://next-auth.js.org/)\n- [Upstash Redis](https://upstash.com/)\n- [zod](https://github.com/colinhacks/zod)\n- [SWR](https://swr.vercel.app/)\n\n\n\n## 🛠️ Installation \n\n```bash\ngit clone https://github.com/devdignesh/tweetsphere.git\ncd tweetsphere\nnpm i\nnpm run dev\n```\n\n## Environment Variables\n\nBefore running the development server, make sure to create `.env` file in the root directory of the project and add the required environment variables. You can use the example provided in the repository as a starting point.\n\n```bash\ncp .env.example .env\n```\n\n## Prisma Setup (MongoDB)\n\n#### 1. Install Dependencies\n\n```bash\nnpm install\n```\n- This will automatically install \u003cb\u003ePrisma\u003c/b\u003e and all the necessary dependencies\n#### 2. Generate Prisma Client\n\n```bash\nnpx prisma generate\n```\n#### 3. MongoDB Configuration\n\n- The project uses MongoDB, and the connection is defined in the `.env` file. Make sure your `.env` includes the correct MongoDB connection string\n``` bash\nDATABASE_URL=\"mongodb+srv://username:password@xxx.xxx.mongodb.net/tweetsphere\"\n```\n\n#### 4. Run Prisma Commands\n\n```bash\nnpx prisma db push\n```\n\n#### 5. Done!\n\n## Supabase Setup:\n#### 1. Create a Supabase Account\n\n- Visit [Supabase](https://supabase.com/), sign up, and create a new project.\n#### 2. Get API Keys\n\n- After creating your project, go to the `API section` or `connect`.\n- Find `Project URL` and `API Key/anon key` for the following environment variables:\n ```bash\nNEXT_PUBLIC_SUPABASE_URL=\"xxx\"\nNEXT_PUBLIC_SUPABASE_ANON_KEY=\"xxx\"\n```\n- Copy these keys and add them to your .env file.\n\n#### 3. Create Public Storage Buckets\n\n- Navigate to Storage in the Supabase dashboard.\n- Create three public buckets: `images`, `banners`, and `avatars`.\n- Set their public access policies so that users can upload and fetch files. Refer to this [detailed guide](https://blog.stackademic.com/upload-file-using-next-js-and-supabase-ad0af2360677) if you need help with configuring storage policies.\n\n#### 4. Set Permissions for Buckets\n\n- In each bucket, set the policy under `Configuration` to make sure the files can be publicly read.\n\n\n#### 5. That's it!\n\nOnce done, your Supabase setup is complete and your application will now be able to store and retrieve images.\n\n## Docker\nThis project includes Docker support for easier development and deployment.\n\n### Prerequisites\n\n- Docker installed on your machine.\n\n### Usage\n1. Clone the repository:\n```bash\ngit clone https://github.com/devdignesh/tweetsphere.git\ncd twitter-clone\n```\n\n2. Pull the latest Docker image:\n```bash\ndocker pull devdignesh/twitter_clone_nextjs:v1.1.0\n```\n\n3. Run the Docker container:\n```bash\ndocker run -d -p 8000:3000 devdignesh/twitter_clone_nextjs:v1.1.0\n```\n4. Access the application in your browser\n```bash\n\nhttp://localhost:8000\n\n```\n\n## Contributing\nWelcome to contribute to our repository! We value your input and appreciate any contributions you make\n\n\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevdignesh%2Ftweetsphere","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevdignesh%2Ftweetsphere","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevdignesh%2Ftweetsphere/lists"}