Host your own server
Set up a Supabase project for your group. One member does this once, on the free plan.
One member of each group does this once. Supabase’s free plan is sufficient.
1. Create a Supabase project
Section titled “1. Create a Supabase project”Create a project at supabase.com.
2. Create the tables
Section titled “2. Create the tables”With the Supabase CLI, from a clone of this repository:
supabase link --project-ref <your-project-ref>supabase db pushRun supabase db push again from an updated clone whenever you update squad-chat, so that the server includes the changes the new version requires.
3. Lock down Realtime
Section titled “3. Lock down Realtime”In the dashboard, under Realtime → Settings, turn off Allow public access to channels.
4. Choose how people sign in
Section titled “4. Choose how people sign in”Either method, or both, can be enabled.
With a name
Section titled “With a name”The simplest option, requiring no email service. Under Authentication → Sign In / Providers, turn on Allow anonymous sign-ins.
Anyone can create an account this way, but rooms still require their passcode, so outsiders cannot see any content. Supabase limits anonymous sign-ups to 30 per hour per IP address.
With an email code
Section titled “With an email code”Supabase sends the codes, but its built-in email only reaches your project’s own team members (2 per hour), so an email service must be connected over SMTP. Email sign-in describes the setup with Resend.
5. Share the server
Section titled “5. Share the server”Provide the other members with the project URL and the publishable key, found under Project Settings → API Keys. Every member, including the host, connects with these values.