Am not finished the doc yet!
Try out here-> https://sveltekit-saas.pages.dev/
Welcome to Sveltekit SaaS, your go-to solution for swiftly building and deploying your Software as a Service (SaaS) startup. Powered by a robust tech stack including Sveltekit, Pocketbase, and Stripe, we provide everything you need to kickstart your project and bring your ideas to life.
Techstack:
sveltekit, pocketbase, stripe
Everything you need to build a Svelte project, powered by create-svelte.
# create a new project in the current directory
npm install
Enter your environment key
VITE_PB_URL=YOUR_POCKETBASE_INSTANCE_URL #example https://pockerbaseinstance.fly.dev NOT https://pockerbaseinstance.fly.dev/_/ which is pocketbase ui page
VITE_AUTH_ADMIN_NAME=
VITE_AUTH_ADMIN_PASS=
VITE_STRIPE_SECRET_KEY=STRIPE_KEY
VITE_WEBURL=YOUR_OWN_WEBURL
Once you've clone a project and installed dependencies with npm install (or pnpm install or yarn), start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
To create a production version of your app:
npm run build
You can preview the production build with npm run preview.
To deploy your app, you may need to install an adapter for your target environment.
Open Source backend for your next SaaS and Mobile app in 1 file written in go. Light-weight (Firebase, supabase alternative). Can support up to 10,000 concurrent user on low spec hosting server. (PocketBase can easily serve 10,000+ persistent realtime connections on a cheap $4 Hetzner CAX11 VPS (2vCPU, 4GB RAM)).
Click here to install pocketbase - Follow the official documentation
To run pocketbase type: ./pocketbase serve
https://github.com/pocketbase/pocketbase/discussions/537
Sveltekit project - Cloudflare pages for front-end web Back-end - DigitalOcean, Fly.io