Git remote repository
Setup git
CLI. Confirm with git --version
. Then:
- Initialize your project with
git init
. - Push your project to a remote repository like GitHub or GitLab.
Stripe
Setup stripe
CLI. Confirm with stripe --version
. Then:
- Create your project on Stripe and get your API keys.
- 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=
- 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=
- Browse scripts/imports/billing.yml in the project repository.
- Create your test and production products and prices in Stripe.
- 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:
- 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=
- 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=
- Update your authentication Site URL to your domain in the Supabase dashboard.
- Link your project:
supabase link --project-ref $SUPABASE_PROJECT_ID
. - Migrate the database:
supabase db push --password $SUPABASE_DB_PASSWORD
. - Run
yarn scripts:dev ./scripts/imports
to import the data.
Vercel
Setup vercel
CLI. Confirm with vercel --version
. Then:
- Create your project on Vercel and link it to your Git repository.
- Set the Production git branch.
- Upload your environment variables.