@@ -24,9 +24,9 @@ The in-repo docs live under `frontend/src/content/docs/` and are published by As
24
24
25
25
## REST API Snapshot
26
26
``` bash
27
- # List feeds available to the token
27
+ # List available strategies
28
28
curl -H " Authorization: Bearer <token>" \
29
- " https://your-domain.com/api/v1/feeds "
29
+ " https://your-domain.com/api/v1/strategies "
30
30
31
31
# Create a feed and capture the signed public URL
32
32
curl -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
60
60
61
61
## Make Targets
62
62
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. |
76
76
77
77
## Frontend npm Scripts
78
78
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. |
85
85
86
86
## Testing Strategy
87
87
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. |
94
94
95
95
## Contributing
96
96
0 commit comments