cf-fly-pocketbase-demo Svelte Themes

Cf Fly Pocketbase Demo

This demo app showcases how to deploy a static Svelte app to Cloudflare Pages while keeping the PocketBase backend on Fly.io.

cf-fly-pocketbase-demo

This demo app showcases how to deploy a static Svelte app to Cloudflare Pages while keeping the PocketBase backend on Fly.io.

Frontend: https://cf-fly-pocketbase-demo.pages.dev/

Backend: https://cf-fly-pocketbase-demo.fly.dev/_/

Development

To start script, run:

# 1) Run the dev pocketbase backend.
# If it's your first run, follow the OTP link in the console to create the first superadmin.
./scripts/run-dev-env-docker.sh support

# 2) run the app:
yarn run dev

Deployments

Deployments to fly.io and cloudflare are done automatically via GHA, on push to master branch.

Notes

To create new CF page:

yarn run wrangler pages project create cf-fly-pocketbase-demo

To create new Fly app:

./scripts/run-dev-env-docker.sh shell fly launch

Top categories

Loading Svelte Themes