You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- You have registered for a Cloud Foundry [trial account] (hcp-create-trial-account) on SAP Business Technology Platform.
13
+
- You have a productive account for SAP Business Technology Platform (SAP BTP). If you don't have such yet, you can create one so you can [try out services for free] (https://developers.sap.com/tutorials/btp-free-tier-account.html).
14
+
- You have created a subaccount and a space on Cloud Foundry Environment.
14
15
-[cf CLI] (https://help.sap.com/products/BTP/65de2977205c403bbc107264b8eccf4b/4ef907afb1254e8286882a2bdef0edf4.html) is installed locally.
15
16
-[Node.js] (https://nodejs.org/en/about/releases/) and [npm] (https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) are installed locally.
16
17
- You have installed an integrated development environment, for example [Visual Studio Code] (https://code.visualstudio.com/).
@@ -28,27 +29,30 @@ This tutorial will guide you through creating and setting up a simple Node.js ap
28
29
29
30
[ACCORDION-BEGIN [Step 1: ](Log on to SAP BTP)]
30
31
31
-
First, you need to connect to the SAP BTP, Cloud Foundry environment with your trial account. By default, a space `dev` is created for you. Your Cloud Foundry URL depends on the region where the API endpoint belongs to. To find out which one is yours, see: [Regions and API Endpoints Available for the CF Environment] (https://help.sap.com/products/BTP/65de2977205c403bbc107264b8eccf4b/f344a57233d34199b2123b9620d0bb41.html?version=Cloud) -> **Regions for Trial Accounts**.
32
+
First, you need to connect to the SAP BTP, Cloud Foundry environment with your productive subaccount. Your Cloud Foundry URL depends on the region where the API endpoint belongs to. To find out which one is yours, see: [Regions and API Endpoints Available for the CF Environment] (https://help.sap.com/products/BTP/65de2977205c403bbc107264b8eccf4b/f344a57233d34199b2123b9620d0bb41.html?version=Cloud)
32
33
33
-
In this tutorial, we use `eu10.hana.ondemand.com` as an example.
34
+
In this tutorial, we use `eu20.hana.ondemand.com` as an example.
34
35
35
36
1. Open a command-line console.
36
37
37
-
2. Set the Cloud Foundry API endpoint for your trial account. Execute (using your actual region URL):
38
+
2. Set the Cloud Foundry API endpoint for your subaccount. Execute (using your actual region URL):
38
39
39
40
```Bash/Shell
40
-
cf api https://api.cf.eu10.hana.ondemand.com
41
+
cf api https://api.cf.eu20.hana.ondemand.com
41
42
```
42
43
3. Log in to SAP BTP, Cloud Foundry environment:
43
44
44
45
```Bash/Shell
45
46
cf login
46
47
```
47
48
48
-
4. When prompted, enter your user credentials – the email and password you have used to register your SAP BTP trial account.
49
+
4. When prompted, enter your user credentials – the email and password you have used to register your productive SAP BTP account.
49
50
50
51
> **IMPORTANT**: If the authentication fails, even though you've entered correct credentials, try [logging in via single sign-on] (https://help.sap.com/products/BTP/65de2977205c403bbc107264b8eccf4b/e1009b4aa486462a8951c4d499ce6d4c.html?version=Cloud).
51
52
53
+
#### RESULT
54
+
55
+
Details about your personal SAP BTP subaccount are displayed (API endpoint, user, organization, space).
52
56
53
57
[DONE]
54
58
[ACCORDION-END]
@@ -68,17 +72,17 @@ You're going to create a simple Node.js application.
The `manifest.yml` file represents the configuration describing your application and how it will be deployed to Cloud Foundry.
78
82
79
-
> **IMPORTANT**: Make sure you don't have another application with the name `myapp` in your `dev` space.
83
+
> **IMPORTANT**: Make sure you don't have another application with the name `myapp` in your space! If you do, use a different name and adjust the whole tutorial according to it.
80
84
81
-
> Also bear in mind that your application's technical name (in the route) must be **unique** in the whole Cloud Foundry landscape. We advice that you useyour trial account ID to construct the technical name. In this tutorial, we use: `node-1234567trial`
85
+
> Also bear in mind that your application's technical name (in the route) must be **unique** in the whole Cloud Foundry landscape. We advice that you use, for example, your subdomain name or part of your subaccount ID to construct the technical name. In this tutorial, we use: `node-1234-aaaa-5678`
82
86
83
87
4. Inside `node-tutorial`, create a subfolder `myapp`.
84
88
@@ -98,7 +102,7 @@ You're going to create a simple Node.js application.
98
102
99
103
This operation adds the `express` package as a dependency in the `package.json` file.
100
104
101
-
After the installation is complete, the content of `package.json` should look like this:
105
+
After the installation is completed, the content of `package.json` should look like this:
102
106
103
107
```JSON
104
108
{
@@ -112,7 +116,7 @@ You're going to create a simple Node.js application.
112
116
"author": "",
113
117
"license": "ISC",
114
118
"dependencies": {
115
-
"express": "^4.17.3"
119
+
"express": "^4.18.1"
116
120
}
117
121
}
118
122
```
@@ -134,7 +138,7 @@ You're going to create a simple Node.js application.
134
138
"author": "",
135
139
"license": "ISC",
136
140
"dependencies": {
137
-
"express": "^4.17.3"
141
+
"express": "^4.18.1"
138
142
}
139
143
}
140
144
```
@@ -169,7 +173,7 @@ You're going to create a simple Node.js application.
169
173
170
174
11. Now open a browser window and enter the URL of the `myapp` application (see the route).
171
175
172
-
That is: `https://node-1234567trial.cfapps.eu10.hana.ondemand.com`
176
+
That is: `https://node-1234-aaaa-5678.cfapps.eu20.hana.ondemand.com`
173
177
174
178
#### RESULT
175
179
@@ -205,7 +209,7 @@ Authentication in the SAP BTP, Cloud Foundry environment is provided by the Auth
@@ -217,7 +221,7 @@ Authentication in the SAP BTP, Cloud Foundry environment is provided by the Auth
217
221
218
222
4. Now you have to create a microservice (the application router). Go to the `node-tutorial` folder and create a subfolder `web`.
219
223
220
-
> **IMPORTANT**: Make sure you don't have another application with the name `web` in your `dev` space!
224
+
> **IMPORTANT**: Make sure you don't have another application with the name `web` in your space! If you do, use a different name and adjust the rest of the tutorial according to it.
221
225
222
226
5. Inside the `web` folder, create a subfolder `resources`. This folder will provide the business application's static resources.
223
227
@@ -259,29 +263,29 @@ Authentication in the SAP BTP, Cloud Foundry environment is provided by the Auth
259
263
},
260
264
```
261
265
262
-
10. Now you need to add the `web` application to your project and bind the XSAUAA service name (`nodeuaa`) to it. To do that, insert the following content **at the end** of your `manifest.yml` file.
266
+
10. Now you need to add the `web` application to your project and bind the XSUAA service instance (`nodeuaa`) to it. To do that, insert the following content **at the end** of your `manifest.yml` file.
0 commit comments