Setup
Cloud
- The Easiest way to get access to Supabase is to setup a free account on Supabase. Supabase also has a paid plan starting a 25$ per month. For our workshop we will use the free plan.
- Once you have signed up, you will be able to access your account from Supabase.
- Create a new project. Select a password for the postgres database. You can use this database ourside of Supabase. So choose something secure.
- For pricing plan select the free tier.
- This will take a few minutes to complete. But after that you will be able to access the URL and secret key. Note the secret key. You will need this to connect the application.
Supabase CLI
- Download the Supabase CLI
- Install and Setup Docker
- Run the following command to setup Supabase for local developmentThis creates a supabase folder in your current directory.
supabase init - After that you can runThis will start a local instance of Supabase using docker. This may take a while.
supabase start - After some time you will see an output similar to this.
Started local development setup.
API URL: http://localhost:54321
DB URL: postgresql://postgres:postgres@localhost:54322/postgres
Studio URL: http://localhost:54323
Inbucket URL: http://localhost:54324
anon key: <ANON_KEY>
service_role key: <SERVICE_ROLE_KEY>
Take note of Studio URL, API URL and anon key. You can access the dashboard using the Studio URL. Our application will target the API URL and use the anon key for access.
Docker
You can self host Supabase using Docker. Properly setting up a self hosted instance is outside the scope of this workshop. You can find more information on Docker self hosting in the official documentation.