https://github.com/anav5704/discord-clone
Fullstack clone of discord with audio and video calls
https://github.com/anav5704/discord-clone
nextjs postgresql real-time
Last synced: about 2 months ago
JSON representation
Fullstack clone of discord with audio and video calls
- Host: GitHub
- URL: https://github.com/anav5704/discord-clone
- Owner: anav5704
- Created: 2023-11-19T23:00:35.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-24T06:07:23.000Z (over 2 years ago)
- Last Synced: 2025-10-07T14:41:09.629Z (9 months ago)
- Topics: nextjs, postgresql, real-time
- Language: TypeScript
- Homepage:
- Size: 3.79 MB
- Stars: 1
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Discord Clone 🎮

This is a simple, fullstack Discord clone that has all the features of Discord other than Nitro. This includes real-time text, audio and video calls, file uploads, admin and moderator roles, and the creation and management of servers and channels. Real-time is made possible with socket IO and has polling as the fallback.
## Technologies Used
- Next JS 13
- Shadcn UI
- TailwindCSS
- Clerk
- Prisma
- Serverless PostgreSQL
- Socket IO
- LiveKit
- Zustand
- Zod
## Getting Started
First fork and clone the repo. Then, run ```npm install``` to download all the dependencies. Now, set up your environmental variables. Make a ```.env``` file in the root of your project with the following variables:
```
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY
CLERK_SECRET_KEY
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/
DATABASE_URLDIRECT_URL
UPLOADTHING_SECRET
UPLOADTHING_APP_ID
LIVEKIT_API_KEY
LIVEKIT_API_SECRET
NEXT_PUBLIC_LIVEKIT_URL
```
Once that is done, run ```npm run dev``` to view it on localhost.
## Learning Resources
- [Fullstack Discord clone with Next 13](https://www.youtube.com/watch?v=ZbX4Ok9YX94)
- [Trillion messages on Discord](https://www.youtube.com/watch?v=U2xHdvvDQyI)
- [Livekit docs](https://livekit.io/)