sanidhyy/slack-clone
Acerca de
Collaborate with your team using real-time messaging, rich text editing, and emoji support in this Slack-like app built with Next.js, Convex, and Shadcn UI.
Productividad y automatizaciónCrecimiento de estrellas medido
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +2
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
OriginalCollaborate with your team in this Slack clone built using Next.js

:notebook_with_decorative_cover: Table of Contents
:bangbang: Folder Structure
Here is the folder structure of this app.
slack-clone/
|- convex/
|-- _generated/
|-- auth.config.ts
|-- auth.ts
|-- channels.ts
|-- conversations.ts
|-- http.ts
|-- members.ts
|-- messages.ts
|-- reactions.ts
|-- schema.ts
|-- tsconfig.json
|-- upload.ts
|-- users.ts
|-- workspaces.ts
|- public/
|- src/
|-- app/
|--- auth/
|--- join/
|--- workspace/
|--- apple-icon.png
|--- favicon.ico
|--- globals.css
|--- icon1.png
|--- icon2.png
|--- layout.tsx
|--- page.tsx
|-- components/
|--- ui/
|--- channel-hero.tsx
|--- conversation-hero.tsx
|--- convex-client-provider.tsx
|--- editor.tsx
|--- emoji-popover.tsx
|--- hint.tsx
|--- jotai-provider.tsx
|--- message-list.tsx
|--- message.tsx
|--- modal-provider.tsx
|--- reactions.tsx
|--- renderer.tsx
|--- thread-bar.tsx
|--- thumbnail.tsx
|--- toolbar.tsx
|-- config/
|--- index.ts
|-- features/
|--- auth/
|--- channels/
|--- conversations/
|--- members/
|--- messages/
|--- reactions/
|--- upload/
|--- workspaces/
|-- hooks/
|--- use-channel-id.ts
|--- use-confirm.tsx
|--- use-member-id.ts
|--- use-panel.ts
|--- use-workspace-id.ts
|-- lib/
|--- utils.ts
|-- proxy.ts
|- .env.example
|- .env/.env.local
|- .eslintrc.json
|- .gitignore
|- .prettierignore
|- .prettierrc.json
|- components.json
|- convex.json
|- environment.d.ts
|- next.config.mjs
|- package.json
|- pnpm-lock.yaml
|- pnpm-workspace.yaml
|- postcss.config.mjs
|- tailwind.config.ts
|- tsconfig.json
|- vercel.ts
:toolbox: Getting Started
- Make sure Git and NodeJS is installed.
- Clone this repository to your local computer.
- Create
.env.localfile in root directory. - Contents of
.env.local:
# .env.local
# disabled next.js telemetry
NEXT_TELEMETRY_DISABLED=1
# deployment used by `npx convex dev` or `pnpm dlx convex dev`
CONVEX_DEPLOYMENT=dev:<deployment-name> # team: <team-name>, project: <project-name>
# convex public url and site url
NEXT_PUBLIC_CONVEX_URL="https://<deployment-name>.convex.cloud"
NEXT_PUBLIC_CONVEX_SITE_URL="https://<deployment-name>.convex.site"
- Convex Deployment
- Visit the Convex website: https://convex.dev
- Log in to your Convex account or sign up if you don't have one.
- Once logged in, navigate to the "Deployments" section.
- Create a new deployment or select an existing one.
- Replace
<deployment-name>,<team-name>, and<project-name>in the.env.localfile with your Convex deployment details. - In the Convex dashboard, find the public URL associated with your deployment.
- Replace
<your-convex-url>in the.env.localfile with your Convex public URL.
- Initialise Convex Auth Development Keys
- Run the initialization command:
npx @convex-dev/authorpnpm dlx @convex-dev/authto setup your project for authenticating via the library. - Make sure your SITE_URL environment variable is set correctly. This is the URL where your app is hosted, e.g.,
http://localhost:3000for development. - Your project authentication is setup for logging in with credentials.
- Setting Up Google OAuth
Step 1: Create a Google Cloud Project
- Go to the Google Cloud Console.
- Create a new project (if you don’t have one) by clicking on Select a project > New Project, and give it a name.
- Enable the Google OAuth 2.0 API by navigating to APIs & Services > Library and searching for Google OAuth 2.0.
Step 2: Create OAuth Credentials
In the APIs & Services > Credentials section, click Create Credentials and choose OAuth 2.0 Client IDs.
Select Web Application as the application type.
Set the Authorized Redirect URI to your Convex callback URL. The origin (domain) of the callback URL is your Convex backend's HTTP Actions URL. You can find it in your Convex dashboard and it is similar to your
CONVEX_URL, but with.siteinstead of.cloud.After setting the redirect URI, click Create. You’ll be provided with a Client ID and Client Secret.
Step 3: Set Google OAuth Environment Variables in Convex To configure Google OAuth in your Convex backend, run the following commands with your actual values:
npx convex env set AUTH_GOOGLE_CLIENT_ID your-google-client-id
npx convex env set AUTH_GOOGLE_CLIENT_SECRET your-google-client-secret
OR
pnpm dlx convex env set AUTH_GOOGLE_CLIENT_ID your-google-client-id
pnpm dlx convex env set AUTH_GOOGLE_CLIENT_SECRET your-google-client-secret
- Setting Up GitHub OAuth
Step 1: Create a GitHub OAuth Application
Go to GitHub Developer Settings.
Under OAuth Apps, click New OAuth App.
Fill in the following:
- Application Name: Name your app (e.g., "Slack Clone").
- Homepage URL: Your app’s homepage URL, like
http://localhost:3000for local development. - Authorization Callback URL: Set this to your Convex callback URL (Similar to Google OAuth Authorized Redirect URI).
After registering the app, you’ll get a Client ID and Client Secret.
Step 2: Set GitHub OAuth Environment Variables in Convex
- To configure GitHub OAuth in your Convex backend, run the following commands with your actual values:
npx convex env set AUTH_GITHUB_ID your-github-client-id
npx convex env set AUTH_GITHUB_SECRET your-github-client-secret
OR
pnpm dlx convex env set AUTH_GITHUB_ID your-github-client-id
pnpm dlx convex env set AUTH_GITHUB_SECRET your-github-client-secret
Install Project Dependencies using
npm install --legacy-peer-depsoryarn install --legacy-peer-depsorpnpm install --legacy-peer-deps.Now app is fully configured 👍 and you can start using this app using either one of
npm run devoryarn devorpnpm dev.
NOTE: Please make sure to keep your API keys and configuration values secure and do not expose them publicly.
:raising_hand: Need Help?
If you run into issues during installation or setup:
- GitHub Discussions — Open a Q&A discussion for setup and troubleshooting help.
- Email — [email protected]
- Discord —
@sanidhyy
:camera: Screenshots




