https://github.com/gregorwolf/controller-api
Access XS Controller API from CAP
https://github.com/gregorwolf/controller-api
Last synced: about 13 hours ago
JSON representation
Access XS Controller API from CAP
- Host: GitHub
- URL: https://github.com/gregorwolf/controller-api
- Owner: gregorwolf
- License: mit
- Created: 2020-02-28T07:31:21.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-15T17:09:57.000Z (over 6 years ago)
- Last Synced: 2025-10-13T18:39:17.802Z (9 months ago)
- Language: JavaScript
- Size: 51.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Access XS Controller API from CAP
Sample project to consume the XS Controller API from CAP
## Run local
For local testing you have to start the mock service before this app.
To run against the local mock service [controller-api-mock](https://github.com/gregorwolf/controller-api-mock) you have to create a file named *default-env.json* with the following content:
```JSON
{
"VCAP_SERVICES": {
},
"destinations": [
{
"name": "controller-config",
"url": "http://localhost:3000"
}
]
}
```
Then execute:
`npm run setup`
Followed by:
`npm start`