Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kevmodrome/kitbase
KitBase is a starter template geared towards quickly spinning up projects using PocketBase and Stripe
https://github.com/kevmodrome/kitbase
pocketbase starter-templates stripe sveltejs
Last synced: 3 days ago
JSON representation
KitBase is a starter template geared towards quickly spinning up projects using PocketBase and Stripe
- Host: GitHub
- URL: https://github.com/kevmodrome/kitbase
- Owner: kevmodrome
- Created: 2022-10-10T09:02:45.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-25T10:48:26.000Z (about 2 years ago)
- Last Synced: 2024-09-26T02:01:28.172Z (4 months ago)
- Topics: pocketbase, starter-templates, stripe, sveltejs
- Language: Svelte
- Homepage:
- Size: 11.8 MB
- Stars: 53
- Watchers: 5
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-pocketbase - GitHub
- awesome-pocketbase - GitHub
README
# WIP: KitBase Starter Template
This is a starter template for SvelteKit and PocketBase. Set up to use Cloudflare's cache API for backend responses. Local development uses Miniflare to mock the cache API.
## What's inside?
A starter template to quickly get up and running.
### Features
- Auth
- Stripe
- Admin CMS courtesy of PocketBase
- Cloudflare Dev Environment using Miniflare. Supports Cache API.
- Styling using [Open Props](https://open-props.style).
- Histoire support
- Testing using PlayWright (WIP)
- Plugins using unplugin-icons### Apps and Packages
- `web`: a [SvelteKit](https://kit.svelte.dev) app
- `backend`: a [PocketBase](https://pocketbase.io) repo. Just contains a built Go binary and some data to get started.## Getting started
### Develop
After running the dev command, create an account in the PocketBase app running at `localhost:8090/`. Go to the import collections tab and use the `pb_schema.json` file found in the `backend` folder.
Make sure all the environment variables are set up correctly. The template uses GitHub OAuth to log in, so in order to set it up you need to create an application there and those settings to PocketBase. Before that you won't be able to log in.
When everything is set up run the following command from the root folder:
```
pnpm run dev
```### Build
To build all apps and packages, run the following command:
```
pnpm run build
```## ENV
Needs the following environment variables and secrets set up.
```
API_URL=http://127.0.0.1:8090
GITHUB_REDIRECT_URL=http://localhost:5173/auth/redirect
STRIPE_KEY=
STRIPE_WEBHOOK_SECRET=
```