This public repository is read-only and no longer maintained.
This is a sample application that can be used as a reference for the SAP Cloud Application Programming Model for SAP Cloud Platform. Besides CDS tooling, this application contains a SAP Fiori Elements user interface and an additional microservice which stores images in Azure blob storage.
The application exposes a list of sample entities which represent cities. Each entity contains several properties, like name, region and an image. The user can navigate to a Fiori Object Page and replace the default image with a newly uploaded file. This file will be stored in an Azure storage account and the URL that references the image will then be stored in a table on HANA.
cf add-plugin-repo CF-Community https://plugins.cloudfoundry.org
cf install-plugin multiapps
Install make via a package manager...
...for Mac users: This tool should be preinstalled on your machine.
...for Windows users (install chocolatey first).
choco install make
Install SQLite3 via a package manager...
...for Mac users (install brew first).
brew install sqlite
...for Windows users (install chocolatey first).
choco install sqlite
git clone https://github.com/SAP-samples/cloud-foundry-cap-azure-cities
cd cloud-foundry-cap-azure-cities
npm install
npm run deploy:cf
Alternativly, you can also just deploy selected modules and skip services by using partial deployments:
cf deploy mta_archives/city-explorer-demo-app.mtar \
-m city-cap-router \
-m city-cap-db \
-m city-cap-srv \
-r city-hdi-container
This project consists of several microservices. For local development, each one can be started independently. We recommend using VS code as the project comes with support for the VS Code debugger.
git clone https://github.com/SAP-samples/cloud-foundry-cap-azure-cities
cd cloud-foundry-cap-azure-cities
npm install
code .
db/credentials.json
file which contains the credentials for the Azure storage account you want to use. The file should contain the following information.
{
"storageAccountName": "",
"accessKey": "",
"primaryBlobServiceEndPoint": "https://<ENDPOINT>.blob.core.windows.net/"
}
npm run deploy:cds
.Launch the following three modules and make sure they are all running.
Open http://localhost:4006 in your browser.
The project consists of four modules, as shown in the architecture diagram:
The project descriptor file also defines the backing services of the project. In this case, the SAP HANA service, for structured data, and an Azure storage account, for unstructured data.
None so far :)
This content is provided "as-is" with no other support.