A simple proof of concept app demonstrating:
SUPABASE_URL
: Your Supabase project URLSUPABASE_ANON_KEY
: Your Supabase anon keybackend/
- Hono API serverfrontend/
- React frontendshared/
- Shared types and utilitiesThe app uses a simple profiles
table that extends Supabase's built-in auth.users:
-- Create profiles table create table profiles ( id uuid references auth.users on delete cascade, updated_at timestamp with time zone, username text unique, full_name text, avatar_url text, primary key (id) ); -- Set up Row Level Security (RLS) alter table profiles enable row level security; -- Create policy for users to see their own profile create policy "Users can view own profile" on profiles for select using ( auth.uid() = id ); -- Create policy for users to update their own profile create policy "Users can update own profile" on profiles for update using ( auth.uid() = id );