fix: clean up service configuration startup and development commands

This commit is contained in:
Boki 2026-10-26 13:23:49 -04:00
parent 4ddffa6b67
commit 805a9f8fd4
36 changed files with 627 additions and 596 deletions

View file

@ -8,6 +8,27 @@ the root workspace checks.
system map, a complete backtest walkthrough, TypeScript strategy authoring, and a
[function-by-function code tour](docs/guide/code-reading.md).
## Start the research workbench
From the repository root, after installing dependencies and building:
```sh
bun run infra:up
bun run dev:research
```
This starts the API on port 2003, orchestrator on 2004 and web app on 5173, with required
workspace builds. Infrastructure uses Docker Compose v2 and includes Dragonfly, PostgreSQL,
QuestDB and MongoDB. Keep the existing environment configuration; database credentials must
match the running stores. Configure the operator access token for browser login and the
API origin as described in the [web app guide](apps/stock/web-app/README.md). Startup does
not reset data, launch ingestion, or activate a paper/live account. Use `docker:start` as
an alias for `infra:up`; optional admin/monitoring services are separate commands.
The obsolete `db:init`, `db:setup-ib` and `proxy` aliases were removed because their targets
no longer exist. Apply reviewed migrations explicitly; ordinary startup never initializes
or resets an existing database.
## Current research workflow
The web workbench is the primary interface: Strategies → Backtests → Experiments →
@ -65,7 +86,7 @@ and saved template, explicitly allows its own candidates, and sets bounded job b
Give that research token to the client, never an operator or brokerage credential.
```sh
RESEARCH_API_ORIGIN=http://127.0.0.1:3001 RESEARCH_API_TOKEN=sb-research.… \
RESEARCH_API_ORIGIN=http://127.0.0.1:2003 RESEARCH_API_TOKEN=sb-research.… \
bun run scripts/examples/research-cycle.ts --plan prepared-plan.json --receipts new-receipts.jsonl
```