/sveltekit-pocketbase-dokku-starter

A basic template to use when starting a new project in this stack

Primary LanguageTypeScript

Sveltekit/Pocketbase/Dokku Monorepo Quick Starter

  • Sveltekit ^2.0.0
  • Pocketbase ^0.21.1
  • Dokku ^0.28.1

Getting started (Local)

The following files need to be modified with the correct values:

Replace "project_name" in files

  • .dokku-monorepo
  • package.json

Replace .env variables

PUBLIC_POCKETBASE_URL=http://127.0.0.1:8090

Setup pocketbase

  • Download and extract pocketbase binary file to ./pocketbase/. See Pocketbase Docs for more details.
  • Run the following commands:
cd ./sveltekit
npm install
npm run pb:serve
  • Navigate to the Pocketbase url and perform initial setup, desired schemas, and configurations.
  • Generate types npm run pb:types

Deploying to Dokku

TODO: instructions coming soon