Supabase Setup
This guide walks you through creating a Supabase project and connecting it to your Nativeline app.Prerequisites
- Nativeline installed with a project
- Email address for Supabase account
Step 1: Create Supabase Account
Go to Supabase
Visit supabase.com and click Start your project.
Step 2: Create a Project
Enter project details
- Name: Your app name (e.g., “My Todo App”)
- Database Password: Generate a strong password (save this!)
- Region: Choose closest to your users
Step 3: Get Your Credentials
Once your project is ready:The anon key is safe to use in your app. It respects Row Level Security policies. Never use the
service_role key in client apps.Step 4: Connect to Nativeline
In your Nativeline chat:- Save your credentials securely
- Set up the Supabase client
- Be ready to use Supabase features
Step 5: Verify Connection
Test that everything works:Project Structure After Setup
Nativeline creates Supabase-related files:Common Setup Issues
Invalid API key
Invalid API key
- Make sure you’re using the anon key, not service_role
- Check for extra spaces when copying
- Verify the key matches your project URL
Project not found
Project not found
- Double-check the project URL
- Ensure the project finished initializing
- URL should be
https://xxxxx.supabase.co(not dashboard URL)
Connection timeout
Connection timeout
- Check your internet connection
- Project might still be initializing (wait 2-3 minutes)
- Try refreshing Supabase dashboard
CORS errors
CORS errors
Supabase allows requests from anywhere by default. If you see CORS errors:
- Verify you’re using the correct URL
- Check Supabase dashboard for any restrictions
Security Best Practices
Use Row Level Security
Always enable RLS on your tables:- In Supabase dashboard → Table Editor
- Click on your table
- Enable “RLS” toggle
- Add policies
Secure Credentials
Nativeline stores your credentials in:- macOS Keychain (encrypted)
- Not in your source code