Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 1.63 KB

File metadata and controls

42 lines (26 loc) · 1.63 KB

Single page application: An Angular based dashboard

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.

Building & Running

1. Build spa-dashboard-angular

You can build this subproject individually from the parent folder via all examples via gradle:

./gradlew spa-dashboard-angular:build

2. Start an OpenAPI implementation

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:

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.

3. Run the angular app

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.