Merge MVP startup defaults with memory-db mode + tests
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user