Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 1.84 KB

README.md

File metadata and controls

49 lines (33 loc) · 1.84 KB

Yet another covid-19 tracker using CAP + Fiori Elements

This is a sample project to evaluate and explore some capabilities of SAP CAP and Fiori Elements.

The goal was to better understand and learn how to:

  • Call a remote service with standard SAP CAP APIs
  • Explore options to map REST to OData Services
  • Visualize Data with Fiori Elements

Screenshots

List Report Object Page

Project Structure

File or Folder Purpose
app/ content for UI frontends (not used)
db/ domain models and mock data
srv/ service models
srv/external call and mapping of remote service
package.json project metadata and configuration
.cdsrc.json config file for CAP

Run the application

Docker

  • Build the docker container: docker build -t covid-tracker .
  • Run the docker container and expose the running port: docker run -p 80:4004 -t covid-tracker
  • sh into docker container to check whats going on inside: docker run -i -t covid-tracker /bin/sh

Publish to Docker Hub:

  • Tag the container: docker tag covid-tracker kniklas/cap-covid-tracker
  • Publish docker push kniklas/cap-covid-tracker

Learn more

Find more information about this repository in my blog post