Code Monkey home page Code Monkey logo

alya_sveltekit_saas's Introduction

Alya Sveltekit SaaS - Launch Your Own SaaS Rapidly!

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.

image

Techstack: sveltekit, pocketbase, stripe Everything you need to build a Svelte project, powered by create-svelte.

Clone project to local and install

# 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

Developing

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

Building

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.

Pocketbase back-end

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

Host your pocketbase on fly.io

pocketbase/pocketbase#537

About deployment

Sveltekit project - Cloudflare pages for front-end web Back-end - DigitalOcean, Fly.io

Create your Mail STMP for sending verification email, password change for your pocketbase app.

  1. Go to https://myaccount.google.com/apppasswords
  2. Create new app name and get your password
  3. Go to pocketbase instance -> go to setting -> mail setting -> Enable use SMTP mail server ->
  4. Your input field supposed to be like this image

alya_sveltekit_saas's People

Contributors

idea2547 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.