You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds scripts/dev-bootstrap.sh as a single local onboarding entrypoint for dependency install, Docker Compose Postgres startup, DB readiness, migrations, schema validation, and seed loading.
Adds deterministic local-only seed data in scripts/dev-seed.sql without committing real secrets.
Updates .env.example to match the Compose host database default and placeholder local API key.
Documents the bootstrap flow and Bash prerequisite in the README.
Adds a focused .gitattributes rule so shell scripts stay LF, and fixes migration 005's fresh-DB index target so bootstrap migrations do not reference the non-existent credit_lines.wallet_address column.
npm run dev:bootstrap -- --skip-install --skip-compose --skip-migrate --skip-seed passes with Git Bash on PATH.
npm run validate:spec passes.
Full Docker-backed bootstrap was not run locally because docker is not installed or not on PATH in this environment.
npm run typecheck still fails on existing baseline errors unrelated to this PR, including missing recordRequest, maintenanceModeGuard, dashboardSummaryService, and log symbols.
CI note: the fork push workflow failed in the existing \
pm run typecheck\ step before exercising the bootstrap flow. The log matches the current baseline failures also seen on #269: missing symbols such as \
ecordRequest\, \maintenanceModeGuard\, \dashboardSummaryService\, and \log\ in unrelated TypeScript files. Branch-specific checks passed locally: \
pm ci\, \�ash -n scripts/dev-bootstrap.sh\, light-mode \
pm run dev:bootstrap -- --skip-install --skip-compose --skip-migrate --skip-seed\, and \
pm run validate:spec\.
The npm run typecheck step fails with 27 pre-existing TypeScript errors that exist identically on main. This PR touches only non-src/**/*.ts files (.env.example, README.md, scripts/dev-bootstrap.sh, migrations/, package.json) — zero source TypeScript files.
The root cause is an incomplete refactor on main: Container.ts is missing dashboardSummaryService/getCreditService getters, app.ts is missing imports (recordRequest, maintenanceModeGuard, maintenanceRouter, metricsRouter), and drawWebhookService.ts is missing a log import.
This PR's own content (bootstrap script, seed SQL, docs) is fine. Would maintainers prefer a separate baseline-fix PR to resolve the typecheck errors, or should this PR be merged as-is since it doesn't affect CI?
The pre-existing TypeScript baseline errors blocking CI have been fixed in #271 (fix/baseline-typescript-errors). Once that merges, this PR's CI should pass cleanly.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #205.
Summary
scripts/dev-bootstrap.shas a single local onboarding entrypoint for dependency install, Docker Compose Postgres startup, DB readiness, migrations, schema validation, and seed loading.scripts/dev-seed.sqlwithout committing real secrets..env.exampleto match the Compose host database default and placeholder local API key..gitattributesrule so shell scripts stay LF, and fixes migration 005's fresh-DB index target so bootstrap migrations do not reference the non-existentcredit_lines.wallet_addresscolumn.Validation
npm cipasses.C:\Program Files\Git\bin\bash.exe -n scripts/dev-bootstrap.shpasses.npm run dev:bootstrap -- --skip-install --skip-compose --skip-migrate --skip-seedpasses with Git Bash on PATH.npm run validate:specpasses.dockeris not installed or not on PATH in this environment.npm run typecheckstill fails on existing baseline errors unrelated to this PR, including missingrecordRequest,maintenanceModeGuard,dashboardSummaryService, andlogsymbols.