Menu

Prerequisites

Before you start

Available in: pl
Last updated October 17, 2023Originally published August 11, 2023

Git remote repository

Setup git CLI. Confirm with git --version. Then:

  1. Initialize your project with git init.
  2. Push your project to a remote repository like GitHub or GitLab.

Stripe

Setup stripe CLI. Confirm with stripe --version. Then:

  1. Create your project on Stripe and get your API keys.
  2. Update your test Stripe API keys in .env.dev and .env.development files:
    NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=
    STRIPE_SECRET_KEY=
    STRIPE_WEBHOOK_SECRET=
    STRIPE_WEBHOOK_SECRET_LIVE=
    
  3. Update your production Stripe API keys in .env.prd file:
    NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=
    STRIPE_SECRET_KEY=
    STRIPE_WEBHOOK_SECRET=
    STRIPE_WEBHOOK_SECRET_LIVE=
    
  4. Browse scripts/imports/billing.yml in the project repository.
  5. Create your test and production products and prices in Stripe.
  6. Update the stripe_id values in scripts/imports/billing.yml.

MailJet

Supabase

Setup supabase CLI. Confirm with supabase --version.

Create your production and preview projects on Supabase. Then:

  1. Update your preview Supabase env vars in .env.dev:
    NEXT_PUBLIC_SUPABASE_URL=
    NEXT_PUBLIC_SUPABASE_ANON_KEY=
    SUPABASE_ACCESS_TOKEN=
    SUPABASE_PROJECT_ID=
    SUPABASE_API_URL=
    SUPABASE_GRAPHQL_URL=
    SUPABASE_DB_URL=
    SUPABASE_DB_PASSWORD=
    SUPABASE_JWT_SECRET=
    SUPABASE_SERVICE_ROLE_KEY=
    
  2. Update your production Supabase env vars in .env.dev:
    NEXT_PUBLIC_SUPABASE_URL=
    NEXT_PUBLIC_SUPABASE_ANON_KEY=
    SUPABASE_ACCESS_TOKEN=
    SUPABASE_PROJECT_ID=
    SUPABASE_API_URL=
    SUPABASE_GRAPHQL_URL=
    SUPABASE_DB_URL=
    SUPABASE_DB_PASSWORD=
    SUPABASE_JWT_SECRET=
    SUPABASE_SERVICE_ROLE_KEY=
    
  3. Update your authentication Site URL to your domain in the Supabase dashboard.
  4. Link your project: supabase link --project-ref $SUPABASE_PROJECT_ID.
  5. Migrate the database: supabase db push --password $SUPABASE_DB_PASSWORD.
  6. Run yarn scripts:dev ./scripts/imports to import the data.

Vercel

Setup vercel CLI. Confirm with vercel --version. Then:

  1. Create your project on Vercel and link it to your Git repository.
  2. Set the Production git branch.
  3. Upload your environment variables.