First to Site
Release 3.5

Dev Tooling, Init Script & Developer Guide

One-command setup, unified dev commands, production DB download, and onboarding documentation

Overview

A complete developer experience overhaul that replaced Docker exec and yarn-based workflows with bun run dev:* commands, added automated first-time setup, production database download, a full developer guide, and a port migration to avoid local conflicts.

What Changed

Automated Setup (PR #697)

  • bun run init runs the full first-time setup: Docker containers, Composer, Bun install, database download, asset build, and cache clear.
  • Eliminates the multi-step manual onboarding process.

Unified Dev Commands

CommandPurpose
bun run devStart everything (containers + dashboard)
bun run dev:ccClear Symfony cache
bun run dev:updatedbdoctrine:schema:update
bun run dev:composerInstall PHP dependencies
bun run dev:assetsBuild frontend assets
bun run dev:watchWatch mode for assets
bun run dev:testRun PHPUnit tests
bun run dev:lint / dev:fixPSR-12 lint and auto-fix
bun run dev:shellEnter PHP container
bun run dev:download-dbDownload production database

Production DB Download

  • bun run dev:download-db pulls the production database via SSH, excluding large tables (system_log, etl_property_address, etl_parcel, address_cache).
  • bun run dev:download-db -- --import downloads and imports in one step (drops local DB first).

Port Migration (PR #696)

  • All Docker ports prefixed with 1 to avoid conflicts: 8000 to 18000, 8444 to 18444, 8080 to 18080, 8025 to 18025.
  • Updated docker-compose, nginx configs, CORS settings, Stripe fallback, E2E defaults.
  • Auth0 callback URLs registered for localhost:18000 and localhost:18444.

Dev Dashboard

  • Command Reference tab with every available command grouped by category.
  • Deployment tab with step-by-step release guide, server layout, and rollback instructions.

Files Touched

FileChange
package.jsonAll new dev:* scripts
scripts/dev-init.tsAutomated setup
scripts/dev-download-db.tsDB download utility
scripts/dev-commands.tsShared command data
scripts/dev-dashboard-server.tsDashboard tabs
docs/DEVELOPER_SETUP.mdOnboarding guide
docker-compose.ymlPort migration
CLAUDE.mdUpdated workflow documentation

Changelog Reference

  • feat: add dev tooling, init script, and developer guide (f3b4762)
  • fix: migrate all local dev ports to 1xxxx range (3ce081c)