mirror of
https://github.com/jcreek/SvelteKitSaasBoilerplate.git
synced 2026-07-13 02:53:50 +00:00
45 lines
1.5 KiB
Markdown
45 lines
1.5 KiB
Markdown
# SvelteKit Saas Boilerplate
|
|
|
|
A SvelteKit boilerplate project for a Software As A Service (SaaS) application, to get you started quickly.
|
|
|
|
## Developing
|
|
|
|
After you have cloned the repository you can install the dependencies with `npm install`, and start a development server:
|
|
|
|
```bash
|
|
npm run dev
|
|
|
|
# or start the server and open the app in a new browser tab
|
|
npm run dev -- --open
|
|
```
|
|
|
|
An example `.env` file is provided in the repository. You will need to copy `.env.example` to `.env` and fill in the values with your own credentials.
|
|
|
|
## Building
|
|
|
|
To create a production version:
|
|
|
|
```bash
|
|
npm run build
|
|
```
|
|
|
|
You can preview the production build with `npm run preview`.
|
|
|
|
## Hosting and Tech Stack
|
|
|
|
This application is designed to run on [Netlify](https://www.netlify.com/) and uses [Supabase](https://supabase.io/) for database storage and user authentication ([Supabase Auth](https://supabase.com/auth)).
|
|
|
|
The application is written in Typescript using the [SvelteKit](https://kit.svelte.dev/) framework.
|
|
|
|
For styling, the application uses [Tailwind CSS](https://tailwindcss.com/) with the [DaisyUI](https://daisyui.com/) component library and [HyperUI](https://www.hyperui.dev/).
|
|
|
|
For taking payments the Stripe Checkout is used.
|
|
|
|
In its current configuration, the application can be easily linked to Netlify via git for CI/CD, enabling automatic deployments on push to the main branch.
|
|
|
|
## To Do
|
|
|
|
- Style product page
|
|
- Enable proper pagination for the products page
|
|
- Get a proper checkout page with data from Stripe rather than re-using the old basket object
|