Skip to content

Commit 5896815

Browse files
committed
Update tutorial to be Node.js specific
1 parent 675c5fd commit 5896815

File tree

6 files changed

+17
-17
lines changed

6 files changed

+17
-17
lines changed

docs/_data/sidebars/cdp_sidebar.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ entries:
2424
- title: Tutorials
2525
output: web
2626
folderitems:
27-
- title: Deploying your first app
28-
url: /cdp-Deploying-your-first-app.html
27+
- title: Deploying your first Node.js app
28+
url: /cdp-Deploying-your-first-nodejs-app.html
2929
output: web
3030
- title: Deploying using individual actions
3131
url: /cdp-Deploying-using-individual-actions.html

docs/pages/cdp/cdp-Create-Zowe-CLI-profiles.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,4 @@ For help on using the options:
9696
zowe profiles create cics-deploy-profile --help
9797
```
9898

99-
To test the cics-deploy profile, follow the steps in [Deploying your first app](cdp-Deploying-your-first-app).
99+
To test the cics-deploy profile, follow the steps in [Deploying your first Node.js app](cdp-Deploying-your-first-nodejs-app).

docs/pages/cdp/cdp-Deploying-into-zospt-cics-region.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ zospt build $ZOSPTIMAGE -t cics_55_nodejs
8484
zowe profiles update cics-deploy cics --scope CICPY000 --bundle-directory /u/cicprov/mnt/CICPY000/bundles
8585
```
8686

87-
4. Deploy your Node.js application to the CICS region using the steps in [Deploying your first app](cdp-Deploying-your-first-app). For example:
87+
4. Deploy your Node.js application to the CICS region using the steps in [Deploying your first Node.js app](cdp-Deploying-your-first-nodejs-app). For example:
8888

8989
```console
9090
zowe cics-deploy push bundle --name Express --overwrite

docs/pages/cdp/cdp-Deploying-using-individual-actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ folder: cdp
99
toc: false
1010
---
1111

12-
The `zowe cics-deploy push bundle` command performs a set of actions to deploy applications to CICS, as can be seen in [Deploying your first app](cdp-cdp-Deploying-your-first-app). The main actions include:
12+
The `zowe cics-deploy push bundle` command performs a set of actions to deploy applications to CICS, as can be seen in [Deploying your first Node.js app](cdp-Deploying-your-first-nodejs-app). The main actions include:
1313

1414
* undeploy the old version of the CICS bundle in CICS
1515
* upload the new version of the CICS bundle to z/OS

docs/pages/cdp/cdp-Deploying-your-first-app.md renamed to docs/pages/cdp/cdp-Deploying-your-first-nodejs-app.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: Deploying your first app
2+
title: Deploying your first Node.js app
33
tags: [getting_started]
44
keywords:
5-
summary: "The following steps take you through deploying your first Node.js application to CICS."
5+
summary: "The following steps take you through deploying your first Node.js application to CICS using the Express Application Generator."
66
sidebar: cdp_sidebar
7-
permalink: cdp-Deploying-your-first-app.html
7+
permalink: cdp-Deploying-your-first-nodejs-app.html
88
folder: cdp
99
toc: false
1010
---
@@ -13,9 +13,7 @@ toc: false
1313

1414
2. Create Zowe CLI profiles for z/OSMF, SSH, and cics-deploy by following the steps in [Create Zowe CLI profiles](cdp-Create-Zowe-CLI-profiles).
1515

16-
3. Create a Node.js application.
17-
18-
For example, to create a Node.js application using the [Express Application Generator](https://expressjs.com/en/starter/generator.html):
16+
3. Create a Node.js application using the [Express Application Generator](https://expressjs.com/en/starter/generator.html):
1917

2018
```console
2119
npm install -g express-generator
@@ -29,15 +27,15 @@ toc: false
2927

3028
4. Package the Node.js application into a [CICS bundle](cdp-cics-bundles).
3129

32-
Make sure you are in the root directory of the application. Replace the value for `--port` with one that is available for use by the CICS region on z/OS.
30+
Make sure you are in the root directory of the application. Replace the value for the `--port` option with one that is available for use by the CICS region on z/OS.
3331

3432
```console
3533
zowe cics-deploy generate bundle --port 3000 --overwrite
3634
```
3735

3836
The output will show the directories and files created to form a CICS bundle. For example:
3937

40-
```console
38+
<pre class="messageText">
4139
define : NODEJSAPP "myexpressapp" with startscript "./bin/www"
4240
create : nodejsapps
4341
create : nodejsapps/myexpressapp.nodejsapp
@@ -46,11 +44,11 @@ toc: false
4644
create : META-INF
4745
create : META-INF/cics.xml
4846
CICS Bundle generated with bundleid "myexpressapp"
49-
```
47+
</pre>
5048

5149
5. Update the CICS Node.js application profile if your application requires environment variables to be set.
5250

53-
Edit the `.profile` file created in step 4, for example `nodejsapps/myexpressapp.profile`.
51+
Edit the `.profile` file created in step 4, for example `nodejsapps/myexpressapp.profile` to add the environment varaiables.
5452

5553
6. Deploy the CICS bundle into CICS.
5654

@@ -70,4 +68,6 @@ toc: false
7068

7169
### Results
7270

73-
The Node.js application is packaged into a CICS bundle on the workstation, uploaded to a directory on z/OS, and is running in CICS.
71+
The Node.js application is packaged into a CICS bundle on the workstation, uploaded to a directory on z/OS, and is running in CICS.
72+
73+
{% include tip.html content="[Best practice for developing Node.js applications](https://www.ibm.com/support/knowledgecenter/SSGMCP_5.5.0/applications/developing/node/best-practice.html) provides guidance on using environment variables and graceful application termination." %}

docs/pages/cdp/cdp-Home.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ folder: cdp
1010

1111
It provides a Node.js CICS deployment workflow for developers and CI/CD automation pipelines similar to that experienced when deploying Node.js applications to the cloud.
1212

13-
Before you start, and especially if you are not familiar with the world of z/OS, Zowe and CICS, it's a good idea to read about some of the key concepts, which include [Zowe](cdp-zowe-and-cli), [Zowe CLI profiles](cdp-zowe-profiles) and [CICS bundles](cdp-cics-bundles). If you're keen to get going quickly, you can jump right in and follow along with our tutorial on [Deploying your first app](cdp-Deploying-your-first-app).
13+
Before you start, and especially if you are not familiar with the world of z/OS, Zowe and CICS, it's a good idea to read about some of the key concepts, which include [Zowe](cdp-zowe-and-cli), [Zowe CLI profiles](cdp-zowe-profiles) and [CICS bundles](cdp-cics-bundles). If you're keen to get going quickly, you can jump right in and follow along with our tutorial on [Deploying your first Node.js app](cdp-Deploying-your-first-nodejs-app).
1414

1515
When everything has been [installed](cdp-Installation) and [you've created the Zowe CLI profiles](cdp-Create-Zowe-CLI-profiles), you can deploy a Node.js application from your workstation to CICS in two steps:
1616

0 commit comments

Comments
 (0)