https://github.com/ak4zh/sveltekit-saas-starter
https://github.com/ak4zh/sveltekit-saas-starter
saas stripe supabase sveltekit tailwindcss
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ak4zh/sveltekit-saas-starter
- Owner: ak4zh
- License: mit
- Created: 2022-08-26T11:02:16.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-20T13:57:00.000Z (over 3 years ago)
- Last Synced: 2023-03-14T14:20:28.480Z (over 3 years ago)
- Topics: saas, stripe, supabase, sveltekit, tailwindcss
- Language: Svelte
- Homepage: https://sveltekit-saas-starter.vercel.app
- Size: 56.6 KB
- Stars: 15
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Features
- [x] Landing Page
- [x] Auto create Pricing Page using stripe Products
- [x] Handle authentication
- [x] Auto create Stripe customer and sync with database on user sign up
- [x] Auto Sync database with stripe data
- [x] Profile page for users to update their info
- [x] Allow users to manage subscriptions and billing info via stripe customer portal
## Steps to Setup
1) Go to supabase dashboard > Database > Wehbooks and enable Webhhooks.
2) Open `supabase/migrations/20220828143845_user_data.sql` and replace the default supabase url abnd anon key with your project info.
3) Add the relevant data in `.env` and `supabase/.env`
4) Go to https://app.supabase.com/account/tokens and create a new acces token.
5) Login to supabase cli by running `supabase login` and paste the token increated in previous step.
6) Connect supabnase project by running `supabase link --project-ref YOUR_PROJECT_REF` and paste the database password.
7) Run `supabase db push` to push the migrations.
8) Go to Supabase > Settings > API and add `stripe` scheme in Exposed schema and Extra search path
9) Push the required env variables in supabse dashboard.
```bash
supabase secrets set --env-file ./supabase/.env
```
10) Deploy the supabase edge functions:
```bash
supabase functions deploy create-stripe-customer
supabase functions deploy stripe-sync --no-verify-jwt
```