Experiments >

SaaS template: Plans and Authentication

Experiment #6220th March, 2021by Joshua Nussbaum

Did some more work on creating a saas template for supabase. I’m using svelte-kit, which is quite new, so there’s lots to figure out.

I made the hairbrained mistake of swapping the parameters to supabase’s createClient(), and then had to do a bunch of debugging before figuring out what I did. Oh well.. at least I learned more about debugging vite and svelte-kit.

It’s looking really nice though, I copied the plan section from the sales page for the Refactoring UI book. Pretty shmick.

And it’s really nice to have supabase working on the server side and the client side. For example, the pricing page can render either SSR or CSR.

Server-side access to supabase will come in handy when we need to talk to external services like Stripe. So stay tuned.

Code

https://svelte.dev/repl/30a4f2c700d24f5bb51781f1c52b8b28?version=3.38.2

Demo

screenshot
view all experiments

Stay tuned in

Learn how to add more experimentation to your workflow