User Tools

Site Tools


nodejs_on_metaarray

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
nodejs_on_metaarray [2022/12/19 23:04] – format image peteyboynodejs_on_metaarray [2024/09/06 06:02] (current) – ld’ hc9
Line 1: Line 1:
- 
 ====== Setting up a simple Node.js Server  ====== ====== Setting up a simple Node.js Server  ======
  
- +You can try Node.js by using your [[meta_port_allocation |Port Allocation]] on the [[metaarray |The MetaArray]] to run your own Node.js server. What follows is a bare-bones Hello, World’ example tailored for the metaarray: 
-You can try Node.js by using your [[meta_port_allocation|Port Allocation]] on the [[metaarray|The MetaArray]] to run your own Node.js server. What follows is a bare-bones 'Hello, Worldexample tailored for the metaarray: +  - go to a project folder in your user folder, say ''~/projects/nodejstest''
-  - go to a project folder in your user folder, say <tt>~/projects/nodejstest</tt>+
   - use your favorite editor to open a new file called ''app.js''   - use your favorite editor to open a new file called ''app.js''
     *paste the following code into the file: <code>const http = require('http');     *paste the following code into the file: <code>const http = require('http');
Line 26: Line 24:
   - quit the server with ''ctl-c''   - quit the server with ''ctl-c''
   - knock yourself out doing more cool stuff with javascript on the server!   - knock yourself out doing more cool stuff with javascript on the server!
 +
nodejs_on_metaarray.1671491046.txt.gz · Last modified: 2022/12/19 23:04 by peteyboy