Skip to content

Commit 1ae81de

Browse files
committed
udated readme.md
1 parent 253e36a commit 1ae81de

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

README.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
11
# Incidents-app-java
22

3-
CAP Java based Incident Management Application
3+
CAP Java based Incident Management Application.
4+
5+
## Run and Test the Incidents Management Application Locally
6+
7+
1. Clone the Incident Management application repository:
8+
9+
```sh
10+
git clone https://github.tools.sap/refapps/incidents-app-java.git
11+
```
12+
2. Build the application:
13+
```sh
14+
mvn clean install
15+
```
16+
3. Run the application locally:
17+
```sh
18+
cd srv && mvn cds:watch
19+
```
20+
4. Go to `localhost:8080` and you will get the list of exposed endpoints.
21+
5. Test the following endpoint: `http://localhost:8080/odata/v4/AdminService/Customers`
22+
6. When you are prompted to authenticate, use the following credentials:
23+
- Username: admin
24+
- Password: admin
25+
26+
## Deploy and Test Incidents Management Application on BTP CF
27+
28+
1. In the root folder do:
29+
```sh
30+
mbt build
31+
```
32+
2. Login to your BTP Subaccount space where you want to deploy your application, and run the following command:
33+
```sh
34+
cf deploy mta_archives/incident-management_1.0.0-SNAPSHOT.mtar
35+
```
36+
This will deploy your application, create and bind the required services to your application. Now you can test your application from and http client tool e.g Insomnia.

0 commit comments

Comments
 (0)