Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,6 @@ CLAUDE.md
PROJECT_BRIEF.md
ARCHITECTURE.md
DESIGN_SYSTEM.md

# playwright-cli local session artifacts
.playwright-cli/
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,13 @@ createdb contractor_os
# Run migrations (9 migration files covering all tables + indexes)
pnpm --filter @contractor-os/api migrate:up

# Seed with demo data (55+ contractors, 130+ invoices, 340+ time entries)
# Seed with demo data (55+ contractors, 130+ invoices, 340+ time entries,
# a coherent ~85% document-compliance distribution, and a ~5-month audit trail)
pnpm --filter @contractor-os/api seed

# Restore the stable demo/E2E accounts (idempotent — the full seed above
# rebuilds every org, so always re-run this immediately after it)
pnpm --filter @contractor-os/api seed:demo-accounts
```

### Run
Expand Down
1 change: 1 addition & 0 deletions apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"migrate:down": "node --import tsx node_modules/node-pg-migrate/bin/node-pg-migrate.js down --migrations-dir src/database/migrations",
"migrate:create": "node-pg-migrate create --migrations-dir src/database/migrations --tsconfig tsconfig.json",
"seed": "tsx src/database/seeds/seed.ts",
"seed:demo-accounts": "tsx scripts/seed-demo-accounts.ts",
"clean": "rm -rf dist"
},
"dependencies": {
Expand Down
Loading
Loading