Welcome to the Incident Management reference sample application for the SAP Cloud Application Programming Model (CAP).
The application allows to create and process incidents on behalf of registered customers with the basic domain model is depicted below.
Assumed you prepared for CAP development as documented in capire's Initial Setup section, ...
Clone the repository and install dependencies:
git clone https://github.com/capire/incidents
cd incidentsnpm installRun the application locally:
cds watchThen open http://localhost:4004 and navigate to /incidents/webapp.
(for testing with authorization, copy the file xmpls/authorizations.cds into the srv folder. Then, login as alice, no password required).
Troubleshooting
If you get a 403 Forbidden Error and the logon popup doesn't show, try to open a browser in an incognito mode or clear the browser cache.Run enclosed tests with:
npm testIf you want to use the Incidents App with CAP plugins like Change Tracking, Attachment Handling etc. have a look at the readme file in the xmpls folder.