This project provides a single page application which accesses an implementation of this projects OpenAPI.
The idea here is to illustrate a read only use case where a system/service outside of MPS wants to consume the content of models defined in MPS. This dashboard is a single-page app showing content obtained from the intermediate REST APIs. A user cannot edit that models from the browser.
You can build this subproject individually from the parent folder via all examples via gradle:
./gradlew spa-dashboard-angular:build
To run this application you will need a component which provides an API implementation conforming to the OpenAPI spec. Thus, you need to start one of the available OpenAPI implementations in this project:
- Either start the rest-api-json-bulk implementation,
- or alternatively you can start the rest-api-model-server implementation.
Check the README of the corresponding project on how to start them.
Note: Make sure you have the correct ports defined in the API URLs. This app expects 8090
by default.
Next run this single page application via:
./gradlew spa-dashboard-angular:npmRun
You can then go to http://localhost:4200
to see a dashboard with the courses model content.