Skip to content

Instantly share code, notes, and snippets.

@VictorioBerra
Last active July 30, 2025 15:07
Show Gist options
  • Save VictorioBerra/d24f79cc8707f1d60820e4f4d5530d03 to your computer and use it in GitHub Desktop.
Save VictorioBerra/d24f79cc8707f1d60820e4f4d5530d03 to your computer and use it in GitHub Desktop.
Pocketpages Codespace First Start
# Get bun, install deps
curl -fsSL https://bun.com/install | bash
source /home/codespace/.bashrc
bun i
# Get Pocketbase, remember to check version (see top of https://pocketbase.io/)
PB_VERSION="0.29.0"
wget https://github.com/pocketbase/pocketbase/releases/download/v$PB_VERSION/pocketbase_${PB_VERSION}_linux_amd64.zip
unzip -q pocketbase_${PB_VERSION}_linux_amd64.zip pocketbase
rm pocketbase_${PB_VERSION}_linux_amd64.zip
chmod +x pocketbase
# Link the starter you want to develop/test against
ln -s ./packages/starters/auth/pb_migrations/ ./pb_migrations
ln -s ./packages/starters/auth/pb_hooks/ ./pb_hooks
# Start dev servers
bun dev # Keep running in seperate term during development
./pocketbase --dev serve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment