# Kitchen Table beta setup 1. Create a fresh project at https://supabase.com/dashboard. Use a separate project from any personal kitchen or league app. 2. Open its SQL Editor and run the migration at /supabase.sql once. 3. Enable email/password signup and email confirmations. Set the authentication Site URL to the beta origin. Allow the beta origin as a confirmation redirect, including its invite query string. 4. Configure a Supabase-supported SMTP provider before inviting testers. Set the minimum password length to 12 in Supabase Auth. 5. In the beta site's server configuration, set SUPABASE_URL to the project's HTTPS URL and SUPABASE_PUBLISHABLE_KEY to the project's sb_publishable_ key. Never use the service-role or secret key. Redeploy. 6. Keep the beta invite-only at the hosting layer until the following checks pass with signed-in testers. Then make that separate site public. ## Verify isolation before launch - Create two verified accounts in separate households and add a grocery to each. - Under the second account, confirm GET returns no rows for the first household and that inserting into that household fails. Attempt to update and delete the first household's item and verify the item is untouched. - Confirm signed-out database requests cannot read or mutate household data. - Generate an invitation and verify an account with a different verified email cannot accept it. Confirm the intended recipient can accept it once. - Open the same household on two devices and check that added, checked, and removed items sync. This beta covers accounts, invitations, and grocery sync. Calendar, recipes, pantry, and store distribution are future milestones. ## Household email invites and Google Calendar Run integrations.sql in the beta Supabase SQL editor. Keep the beta private during testing. - Set INVITE_FROM to Kitchen Table and RESEND_API_KEY to a sending-only key restricted to that verified domain. Configure it as a runtime secret. The existing SMTP integration remains responsible for signup confirmations and resets. - In Google Cloud, enable the Google Calendar API and create a Web application OAuth client. Set the exact authorized redirect URI to the beta origin followed by a trailing slash. Add the initial household members as test users and request only calendar.calendarlist.readonly and calendar.events.readonly. - Set GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET from that client, and generate a random 32-byte base64 CALENDAR_ENCRYPTION_KEY. Set the client secret and encryption key as runtime secrets. Redeploy. - Verify two different members can independently choose and share their calendars. Verify a signed-in user from a different household cannot retrieve those events or alter a connection. Test a matching-email invite with existing and new beta users. Keep household calendar settings separate from the original dashboard.