PocketHost Development

PocketHost is designed to run full stack on your local development machine.

Getting started

git clone git@github.com:benallfree/pockethost.git
cd pockethost
pnpm
pnpm dev:lander # Marketing site only, talks to pockethost.io
pnpm dev:dashboard # Dashboard site only, talks to pockethost.io
pnpm dev # Everything, talks to pockethost.lvh.me

Just the Frontend

PocketHost has two frontends. Both static site generated (SSG):

  1. The marketing/blog site (11ty)
  2. The dashboard (sveltekit)

If you're only doing frontend development, it is much easier to point these at the production PocketHost backend instead of trying to run a local backend.

All Our Base

You can run the complete PocketHost stack locally. A simple pnpm dev will fire up:

  • https://pockethost.lvh.me - Marketing/blog
  • https://app.pockethost.lvh.me - Dashboard (app)
  • https://mothership.pockethost.lvh.me - Mothership backend
  • https://*.pockethost.lvh.me - Instance worker

Prerequisites

brew install caddy