mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-14 04:12:08 +00:00
829 B
829 B
Arc
Dev servers
arc serve— starts the Rust API server (demo mode is per-request viaX-Arc-Demo: 1header)cd apps/arc-web && bun run dev— starts the React dev server
API workflow
The OpenAPI spec at docs/api-reference/arc-api.yaml is the source of truth for the arc-api HTTP interface.
- Edit
docs/api-reference/arc-api.yaml cargo build -p arc-types— build.rs regenerates Rust types via typify- Write/update handler in
crates/arc-api/src/server.rs, add route tobuild_router() cargo test -p arc-api— conformance test catches spec/router driftcd packages/arc-api-client && bun run generate— regenerates TypeScript Axios client
Testing workflows
When manually testing workflows with arc run start, use --no-retro to skip the retro step and finish faster.