:gear: Tech Stack
:wrench: Stats
:raised_hands: Contribute
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.
:gem: Acknowledgements
Useful resources and dependencies that are used in Slack Clone.
- Thanks to CodeWithAntonio: https://codewithantonio.com/
- @auth/core: ^0.41.3
- @babel/eslint-parser: ^7.29.9
- @convex-dev/auth: ^0.0.98
- @radix-ui/react-alert-dialog: ^1.2.1
- @radix-ui/react-avatar: ^1.3.1
- @radix-ui/react-dialog: ^1.3.1
- @radix-ui/react-dropdown-menu: ^2.2.1
- @radix-ui/react-popover: ^1.3.1
- @radix-ui/react-separator: ^1.2.0
- @radix-ui/react-slot: ^1.5.0
- @radix-ui/react-tooltip: ^1.4.1
- @radix-ui/react-visually-hidden: ^1.2.13
- @trivago/prettier-plugin-sort-imports: ^6.0.2
- @types/node: ^26.6.6
- @types/react: ^19
- @types/react-dom: ^19
- @vercel/config: ^0.14.1
- class-variance-authority: ^0.7.1
- clsx: ^2.1.1
- cmdk: 1.1.1
- convex: ^1.49.0
- date-fns: ^4.1.0
- emoji-picker-react: ^5.1.4
- eslint: ^8
- eslint-config-next: 15.5.29
- eslint-config-prettier: ^10.1.8
- eslint-plugin-prettier: ^5.5.7
- jotai: ^3.0.2
- lucide-react: ^1.46.0
- mprocs: ^0.9.6
- next: 16.4.6
- next-themes: ^0.4.6
- nuqs: ^2.10.3
- postcss: ^8.5.32
- prettier: ^3.10.1
- prettier-plugin-tailwindcss: ^0.8.1
- quill: ^2.0.3
- react: ^19.3.1
- react-dom: ^19.3.1
- react-icons: ^5.5.0
- react-resizable-panels: ^4.21.0
- react-use: ^17.6.0
- react-verification-input: ^4.2.2
- sonner: ^2.0.8
- tailwind-merge: ^3.7.0
- tailwindcss: ^3.4.19
- tailwindcss-animate: ^1.0.7
- typescript: ^5.9.3
:coffee: Buy Me a Coffee
:rocket: Follow Me
:books: Learn More
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!
:page_with_curl: Deploy on Vercel
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out Next.js deployment documentation for more details.
:star: Give A Star
You can also give this repository a star to show more people and they can use this repository.
:star2: Star History
Explorar proyectos relacionados
Cargando…