Skip to content

Commit c3aecf9

Browse files
committed
Continue tech review of Node.js on Google Axion
1 parent 1c25a17 commit c3aecf9

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

  • content/learning-paths/servers-and-cloud-computing/node-js-gcp

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

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,7 @@ This confirms that Node.js can execute JavaScript commands successfully. Pleas
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:
37-
38-
```console
39-
vi app.js
40-
```
41-
42-
...and then insert the following code:
36+
Use a text editor to create a file named `app.js` with the code below:
4337

4438
```javascript
4539
const http = require('http');
@@ -56,7 +50,7 @@ server.listen(80, '0.0.0.0', () => {
5650
- This server listens on port 80.
5751
- Binding to 0.0.0.0 allows connections from any IP, not just localhost.
5852

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

6155
```console
6256
export MY_NODE=`which node`

0 commit comments

Comments
 (0)