Skip to content

Commit 618987d

Browse files
more polish
1 parent b14cac2 commit 618987d

3 files changed

Lines changed: 10 additions & 12 deletions

File tree

content/learning-paths/servers-and-cloud-computing/node-js-gcp/baseline.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,18 @@ You should see an output similar to:
2828
Hello from Node.js
2929
undefined
3030
```
31-
This confirms that Node.js can execute JavaScript commands successfully.
31+
This confirms that Node.js can execute JavaScript commands successfully. Please now press "Ctrl-D" to exit node.
3232

3333
### 2. Test a Basic HTTP Server
3434
You can now create a small HTTP server to validate that Node.js can handle web requests.
3535

36-
Create `app.js`. For example, you can type "vi app.js" in the SSH shell and then insert the following code:
36+
Create `app.js`. For example, you can type "vi app.js" in the SSH shell:
37+
38+
```console
39+
vi app.js
40+
```
41+
42+
...and then insert the following code:
3743

3844
```javascript
3945
const http = require('http');
@@ -50,7 +56,7 @@ server.listen(80, '0.0.0.0', () => {
5056
- This server listens on port 80.
5157
- Binding to 0.0.0.0 allows connections from any IP, not just localhost.
5258

53-
Run the server in the background:
59+
Save the code and exit your editor. Next, we run the HTTP server in the background via sudo:
5460

5561
```console
5662
export MY_NODE=`which node`

content/learning-paths/servers-and-cloud-computing/node-js-gcp/installation.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,6 @@ export NVM_DIR="$HOME/.nvm"
2424
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
2525
```
2626

27-
You can also paste the above commands into ".bashrc" file in your home directory within your terminal shell:
28-
29-
```console
30-
echo 'export NVM_DIR="$HOME/.nvm"' >> ~/.bashrc
31-
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc
32-
echo '[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion' >> ~/.bashrc
33-
```
34-
3527
You should be able to confirm that NVM is available by typing:
3628

3729
```console

content/learning-paths/servers-and-cloud-computing/node-js-gcp/instance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ To create a virtual machine based on the C4A instance type:
2727
![Create a Google Axion C4A Arm virtual machine in the Google Cloud Console with c4a-standard-4 selected alt-text#center](images/gcp-vm.png "Creating a Google Axion C4A Arm virtual machine in Google Cloud Console")
2828

2929

30-
- Under **OS and Storage**, select **Change**, then choose an Arm64-based OS image. For this Learning Path, use **SUSE Linux Enterprise Server**. Pick the preferred version for your Operating System. Ensure you select the **Arm image** variant. Click **Select**.
30+
- Under **OS and Storage**, select **Change**, then choose an Arm64-based OS image. For this Learning Path, use **SUSE Linux Enterprise Server**. Select "Pay As You Go" for the license type. Click **Select**.
3131
- Under **Networking**, enable **Allow HTTP traffic**.
3232
- Click **Create** to launch the instance.
3333
- Once created, you should see a "SSH" option to the right in your list of VM instances. Click on this to launch a SSH shell into your VM instance:

0 commit comments

Comments
 (0)