Backend setup

Connect CodeTech.cloud to Supabase

This is the setup control room for auth, database persistence, row-level security, and project storage.

Connection status

Checks only confirm configuration, not secret values.

missing

Public URL

missing

Anon key

missing

Browser client

ready

Service role key

missing

Auth ready

missing

Server admin ready

missing

Current user

No signed-in user yet. After keys and schema are ready, test with signup and login.

Setup checklist

1

Create Supabase project

Create the production project under the CodeTech/customer account.

2

Run database schema

Open SQL Editor and run supabase/schema.sql from this source package.

3

Add environment keys

Set NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_ANON_KEY.

4

Enable auth provider

Enable email/password first; Google login can be added later.

5

Test signup/login

Create a customer account and confirm the profile row is created.

6

Create project test

Generate a builder project while signed in and confirm it persists.

Environment variables

NEXT_PUBLIC_SUPABASE_URL=

Browser-safe project URL

NEXT_PUBLIC_SUPABASE_ANON_KEY=

Browser-safe anon key for auth and RLS-protected data

SUPABASE_SERVICE_ROLE_KEY=

Server-only key for future admin jobs and automations

Database install

Run the complete schema from supabase/schema.sql. It creates profiles, projects, blueprints, setup sessions, quality checks, exports, GitHub export handoffs, and row-level security policies.

Minimum launch test

Signup, create project, export source, prepare GitHub handoff.