https://github.com/cap-js/incidents-app
https://github.com/cap-js/incidents-app
sample
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/cap-js/incidents-app
- Owner: cap-js
- License: apache-2.0
- Created: 2023-08-31T12:55:19.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-14T14:30:35.000Z (about 1 year ago)
- Last Synced: 2025-04-14T15:28:30.902Z (about 1 year ago)
- Topics: sample
- Language: JavaScript
- Homepage:
- Size: 16.3 MB
- Stars: 36
- Watchers: 13
- Forks: 34
- Open Issues: 15
-
Metadata Files:
- Readme: readme.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Incident Management
Welcome to the Incident Management reference sample application for CAP and development recommendations provided by the SAP BTP Developer Guide.
## Domain Model
The application support team members to create and process incidents on behalf of registered customers. The basic domain model is depicted below.

## Setup
Assumed you prepared for CAP development as documented in capire's *[Initial Setup](https://cap.cloud.sap/docs/get-started/#setup)* section, ...
Clone the repository and install dependencies:
```sh
git clone https://github.com/cap-js/incidents-app
cd incidents-app
```
```sh
npm install
```
## Run
Run the application locally:
```sh
cds watch
```
Then open http://localhost:4004 and navigate to [/incidents/webapp](http://localhost:4004/incidents/webapp/index.html).
(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.
## Test
Run enclosed tests with:
```sh
npm test
```
## Add plugins
If 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](./xmpls/readme.md).
## Deploy
See: *[BTP Developer Guidelines Deployment Guides](https://help.sap.com/docs/btp/btp-developers-guide/deploy-cap)*