Sample project to consume the XS Controller API from CAP
For local testing you have to start the mock service before this app.
To run against the local mock service controller-api-mock you have to create a file named default-env.json with the following content:
{
"VCAP_SERVICES": {
},
"destinations": [
{
"name": "controller-config",
"url": "http://localhost:3000"
}
]
}
Then execute:
npm run setup
Followed by:
npm start