/fresh-saas-toolkit

need test for strip payment without auth

Primary LanguageTypeScript

fresh project

Usage

Start the project:

deno task start

This will watch the project directory and restart as necessary.

Setup Environmental Variables

Copy Supabase and Stripe credentials to .env same as .example.env.

Setup Supabase

  1. Create the todos table:
    1. Go to Databases > Tables
    2. Click New Table
    3. Enter the name as todos and check Enable Row Level Security (RLS)
    4. Configure the following columns:
Name Type Default value Primary
id int8 -- true
name text (empty) false
user_id uuid uid() false
  1. Setup authentication:
    1. Go to Authentication > Providers > Email
    2. Disable Confirm email
    3. Go to Authentication > Policies
    4. Click New Policy and then Create a policy from scratch
    5. Enter the policy name as Enable all operations for users based on user_id
    6. Enter the USING expression as (uid() = user_id)

Setup Stripe (taken from Vercel's Subscription Starter)

  1. Set your custom branding in the settings
  2. Configure the Customer Portal settings
  3. Toggle on "Allow customers to update their payment methods"
  4. Toggle on "Allow customers to update subscriptions"
  5. Toggle on "Allow customers to cancel subscriptions"
  6. Add the products and prices that you want
  7. Set up the required business information and links