Thanks to JS ecosystem, this doesn't work anymore.
A template for SaaS built with Svelte, Supabase and Stripe
Why? So you can quickly bootstrap and focus on your idea
And a lot other stuff that I will build while learning more about SaaS, like good landing pages and so on
Clone the repo then copy the .env.example
into a .env
file and add your env variables
cd marky
npm install
npm run dev
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
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();
Sign into Stripe Go to Products and add the wanted products, this will be the plans shown on the site Add CVC rule
How to set prices: https://www.indiehackers.com/post/the-ultimate-guide-to-saas-pricing-7962e070de
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!