GithubHelp home page GithubHelp logo

omarnagy91 / sveltekit-saas-starter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ak4zh/sveltekit-saas-starter

0.0 0.0 0.0 58 KB

Home Page: https://sveltekit-saas-starter.vercel.app

License: MIT License

Shell 0.12% JavaScript 5.65% TypeScript 23.84% CSS 1.10% HTML 0.87% PLpgSQL 6.16% Svelte 62.26%

sveltekit-saas-starter's Introduction

Features

  • Landing Page
  • Auto create Pricing Page using stripe Products
  • Handle authentication
  • Auto create Stripe customer and sync with database on user sign up
  • Auto Sync database with stripe data
  • Profile page for users to update their info
  • 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.

supabase secrets set --env-file ./supabase/.env
  1. Deploy the supabase edge functions:
supabase functions deploy create-stripe-customer
supabase functions deploy stripe-sync --no-verify-jwt

sveltekit-saas-starter's People

Contributors

ak4zh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.