Install / Deploy
Install Package
npm install @cw/cherrywork-analytics
Recommended Import
import Dashboard from "@cw/cherrywork-analytics/Dashboard";
Named Import
import { Dashboard } from "@cw/cherrywork-analytics";
Deployment Prerequisites:
- Config Server: Must be fully operational with a reachable public/internal URL.
- Backing Services: You must have instances of a XSUAA and the Destination Service created and available for binding.
- For the multi instance Db Credentials are fetched from the config server and for the single instance it is from binded database schema
Deployment Configuration (Manifest):
applications:
- name: cherrywork-btp-dev-dashboard
memory: 1024M
random-route: false
docker:
image: wblnd.azurecr.io/cherrywork-dashboard:v6.0.0
username: wblnd
env:
application_properties: "https://cherryworkproducts-config-server.cfapps.eu10-004.hana.ondemand.com/application/default/main/dashboard-new/application_properties.json"
Once the service is deployed, you must maintain and update the following properties within your Config Server These properties allow dashboard handle DB/API based graphs and Kpis.
| application_properties.json | Authentication,Configuration link of dashboard instances |
| crud-objects-sample.yml | Dashboard crud queries |
| dashboard_applications.json | Dashboard DB/API Configs |
dashboard_applications.json
{
"scp_dev": {
"dashboard_config": "{BASE_URL}/application/default/main/dashboard-new/SCP/dashboard_dev_configs.json",
"map_config": "{BASE_URL}/application/default/main/dashboard-new/SCP/dashboard_dev_table_map_configs.json",
"scheduler_id": "DASHBOARD_SCP",
"crudapi_url": "{BASE_URL}/application/default/main/dashboard-new/crud-objects-sample.yml",
"dashboardapis_yaml": "{BASE_URL}/application/default/main/worknet-dev-btp/composite/SCPDashboardApis.yaml"
},
"apa_dev": {
"dashboard_config": "{BASE_URL}/application/default/main/dashboard-new/APA-DEV/dashboard_dev_configs.json",
"map_config": "{BASE_URL}/application/default/main/dashboard-new/APA-DEV/dashboard_dev_table_map_configs.json",
"scheduler_id": "DASHBOARD_APA",
"crudapi_url": "{BASE_URL}/application/default/main/dashboard-new/crud-objects-sample.yml",
"dashboardapis_yaml": "{BASE_URL}/application/default/main/worknet-dev-btp/composite/APADashboardApis.yaml"
}
}