Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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=
```