Skip to content
项目

GetStream/fullstack-nextjs-whatsapp-clone

在 GitHub 查看

关于

A sample codebase showcasing Stream Chat and Video to resembling WhatsApp, using NextJS, TailwindCSS and Vercel.

设计与媒体

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Building WhatsApp Clone0-1200x630px

Fullstack WhatsApp clone using Next.js, Vercel and Supabase

This project contains all the code to run the FullStack WhatsApp clone using Next.js and Supebase. The codebase was developed for an article series published on Stream's blog:

The purpose of this repository is to demonstrate below:

  • Implementing UI elements by customizing existing Stream Chat and Stream Video components.
  • How to implement authorization using Supabase.
  • How to integrate Stream Video in a Stream Chat implementation.

Built with stream-chat 10, stream-chat-react 15, @stream-io/video-react-sdk 1, @stream-io/node-sdk (server-side user tokens) and Next.js 15.

To run this code, you need to have an active Stream and Supabase account.

How to use

  1. Create a new Supabase project
  2. Sign up for a Stream trial account
  3. Rename .env.local.example to .env.local
  4. Update the values for NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_ANON_KEY from your Supabase project's API settings
  5. Update the values for NEXT_PUBLIC_REACT_APP_STREAM_KEY and REACT_APP_STREAM_SECRET from your Stream project's dashboard
  6. Run npm install, then npm run dev to start the local development server

The app doesn't create channels for you: it lists the messaging channels the signed-in user is a member of. Create one between two signed-up users (for example from the Stream dashboard's Chat Explorer), then click it in the list to open it.

Deploy your own instance

Deploy with Vercel

Make sure you have the Supabase and Stream credentials available when you want to deploy to Vercel. The deployment will ask for these environment values:

  • NEXT_PUBLIC_SUPABASE_URL
  • NEXT_PUBLIC_SUPABASE_ANON_KEY
  • NEXT_PUBLIC_REACT_APP_STREAM_KEY
  • REACT_APP_STREAM_SECRET

https://github.com/GetStream/fullstack-nextjs-whatsapp-clone/assets/39677/bf4f9bc8-f3aa-4c01-9d61-0ab829e55fcb

🛥 Stream Chat SDK

Fullstack WhatsApp clone using Next.js and Vercel is built with Stream Chat SDK for React to implement messaging systems. And Stream Video SDK for React to implement video calling. If you’re interested in adding powerful In-App Messaging to your app, check out the React Chat Messaging Tutorial! And for video, check out the React Video Tutorials!

Related Information

🤝 Contribution

Anyone can contribute and improve this project following the Contributing Guideline.

Find this repository useful? 💙

Support it by joining stargazers for this repository. :star:
Also, follow maintainers on GitHub for our next creations! 🤩

License

Copyright 2022 Stream.IO, Inc. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

探索相关项目

加载中…