@@ -24,9 +24,9 @@ The in-repo docs live under `frontend/src/content/docs/` and are published by As
2424
2525## REST API Snapshot
2626``` bash
27- # List feeds available to the token
27+ # List available strategies
2828curl -H " Authorization: Bearer <token>" \
29- " https://your-domain.com/api/v1/feeds "
29+ " https://your-domain.com/api/v1/strategies "
3030
3131# Create a feed and capture the signed public URL
3232curl -X POST " https://your-domain.com/api/v1/feeds" \
@@ -60,37 +60,37 @@ The Ruby server continues to serve the production build while Astro runs with ho
6060
6161## Make Targets
6262
63- | Command | Purpose |
64- | --- | --- |
65- | ` make help ` | List available shortcuts. |
66- | ` make setup ` | Install Ruby and Node dependencies. |
67- | ` make dev ` | Run Ruby (port 3000) and Astro (port 4321) dev servers. |
68- | ` make dev-ruby ` | Start only the Ruby server. |
69- | ` make dev-frontend ` | Start only the Astro dev server. |
70- | ` make test ` | Run Ruby and frontend test suites. |
71- | ` make test-ruby ` | Run Ruby specs. |
72- | ` make test-frontend ` | Run frontend unit and contract tests. |
73- | ` make lint ` | Run all linters. |
74- | ` make lintfix ` | Auto-fix lint warnings where possible. |
75- | ` make clean ` | Remove build artefacts. |
63+ | Command | Purpose |
64+ | -------------------- | ---------------------------------------------------- --- |
65+ | ` make help ` | List available shortcuts. |
66+ | ` make setup ` | Install Ruby and Node dependencies. |
67+ | ` make dev ` | Run Ruby (port 3000) and Astro (port 4321) dev servers. |
68+ | ` make dev-ruby ` | Start only the Ruby server. |
69+ | ` make dev-frontend ` | Start only the Astro dev server. |
70+ | ` make test ` | Run Ruby and frontend test suites. |
71+ | ` make test-ruby ` | Run Ruby specs. |
72+ | ` make test-frontend ` | Run frontend unit and contract tests. |
73+ | ` make lint ` | Run all linters. |
74+ | ` make lintfix ` | Auto-fix lint warnings where possible. |
75+ | ` make clean ` | Remove build artefacts. |
7676
7777## Frontend npm Scripts
7878
79- | Command | Purpose |
80- | --- | --- |
81- | ` npm run dev ` | Astro dev server with hot reload. |
82- | ` npm run build ` | Production build. |
83- | ` npm run test:run ` | Unit tests (Vitest). |
84- | ` npm run test:contract ` | Contract tests with MSW. |
79+ | Command | Purpose |
80+ | ----------------------- | ------------------------------ --- |
81+ | ` npm run dev ` | Astro dev server with hot reload. |
82+ | ` npm run build ` | Production build. |
83+ | ` npm run test:run ` | Unit tests (Vitest). |
84+ | ` npm run test:contract ` | Contract tests with MSW. |
8585
8686## Testing Strategy
8787
88- | Layer | Tooling | Focus |
89- | --- | --- | --- |
90- | Ruby API | RSpec + Rack::Test | Feed creation, retrieval, auth paths. |
91- | Frontend unit | Vitest + Testing Library | Component rendering and hooks with mocked fetch. |
92- | Frontend contract | Vitest + MSW | End-to-end fetch flows against mocked API responses. |
93- | Docker smoke | RSpec (` :docker ` ) | Net::HTTP probes against the containerised service. |
88+ | Layer | Tooling | Focus |
89+ | ----------------- | ------------------------ | ------------------------------------------------- --- |
90+ | Ruby API | RSpec + Rack::Test | Feed creation, retrieval, auth paths. |
91+ | Frontend unit | Vitest + Testing Library | Component rendering and hooks with mocked fetch. |
92+ | Frontend contract | Vitest + MSW | End-to-end fetch flows against mocked API responses. |
93+ | Docker smoke | RSpec (` :docker ` ) | Net::HTTP probes against the containerised service. |
9494
9595## Contributing
9696
0 commit comments