1. Supabase Project Linking:
- Setup a new project in the supabase dashboard
- Copy the project url and apiKey
- Make sure to add the keys to the
.env
file
2. Supabase Authentication Setup:
Since we are using Supabase Authentication for user management, you may choose one of below settings in supabase auth
- (Recommended for production apps) Setup your smtp provider if you want your users to confirm email before signing in first time.
- If you do not want to setup custom SMTP then you can disable the option to confirm email before signing in first time.
3. Supabase Database Pre-Setup:
In order to store user configs and cross reference of user documents we use Postgres powered by supabase.
- In order to create table for this table we need to setup a postgres function which we call through rpc in next steps.
4. Supabase Setup Script:
In order to execute the creation of storage bucket and database table above, we should execute below command
.png)