Skip to content

Commit b79e472

Browse files
committed
Added SAP HANA db explorer instead of SQLTools
1 parent 4e6ad84 commit b79e472

File tree

1 file changed

+23
-24
lines changed

1 file changed

+23
-24
lines changed

tutorials/appstudio-cap-deploy-app/appstudio-cap-deploy-app.md

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
2-
title: Deploy Your Business Application to Cloud Foundry
3-
description: Deploy your CAP Node.js application to Cloud Foundry using SAP Business Application Studio.
2+
parser: v2
43
auto_validation: true
54
time: 15
65
tags: [ tutorial>beginner, software-product-function>sap-cloud-application-programming-model]
@@ -10,20 +9,22 @@ author_profile: https://github.com/Paolaufer
109

1110
---
1211

12+
# Deploy Your Business Application to Cloud Foundry
13+
<!-- description --> Deploy your CAP Node.js application to Cloud Foundry using SAP Business Application Studio.
14+
1315
## Prerequisites
1416
- You have an SAP HANA service (SAP HANA as a Service or SAP HANA Cloud) available in your space.
1517
To create a new instance in your trial account:
1618
1. Go to your space in the SAP Cloud Platform cockpit.
1719
2. Go to **Service Marketplace**.
1820
3. Select **SAP HANA Schemas & HDI Containers Trial**.
1921
4. Click **Create**.
20-
!![Create instance](create-new-instance.png)
22+
<!-- border -->![Create instance](create-new-instance.png)
2123
5. From the **Plan** dropdown menu, select `hdi-shared` as the service plan and provide a name for the new instance.
2224
6. Click **Create**.
2325

2426

25-
## Details
26-
### You will learn
27+
## You will learn
2728
- How to test your application using SAP HANA
2829
- How to deploy your application to Cloud Foundry
2930

@@ -32,7 +33,8 @@ author_profile: https://github.com/Paolaufer
3233

3334
---
3435

35-
[ACCORDION-BEGIN [Step 1: ](Configure the dependency to SAP HANA)]
36+
### Configure the dependency to SAP HANA
37+
3638

3739
1. In SAP Business Application Studio, open the `package.json` file.
3840

@@ -53,50 +55,49 @@ author_profile: https://github.com/Paolaufer
5355

5456
The result should look as follows:
5557

56-
!![SAP HANA dependencies](test-hana.png)
58+
<!-- border -->![SAP HANA dependencies](test-hana.png)
59+
5760

5861

59-
[DONE]
60-
[ACCORDION-END]
62+
### Run your app with SAP HANA
6163

62-
[ACCORDION-BEGIN [Step 2: ](Run your app with SAP HANA)]
6364

6465

6566
1. In the **Run Configurations** view, open the run configuration you previously created and make sure that the dependencies have changed and that you can see a dependency to `db(hana)`.
6667

67-
!![Run COnfiguration SAP HANA dependencies](run.png)
68+
<!-- border -->![Run COnfiguration SAP HANA dependencies](run.png)
6869

69-
The **Run Configuration** view allows you to bind to the specific SAP HANA instance with which you want your application to run. It will automatically install all the required dependencies and offer you to deploy your data model. (It actually generates a deploy task that you can run at any given time.) Moreover, it generates a connection in the **SQLTOOLS** view, so you can instantly check the data in your database.
70+
The **Run Configuration** view allows you to bind to the specific SAP HANA instance with which you want your application to run. It will automatically install all the required dependencies and offer you to deploy your data model. (It actually generates a deploy task that you can run at any given time.)
7071

7172
2. Click the **Bind** icon to the right of the `db` dependency. A list of SAP HANA service instances from your space is presented (you may need to log into Cloud Foundry).
7273

73-
!![Bind to an SAP HANA service](run5.png)
74+
<!-- border -->![Bind to an SAP HANA service](run5.png)
7475

7576
3. Select the SAP HANA service instance to which you want to bind the dependency.
7677

77-
!![Bind options](bind-db2.png)
78+
<!-- border -->![Bind options](bind-db2.png)
7879

7980
The bind action runs and the dependency is now bound. You will get notifications regarding which tasks are run, and regarding the creation of a new SQL tools connection .
8081

8182
4. After a few moments, a dialog box asking you to deploy your data model is displayed. Choose **Yes**.
8283

8384
The deployment task runs. Make sure it completes successfully.
8485

85-
5. Open the **SQLTOOLS** view.
86+
5. Open the **SAP HANA database explorer**.
8687

8788
6. Click on the connection created for your SAP HANA instance.
8889

8990
7. Open the `Authors` tables, and click on the magnifier glass icon next to it.
9091

91-
!![Tables](authors-tables2.png)
92+
<!-- border -->![Tables](authors-tables2.png)
9293

9394
8. In the editor tab that opens, browse the table data and make sure it is correct.
9495

9596
9. Open the **Run Configurations** view.
9697

9798
9. Click the green arrow on the right of the configuration name to run the application.
9899

99-
!![Run the application](run2.png)
100+
<!-- border -->![Run the application](run2.png)
100101

101102
10. When prompted, click **Open in new tab**.
102103

@@ -105,10 +106,10 @@ The result should look as follows:
105106
11. Stop the application by clicking **Stop** in the Debug pane.
106107

107108

108-
[VALIDATE_7]
109-
[ACCORDION-END]
110109

111-
[ACCORDION-BEGIN [Step 3: ](Deploy your application to Cloud Foundry)]
110+
111+
### Deploy your application to Cloud Foundry
112+
112113

113114
1. From the terminal on the bookshop folder, run `cds add mta`.
114115
This adds an `mta.yaml` file to the root of your application.
@@ -117,19 +118,17 @@ This adds an `mta.yaml` file to the root of your application.
117118

118119
2. Right-click the `mta.yaml` file and choose **Build MTA Project**.
119120

120-
!![Build MTA](build-mta.png)
121+
<!-- border -->![Build MTA](build-mta.png)
121122

122123
A new folder for `mta_archives` is created containing the new `mtar` file.
123124

124125
3. Right-click the `mtar` file and choose **Deploy MTA Archive**.
125126

126-
!![Deploy MTA](deploy-mta2.png)
127+
<!-- border -->![Deploy MTA](deploy-mta2.png)
127128

128129
Once the task is complete, your application should be available in your Cloud Foundry space.
129130
To access your application, go to your space in the SAP Cloud Platform cockpit and select **Applications** from the side menu.
130131

131-
[DONE]
132-
[ACCORDION-END]
133132

134133

135134

0 commit comments

Comments
 (0)