Skip to content

Make local dev setup seamless with pnpm setup#723

Open
285729101 wants to merge 1 commit intoMerit-Systems:masterfrom
285729101:improve/local-dev
Open

Make local dev setup seamless with pnpm setup#723
285729101 wants to merge 1 commit intoMerit-Systems:masterfrom
285729101:improve/local-dev

Conversation

@285729101
Copy link

Fixes #597

Tried running echo locally from a fresh clone and ran into a few friction points — no .env files get generated with working defaults, the setup instructions in the README are pretty minimal, and there's no single command to go from clone to working dev environment. This PR fixes all of that.

What changed

  • scripts/setup.sh — new script that handles the full local bootstrap: checks prereqs (node, pnpm, docker), generates .env files for both control and server with working local defaults, spins up postgres via docker compose, and runs prisma migrations. Wired up as pnpm setup in root package.json.

  • README — rewrote the Development section with a proper step-by-step guide, prerequisites table, what-gets-started overview, troubleshooting tips, and useful commands reference.

  • .env.example files — cleaned up both control and server examples with better comments explaining what's optional vs required for local dev.

  • packages/app/control/scripts/setup.sh — updated to generate a complete .env instead of just AUTH_SECRET + DATABASE_URL.

  • CONTRIBUTING.md — updated Getting Started to point to pnpm setup instead of the old multi-step manual process.

How to test

git clone ... && cd echo
pnpm install
pnpm setup
pnpm dev
# open http://localhost:3000

Should just work on any machine with node 18+, pnpm, and docker installed.

- add scripts/setup.sh that checks prereqs, generates .env files
  with working defaults, starts postgres, and runs prisma migrations
- add 'pnpm setup' script to root package.json
- rewrite README dev section with clear step-by-step instructions,
  troubleshooting guide, and useful commands reference
- improve .env.example files with better comments and notes
- update control's setup.sh to generate a complete working .env
- update CONTRIBUTING.md getting started to point to pnpm setup

closes Merit-Systems#597
@vercel
Copy link
Contributor

vercel bot commented Feb 18, 2026

@285729101 is attempting to deploy a commit to the Merit Systems Team on Vercel.

A member of the Team first needs to authorize it.

@285729101
Copy link
Author

@fmhall ready for review when you have time. Tested the setup script on a fresh clone — goes from zero to running in one command.

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.

Make Echo seamless to run locally

1 participant