Skip to content

docs: run the apps locally as debug apps through the Serverpod MCP - #45

Merged
vlidholt merged 1 commit into
mainfrom
docs/run-apps-locally
Nov 9, 2026
Merged

vlidholt merged 1 commit into
mainfrom
docs/run-apps-locally

Conversation

@vlidholt

@vlidholt vlidholt commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Makes the Serverpod runner plus debug apps started with spawn_flutter_app the default way to run and try the apps locally, instead of release builds.

  • AGENTS.md has a new Running locally section:
    1. One-time setup: flutter pub get in the repository root, then copy passwords.example.yaml to passwords.yaml. No Docker is needed: development uses an embedded PostgreSQL.
    2. Start the server with serverpod runner start. Ephemeral ports are fine when another runner holds 8080–8082.
    3. Start an app with spawn_flutter_app. Each one runs on its own dev port (Drive 8100, Write 8101, Sheets 8102, Slides 8104).
    4. Open it in a browser: the app only finishes starting once a page connects.
    5. Sign up; the registration code is in the server log.
  • How the apps find the server: the runner passes --dart-define=SERVER_URL=<API address>, which overrides apiUrl from assets/config.json (AppUrls.load). This also works when the server bound ephemeral ports.
  • Cross-app links: a note says that links between apps, per-app sign-in and web-server links (webUrl, port 8082) break locally by design, and that agents shouldn't change config.json, AppUrls or the link code to fix them.
  • Release builds are now described only for checking the production bundle (bundle sizes, Wasm-only behaviour, performance), not for everyday browser checks.
  • Other docs updated to match: CONTRIBUTING.md, wonky_server/README.md (it had the wrong folder), the Drive and Slides READMEs (Drive claimed it launched automatically) and spec 01 §2.4.

Test plan

  • Followed the new steps on a fresh checkout. 8080–8082 were held by another project's runner, so the server bound ephemeral ports; Write started with spawn_flutter_app reached the API on its ephemeral port, sign-up worked and the registration code was in the server log
  • Docs only: no code changes

🤖 Generated with Claude Code

Make the Serverpod runner plus `spawn_flutter_app` debug apps the default
way to run and try the apps (AGENTS.md, "Running locally"): one-time setup,
starting the server (ephemeral ports are fine when another runner holds
8080-8082), the apps' dev URLs, and the registration code in the server log.
The runner passes SERVER_URL, which overrides apiUrl from config.json, so
the apps reach the server whatever port it bound.

Note that links between apps, per-app sign-in and web-server links break
locally by design. Limit release builds to checking the production bundle,
and align CONTRIBUTING, the server/Drive/Slides READMEs and spec 01.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vlidholt
vlidholt merged commit fbc0756 into main Nov 9, 2026
40 checks passed
@vlidholt
vlidholt deleted the docs/run-apps-locally branch November 9, 2026 17:03
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