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
12 changes: 12 additions & 0 deletions ee/apps/den-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ It carries the full migrated Den API route surface in a foldered Hono structure
pnpm --filter @openwork-ee/den-api dev:local
```

## Local demo org seed

With a local Den MySQL database running, seed a demo organization:

```bash
pnpm --filter @openwork-ee/den-api seed:demo-org
```

This creates `Acme Robotics` with demo users, teams, pending invites, and an imported Anthropic Knowledge Work Plugins marketplace. It is guarded by `OPENWORK_DEV_MODE=1`, defaults to the local Den DB URL, and does not create workers or active external integrations.

Default owner login: `alex@acme.test` / `OpenWorkDemo123!`.

## Current routes

- `GET /` -> `302 https://openworklabs.com`
Expand Down
1 change: 1 addition & 0 deletions ee/apps/den-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"dev:local": "sh -lc 'OPENWORK_DEV_MODE=1 PORT=${DEN_API_PORT:-8790} tsx watch src/server.ts'",
"build": "node ./scripts/build.mjs",
"build:den-db": "pnpm --filter @openwork-ee/den-db build",
"seed:demo-org": "pnpm run build:den-db && sh -lc 'DEN_WEB_PORT=${DEN_WEB_PORT:-3005}; OPENWORK_DEV_MODE=${OPENWORK_DEV_MODE:-1} DATABASE_URL=${DATABASE_URL:-mysql://root:password@127.0.0.1:3306/openwork_den} DEN_DB_ENCRYPTION_KEY=${DEN_DB_ENCRYPTION_KEY:-local-dev-db-encryption-key-please-change-1234567890} BETTER_AUTH_SECRET=${BETTER_AUTH_SECRET:-local-dev-secret-not-for-production-use!!} BETTER_AUTH_URL=${BETTER_AUTH_URL:-http://localhost:$DEN_WEB_PORT} tsx scripts/seed-demo-org.ts'",
"start": "node dist/server.js"
},
"dependencies": {
Expand Down
Loading
Loading