k0mpreni / marky

A Sveltekit Supabase Stripe SaaS template

Home Page:https://marky-chi.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

marky

A template for SaaS built with Svelte, Supabase and Stripe

Why? So you can quickly bootstrap and focus on your idea

Todo

And a lot other stuff that I will build while learning more about SaaS, like good landing pages and so on

Development

Clone the repo then copy the .env.example into a .env file and add your env variables

cd marky
npm install
npm run dev

Setup Supabase

Sign into Supabase Create a project In "Authentication", set the wanted providers and add them into the login page https://supabase.com/docs/guides/auth/social-login

Setup auth trigger

Execute this to create a trigger that will run the function to create a user and organization when a new user is created in the auth table

CREATE TRIGGER
  create_profile_on_signup
  AFTER INSERT ON auth.users
  FOR EACH ROW
  EXECUTE PROCEDURE
    public.create_profile_for_new_user();

Setup Stripe

Sign into Stripe Go to Products and add the wanted products, this will be the plans shown on the site Add CVC rule

Useful links

How to set prices: https://www.indiehackers.com/post/the-ultimate-guide-to-saas-pricing-7962e070de

Thanks

The free Tailwind components from https://www.tailbits.com/components/free

If you are building stuff with this, I would love to see what you built, feel free to ping me!

About

A Sveltekit Supabase Stripe SaaS template

https://marky-chi.vercel.app


Languages

Language:Svelte 51.6%Language:PLpgSQL 21.6%Language:TypeScript 19.3%Language:JavaScript 4.0%Language:CSS 3.0%Language:HTML 0.6%