Weka
Weka web application¶
A React web application for public available at https://nshm.gns.cri.nz
Weka supercedes the original TUI (Toshi UI) application with similar features, but a modernised architecture. It's used primarily by the CWG team and NSHM scientists involved in running and evaluating experimental results from the NSHM CWG Scientific Process.
- Weka Deployment Stack describes the complete stack.
- Api Gateway Pattern describes the pattern used by the Weka and Weka stacks.
- Github: GNS-Science/weka
Architecture¶
Below is a simplified diagram, please see Weka Deployment Stack for more detail.
graph TD
classDef nshm stroke:lightgreen, stroke-width:3px
classDef AWS stroke:orange, stroke-width:3px
classDef SVC stroke:powderblue, stroke-width:3px
weka["Weka web app
nshm.gns.cri.nz"]:::nshm
apigw["Weka API gateway"]:::AWS
apis["NSHM APIs:
toshi, solvis, search"]:::nshm
weka -.-> |uses| apigw -.-> |aggregates| apis
%% GHA[Github Actions]:::SVC
Weka uses the Weka Applicaton API gateway which consolidates several APIs, each providing specific features.
Deployments¶
Environment settings¶
VITE_GRAPHQL_ENDPOINT=https://api.net
VITE_GRAPHQL_API_KEY=#######
VITE_HAZARD_MODEL=NSHM_v1.2.3