stateset-warehouse. Use Rust 1.90+, Node.js 22.12+, npm,
and Docker Compose for the development PostgreSQL service. PostgreSQL 12+ is supported;
the included Compose service uses PostgreSQL 16.
Working surface: local WMS dashboard and REST API.
Bring: repository access and an isolated development database.
Finish with: a visible synthetic facility and a verified identity/facility read.
Start the synthetic workspace
Run from the Warehouse repository root, copying the example configuration on a fresh checkout:WMS_DEMO=true and points at
PostgreSQL on port 5548.
The demo persists synthetic changes in its own database tenant and refuses external event
receivers. There is no in-memory fallback. Stopping the development script stops its API and
leaves PostgreSQL running.
Configure an empty real workspace
Stop the development script. In.env, set WMS_DEMO=false and configure individual
credentials through WMS_API_KEYS_JSON. Each secret must be at least 32 characters:
bash scripts/dev.sh. This configuration is for API-key mode; WorkOS sign-in needs its own
organization mappings and deployment setup.
Real tenants start with an empty MAIN warehouse and receiving/staging bins. Administrators
configure the facility, products, and storage locations, then record actual receipts or
reasoned opening counts. Additional facilities have independent inventory and work.
Verify identity and facility
SetWMS_TOKEN in your shell to an existing configured credential. These are reads:
default_warehouse_id. Read that exact ID;
do not infer the active facility from directory sort order:
Checkpoint: the authenticated session identifies the intended tenant and
actor, and the facility snapshot supplies its current version and inventory/work state.