@@ -40,9 +40,9 @@ The in-repo docs live under `frontend/src/content/docs/` and are published by As
4040
4141## REST API Snapshot
4242``` bash
43- # List feeds available to the token
43+ # List available strategies
4444curl -H " Authorization: Bearer <token>" \
45- " https://your-domain.com/api/v1/feeds "
45+ " https://your-domain.com/api/v1/strategies "
4646
4747# Create a feed and capture the signed public URL
4848curl -X POST " https://your-domain.com/api/v1/feeds" \
@@ -76,37 +76,37 @@ The Ruby server continues to serve the production build while Astro runs with ho
7676
7777## Make Targets
7878
79- | Command | Purpose |
80- | --- | --- |
81- | ` make help ` | List available shortcuts. |
82- | ` make setup ` | Install Ruby and Node dependencies. |
83- | ` make dev ` | Run Ruby (port 3000) and Astro (port 4321) dev servers. |
84- | ` make dev-ruby ` | Start only the Ruby server. |
85- | ` make dev-frontend ` | Start only the Astro dev server. |
86- | ` make test ` | Run Ruby and frontend test suites. |
87- | ` make test-ruby ` | Run Ruby specs. |
88- | ` make test-frontend ` | Run frontend unit and contract tests. |
89- | ` make lint ` | Run all linters. |
90- | ` make lintfix ` | Auto-fix lint warnings where possible. |
91- | ` make clean ` | Remove build artefacts. |
79+ | Command | Purpose |
80+ | -------------------- | ---------------------------------------------------- --- |
81+ | ` make help ` | List available shortcuts. |
82+ | ` make setup ` | Install Ruby and Node dependencies. |
83+ | ` make dev ` | Run Ruby (port 3000) and Astro (port 4321) dev servers. |
84+ | ` make dev-ruby ` | Start only the Ruby server. |
85+ | ` make dev-frontend ` | Start only the Astro dev server. |
86+ | ` make test ` | Run Ruby and frontend test suites. |
87+ | ` make test-ruby ` | Run Ruby specs. |
88+ | ` make test-frontend ` | Run frontend unit and contract tests. |
89+ | ` make lint ` | Run all linters. |
90+ | ` make lintfix ` | Auto-fix lint warnings where possible. |
91+ | ` make clean ` | Remove build artefacts. |
9292
9393## Frontend npm Scripts
9494
95- | Command | Purpose |
96- | --- | --- |
97- | ` npm run dev ` | Astro dev server with hot reload. |
98- | ` npm run build ` | Production build. |
99- | ` npm run test:run ` | Unit tests (Vitest). |
100- | ` npm run test:contract ` | Contract tests with MSW. |
95+ | Command | Purpose |
96+ | ----------------------- | ------------------------------ --- |
97+ | ` npm run dev ` | Astro dev server with hot reload. |
98+ | ` npm run build ` | Production build. |
99+ | ` npm run test:run ` | Unit tests (Vitest). |
100+ | ` npm run test:contract ` | Contract tests with MSW. |
101101
102102## Testing Strategy
103103
104- | Layer | Tooling | Focus |
105- | --- | --- | --- |
106- | Ruby API | RSpec + Rack::Test | Feed creation, retrieval, auth paths. |
107- | Frontend unit | Vitest + Testing Library | Component rendering and hooks with mocked fetch. |
108- | Frontend contract | Vitest + MSW | End-to-end fetch flows against mocked API responses. |
109- | Docker smoke | RSpec (` :docker ` ) | Net::HTTP probes against the containerised service. |
104+ | Layer | Tooling | Focus |
105+ | ----------------- | ------------------------ | ------------------------------------------------- --- |
106+ | Ruby API | RSpec + Rack::Test | Feed creation, retrieval, auth paths. |
107+ | Frontend unit | Vitest + Testing Library | Component rendering and hooks with mocked fetch. |
108+ | Frontend contract | Vitest + MSW | End-to-end fetch flows against mocked API responses. |
109+ | Docker smoke | RSpec (` :docker ` ) | Net::HTTP probes against the containerised service. |
110110
111111## Contributing
112112
0 commit comments