Start the project:
deno task start
This will watch the project directory and restart as necessary.
Copy Supabase and Stripe credentials to .env
same as .example.env
.
- Create the todos table:
- Go to
Databases
>Tables
- Click
New Table
- Enter the name as
todos
and checkEnable Row Level Security (RLS)
- Configure the following columns:
- Go to
Name | Type | Default value | Primary |
---|---|---|---|
id |
int8 |
-- | true |
name |
text |
(empty) | false |
user_id |
uuid |
uid() |
false |
- Setup authentication:
- Go to
Authentication
>Providers
>Email
- Disable
Confirm email
- Go to
Authentication
>Policies
- Click
New Policy
and thenCreate a policy from scratch
- Enter the policy name as
Enable all operations for users based on user_id
- Enter the
USING expression
as(uid() = user_id)
- Go to
- Set your custom branding in the settings
- Configure the Customer Portal settings
- Toggle on "Allow customers to update their payment methods"
- Toggle on "Allow customers to update subscriptions"
- Toggle on "Allow customers to cancel subscriptions"
- Add the products and prices that you want
- Set up the required business information and links