https://github.com/faisal004/twitch-clone
Live streaming platform .
https://github.com/faisal004/twitch-clone
livekit nextjs13 postgresql prisma reactjs shadcn-ui tailwindcss typescript zod zustand
Last synced: 6 months ago
JSON representation
Live streaming platform .
- Host: GitHub
- URL: https://github.com/faisal004/twitch-clone
- Owner: faisal004
- Created: 2023-12-18T06:50:24.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-02T11:10:21.000Z (almost 2 years ago)
- Last Synced: 2024-04-28T04:25:30.390Z (over 1 year ago)
- Topics: livekit, nextjs13, postgresql, prisma, reactjs, shadcn-ui, tailwindcss, typescript, zod, zustand
- Language: TypeScript
- Homepage: https://twitch-clone-tau-peach.vercel.app
- Size: 264 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
https://github.com/faisal004/twitch-clone/assets/88244542/0b38b3f6-7482-43ac-9eb4-e40858838449
# LiveHUB
Live streaming platform like twitch.
## Key Features
- User can stream by connecting their OBS to our app
- Live viewers count
- Real-time chat is implemented using LiveKit
- Follower and Following also available
- Blocking and Unblocking system also available
- Slow chat mode
- Followers only chat
- Enable or Disable chat
- Search functionality also available
- Updating user using Clerk WEBHOOKS## Installation
Clone the project on your machine
```bash
git clonehttps://github.com/faisal004/twitch-clone.git
```
Open Project
```bash
cd twitch-clone
```
Install dependencies
```bash
yarn install
```Set up .env file
```bash
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=/
CLERK_WEBHOOK_SECRET=DATABASE_URL="Your DB URL"
//Go to livekit
LIVEKIT_API_URL=
LIVEKIT_API_KEY=
LIVEKIT_API_SECRET=
NEXT_PUBLIC_LIVEKIT_WS_URL=// Go to Uploading thing and get credentials
UPLOADTHING_SECRET=
UPLOADTHING_APP_ID=
```## Setup Database
You can go to [neon.tech](https://neon.tech) to get a free postgres instance.Now run
```bash
npx prisma generate
npx prisma db push```
Start app
```bash
yarn dev
```## Future Improvements
- Migrate auth from clerk to NextAuth
## Feedback
Feel free to provide Feedback at
faisalhusain1320@gmail.com