Merge MVP startup defaults with memory-db mode + tests

This commit is contained in:
2026-03-01 19:24:59 -05:00
parent 5e27459325
commit e4901f027c
12 changed files with 1131 additions and 89 deletions

View File

@@ -36,3 +36,36 @@ Examples:
## Worker
- `worker/src/worker.js` is a placeholder loop.
- Later it will pull from connectors, OCR, classify, and run rule assignment.
## Local runbook
Preferred path:
```bash
cd /root/clawd/mastermind-mvp
cp .env.example .env
```
Set at least:
```bash
SESSION_SECRET=replace-with-a-long-random-string
BASE_URL=http://localhost:3005
BOOTSTRAP_OWNER_EMAIL=owner@local
BOOTSTRAP_OWNER_PASSWORD=ChangeMe12345
```
Start the full stack with Postgres:
```bash
docker compose up -d --build
```
Alternative direct Node.js mode with the in-memory DB:
```bash
npm ci --prefix web
npm ci --prefix worker
DATABASE_URL=memory://local SESSION_SECRET=replace-with-a-long-random-string BASE_URL=http://localhost:3005 BOOTSTRAP_OWNER_EMAIL=owner@local BOOTSTRAP_OWNER_PASSWORD=ChangeMe12345 npm run start:web
DATABASE_URL=memory://local npm run start:worker
```
Run tests:
```bash
npm test
```