Skip to content

feat: add local dev + staging environment for testing#7

Merged
vkaylee merged 1 commit into
mainfrom
feat/local-dev-environment
Mar 14, 2026
Merged

feat: add local dev + staging environment for testing#7
vkaylee merged 1 commit into
mainfrom
feat/local-dev-environment

Conversation

@vkaylee
Copy link
Copy Markdown
Owner

@vkaylee vkaylee commented Mar 7, 2026

Changes

  • docker-compose.yml: Add key-server-dev service (wrangler dev --local on port 8787)
  • dev.sh: Helper script with local + staging commands
  • wrangler.jsonc: Add env.staging block for staging worker
  • .env.staging.example: Template for staging credentials
  • .gitignore: Ignore .env.staging

Usage

Local (no npm/cargo needed — runs in Docker)

./dev.sh up        # Start key-server on port 8787
./dev.sh test-api  # Smoke test
./dev.sh cli 3000  # Run CLI

Staging (Cloudflare)

./dev.sh staging-setup   # One-time: create D1 + deploy
./dev.sh staging-deploy  # Subsequent deploys
./dev.sh staging-test    # Smoke test
./dev.sh staging-cli 3000

All commands run inside Docker container — only Docker required on host.

@vkaylee vkaylee merged commit 369ac4c into main Mar 14, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant