How digitalservicebund/backend-challenge-review-typescript works
This small Express dashboard serves one workflow: a browser requests the page, the application fetches GovData organization counts, aggregates each ministry with its listed subordinate agencies, sorts the results, and renders an HTML table. The department list supplies the ministry hierarchy; CKAN is the external data source. The main runtime calls are visible in the excerpts. The departments JSON contents were not sampled, so its role is based on the application import and README description.
Main entry points: app.ts HTTP route and orchestration · govdata-ckan-service.ts Dataset count aggregation and sorting · govdata-ckan-client.ts Organization data client · rendering-service.ts HTML table rendering
Components 8
Dashboard runtime
- HTTP route and orchestration
app.ts - Organization data client
src/clients/govdata-ckan-client.ts - HTML table rendering
src/services/rendering-service.ts
Ministry aggregation
- Ministry and agency list
src/data/departments.json - Dataset count aggregation and sorting
src/services/govdata-ckan-service.ts - Ministry hierarchy lookup
src/services/departments-service.ts
Other components
- Dashboard visitor
- GovData CKAN API
Connections 8
- Dashboard visitor → HTTP route and orchestration: requests page
app.ts - HTTP route and orchestration → Organization data client: fetches organizations
app.ts - Organization data client → GovData CKAN API: requests organization counts
src/clients/govdata-ckan-client.ts - HTTP route and orchestration → Ministry and agency list: loads ministry list
app.ts - HTTP route and orchestration → Dataset count aggregation and sorting: requests counts and sort
app.ts - Dataset count aggregation and sorting → Ministry hierarchy lookup: looks up ministries
src/services/govdata-ckan-service.ts - Dataset count aggregation and sorting → HTML table rendering: supplies sorted counts
app.ts - HTTP route and orchestration → Dashboard visitor: sends HTML
app.ts