https://github.com/gregorwolf/dynamic-service-consumption
CAP Dynamic Service Consumption
https://github.com/gregorwolf/dynamic-service-consumption
Last synced: 3 months ago
JSON representation
CAP Dynamic Service Consumption
- Host: GitHub
- URL: https://github.com/gregorwolf/dynamic-service-consumption
- Owner: gregorwolf
- Created: 2022-12-21T21:57:44.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-04T12:42:41.000Z (over 1 year ago)
- Last Synced: 2025-10-23T00:54:32.448Z (7 months ago)
- Language: JavaScript
- Size: 243 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CAP Dynamic Service Consumption
This CAP Projects follows the recommended project layout:
| File or Folder | Purpose |
| -------------- | ------------------------------------ |
| `app/` | content for UI frontends goes here |
| `db/` | your domain models and data go here |
| `srv/` | your service models and code go here |
| `package.json` | project metadata and configuration |
| `readme.md` | this getting started guide |
In addition
| File or Folder | Purpose |
| -------------- | ----------------- |
| `tests/` | REST Client tests |
## Connecting to services
You have to add the following content to **default-env.json**:
```JSON
{
"VCAP_SERVICES": {},
"destinations": [
{
"name": "ODataOrg",
"url": "https://services.odata.org"
},
{
"name": "bookshop",
"url": "http://localhost:4004",
"username": "bob",
"password": "bob"
},
{
"name": "S4H",
"url": "https://sandbox.api.sap.com/s4hanacloud",
"headers": {
"APIKey": "Your own api.sap.com API Key"
}
}
]
}
```
## Start the project
- Open a new terminal and run `npm start`
- In another terminal start https://github.com/gregorwolf/bookshop-demo project