{"id":19689995,"url":"https://github.com/ravindramohith/discord-clone","last_synced_at":"2026-04-01T19:17:56.456Z","repository":{"id":210975097,"uuid":"727866821","full_name":"ravindramohith/discord-clone","owner":"ravindramohith","description":"Discord Clone built with Next.js v13, Socket.io, ReactJS, TailwindCSS, Prisma, and MySQL, featuring real-time communication, custom channels, and responsive design","archived":false,"fork":false,"pushed_at":"2024-08-12T20:31:44.000Z","size":1018,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-28T00:42:40.974Z","etag":null,"topics":["aws-ec2","cicd","cicdpipeline","docker","fullstack-development","githubactions","mysql","nextjs13","prisma","reactjs","socket-io","tailwindcss","yaml"],"latest_commit_sha":null,"homepage":"","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/ravindramohith.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-12-05T18:32:08.000Z","updated_at":"2025-04-06T19:19:08.000Z","dependencies_parsed_at":"2024-08-12T23:10:23.225Z","dependency_job_id":null,"html_url":"https://github.com/ravindramohith/discord-clone","commit_stats":null,"previous_names":["ravindramohith/discord-clone"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ravindramohith/discord-clone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ravindramohith%2Fdiscord-clone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ravindramohith%2Fdiscord-clone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ravindramohith%2Fdiscord-clone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ravindramohith%2Fdiscord-clone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ravindramohith","download_url":"https://codeload.github.com/ravindramohith/discord-clone/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ravindramohith%2Fdiscord-clone/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31291117,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T13:12:26.723Z","status":"ssl_error","status_checked_at":"2026-04-01T13:12:25.102Z","response_time":53,"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":["aws-ec2","cicd","cicdpipeline","docker","fullstack-development","githubactions","mysql","nextjs13","prisma","reactjs","socket-io","tailwindcss","yaml"],"created_at":"2024-11-11T19:04:03.668Z","updated_at":"2026-04-01T19:17:56.435Z","avatar_url":"https://github.com/ravindramohith.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Fullstack Discord Clone - Real-Time Communication Platform ✨\n\n## Overview\n\nThis project is a fully functional clone of Discord, built using the latest web technologies. It offers real-time messaging, audio and video calls, and a highly responsive UI. The app leverages Next.js for server-side rendering, Socket.io for real-time communication, and Prisma for database management.\n\n---\n\n![img-1](./assets/discord-clone-1.png)\n\n## Features\n\n- **Real-Time Messaging**:\n  - Chat with others in real-time using Socket.io.\n  - Send attachments as messages using UploadThing.\n  - Edit and delete messages in real-time for all users.\n\n- **Channels \u0026 Conversations**:\n  - Create text, audio, and video call channels.\n  - One-on-one conversations between members.\n  - One-on-one video calls between members.\n\n- **Member Management**:\n  - Manage members with features like kicking, and changing roles between Guest and Moderator.\n  - Generate unique invite links with a full invite system.\n\n- **Infinite Loading**:\n  - Infinite loading of messages in batches of 10 using TanStack/Query.\n\n- **Server Management**:\n  - Create and customize servers with custom settings and member management.\n\n- **Responsive UI**:\n  - Fully responsive design using TailwindCSS and ShadcnUI.\n  - Supports both light and dark modes.\n\n- **Websocket Fallback**:\n  - Fallback to polling with alerts when WebSocket connection fails.\n\n- **Authentication**:\n  - Authentication and authorization managed by Clerk.\n\n- **ORM with Prisma**:\n  - Uses Prisma as the ORM for database management with MySQL hosted on PlanetScale.\n\n## Tech Stack\n\n### Frontend \u0026 Backend:\n- **Next.js v13**: A React framework for server-side rendering and generating static websites.\n- **Socket.io**: A library for real-time web applications.\n- **ReactJS**: A JavaScript library for building user interfaces.\n- **TailwindCSS**: A utility-first CSS framework for rapid UI development.\n\n### Database:\n- **MySQL**: A relational database hosted on PlanetScale.\n- **Prisma**: An ORM for Node.js and TypeScript for interacting with the database.\n\n### Other Tools:\n- **Prisma Studio**: A GUI for managing the MySQL database.\n- **Clerk**: Authentication and user management service.\n- **UploadThing**: Service for handling file uploads.\n\n## Getting Started\n\n### Prerequisites\n\n- **Node.js** (v14.x or higher)\n- **MySQL** database (via PlanetScale)\n- **Clerk** account for authentication\n- **UploadThing** account for managing file uploads\n\n### Installation\n\n1. **Clone the repository**:\n    ```bash\n    git clone https://github.com/ravindramohith/discord-clone.git\n    cd discord-clone\n    ```\n\n2. **Install dependencies**:\n    ```bash\n    npm install\n    ```\n\n3. **Set up environment variables**:\n    - Create a `.env` file in the root directory with the following variables:\n      ```env\n      NEXT_PUBLIC_CLERK_FRONTEND_API=your_clerk_frontend_api\n      CLERK_API_KEY=your_clerk_api_key\n      DATABASE_URL=your_planetscale_mysql_url\n      NEXT_PUBLIC_UPLOADTHING_API_KEY=your_uploadthing_api_key\n      NEXTAUTH_SECRET=your_nextauth_secret\n      ```\n\n4. **Run the development server**:\n    ```bash\n    npm run dev\n    ```\n\n5. **Access the application**:\n    - Open your browser and navigate to `http://localhost:3000`.\n\n## Project Structure\n\n### **App Directory (`app/`)**\n\n- **`globals.css`**: Global styles for the application.\n- **`layout.tsx`**: Main layout wrapping all pages.\n- **`(auth)/`**: Contains routes for sign-in and sign-up.\n\n### **Middleware (`middleware.ts`)**\n- Handles request processing and authentication.\n\n### **Types (`types.ts`)**\n- TypeScript types used across the project for strong typing.\n\n### **Components Directory (`components/`)**\n- Reusable UI components for building the user interface.\n\n## Key Features\n\n- **Real-Time Communication**: Chat, call, and share media in real-time with other users.\n- **Custom Channels**: Create and manage custom text, audio, and video channels.\n- **Member Management**: Control access and permissions for each member in your server.\n- **Authentication**: Secure user authentication with Clerk.\n- **ORM with Prisma**: Manage database operations seamlessly with Prisma and PlanetScale.\n- **Responsive Design**: Enjoy a seamless experience across devices with a responsive UI.\n\n## Deployment\n\n### Deployment on AWS EC2\n\nThis project is deployed on an **AWS** EC2 instance using **GitHub Actions** through **CI/CD pipeline**. The deployment pipeline is triggered on every push to the `production` branch. The workflow includes building a Docker image, pushing it to DockerHub, and then pulling and running it on the EC2 instance.\n\nYou can view the details of the workflow and its execution [here](https://github.com/ravindramohith/discord-clone/actions).\n\n\n## Contributing\n\nContributions are welcome! Please fork the repository and submit a pull request.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fravindramohith%2Fdiscord-clone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fravindramohith%2Fdiscord-clone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fravindramohith%2Fdiscord-clone/lists"}