Here is the folder structure of this app.
zoom-clone/
|- actions/
|- stream.actions.ts
|- app/
|-- (auth)/
|--- sign-in/[[...sign-in]]/
|--- sign-up/[[...sign-up]]/
|-- (root)/
|--- (home)
|--- meeting
|--- layout.tsx
|-- apple-icon.png
|-- favicon.ico
|-- globals.css
|-- icon1.png
|-- icon2.png
|-- layout.tsx
|- components/
|-- modals/
|-- ui/
|-- call-list.tsx
|-- end-call-button.tsx
|-- home-card.tsx
|-- loader.tsx
|-- meeting-card.tsx
|-- meeting-room.tsx
|-- meeting-setup.tsx
|-- meeting-type-list.tsx
|-- mobile-nav.tsx
|-- navbar.tsx
|-- sidebar.tsx
|- config/
|-- index.ts
|- constants/
|-- index.ts
|- hooks/
|-- use-get-call-by-id.ts
|-- use-get-calls.ts
|- lib/
|-- utils.ts
|- public/
|-- icons/
|-- images/
|- scripts/
|-- prod.ts
|-- reset.ts
|-- seed.ts
|- store/
|-- use-exit-modal.ts
|-- use-hearts-modal.ts
|-- use-practice-modal.ts
|- types/
|-- canvas.ts
|- .env.example
|- .env.local
|- .eslintrc.js
|- .gitignore
|- .prettierrc.json
|- components.json
|- environment.d.ts
|- middleware.ts
|- next.config.mjs
|- package-lock.json
|- package.json
|- postcss.config.js
|- tailwind.config.ts
|- tsconfig.json
- Make sure Git and NodeJS is installed.
- Clone this repository to your local computer.
- Create
.env.local
file in root directory. - Contents of
.env.local
:
# .env.local
# disabled next.js telemetry
NEXT_TELEMETRY_DISABLED=1
# clerk auth keys
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
CLERK_SECRET_KEY=sk_test_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
# clerk auth redirect urls
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
# stream api keys
NEXT_PUBLIC_STREAM_API_KEY=xxxxxxxxxxxxxxxxxxxxxx
STREAM_SECRET_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
# app base url
NEXT_PUBLIC_BASE_URL=http://localhost:3000
- Source: Clerk Dashboard or Settings Page
- Procedure:
- Log in to your Clerk account.
- Navigate to the dashboard or settings page.
- Look for the section related to authentication keys.
- Copy the
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY
andCLERK_SECRET_KEY
provided in that section.
- Procedure:
- Replace
http://localhost:3000
with the URL of your deployed application.
- Replace
-
Create a Stream Account:
- If you don't have a Stream account, sign up at GetStream.io.
-
Create a New App:
- After logging in, navigate to the Stream dashboard.
- Click on "Create App" to set up a new application for Zoom-Clone.
- Provide a name for your app and select the appropriate region.
-
Navigate to the App Settings:
- In your Stream dashboard, select the app you created for Zoom-Clone.
- Go to the "Overview" or "Keys" section.
-
Copy the API Key:
- You will find the "API Key" listed in the app details. Copy this key.
-
Copy the Secret Key:
- In the same section, you will find the "Secret Key". Copy this key as well.
- Save the changes to the
.env.local
file.
-
Install Project Dependencies using
npm install --legacy-peer-deps
oryarn install --legacy-peer-deps
. -
Now app is fully configured π and you can start using this app using either one of
npm run dev
oryarn dev
.
NOTE: Please make sure to keep your API keys and configuration values secure and do not expose them publicly.
You might encounter some bugs while using this app. You are more than welcome to contribute. Just submit changes via pull request and I will review them before merging. Make sure you follow community guidelines.
Useful resources and dependencies that are used in Yoom.
- @clerk/nextjs: ^5.1.3
- @radix-ui/react-dialog: ^1.0.5
- @radix-ui/react-dropdown-menu: ^2.0.6
- @radix-ui/react-slot: ^1.0.2
- @radix-ui/react-toast: ^1.1.5
- @stream-io/node-sdk: ^0.2.3
- @stream-io/video-react-sdk: ^1.0.13
- class-variance-authority: ^0.7.0
- clsx: ^2.1.1
- lucide-react: ^0.379.0
- next: 14.2.3
- react: ^18
- react-datepicker: ^6.9.0
- react-dom: ^18
- tailwind-merge: ^2.3.0
- tailwindcss-animate: ^1.0.7
- @types/node: ^20
- @types/react: ^18
- @types/react-datepicker: ^6.2.0
- @types/react-dom: ^18
- eslint: ^8
- eslint-config-next: 14.2.3
- postcss: ^8
- tailwindcss: ^3.4.1
- typescript: ^5
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The simplest way to deploy your React.js app is to use the Netlify Platform - a powerful platform for modern web projects.
Explore the Netlify deployment documentation for step-by-step instructions on deploying your React.js app on Netlify.
Happy coding, and feel free to share your thoughts and improvements with the Netlify community!
You can also give this repository a star to show more people and they can use this repository.