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
Last revisionBoth sides next revision
nodejs_on_metaarray [2022/01/21 01:19] – remove my username peteyboynodejs_on_metaarray [2022/12/19 23:04] – format image peteyboy
Line 3: Line 3:
  
  
-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' exmaple 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, World' example tailored for the metaarray:
   - go to a project folder in your user folder, say <tt>~/projects/nodejstest</tt>   - 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''
Line 22: Line 22:
         });</code>          });</code> 
   - run the server with ''node app.js''   - run the server with ''node app.js''
-  - check it out with a browser pointed to your metaarray website but at your UID port, for example ''http://me.sdf.org:30099'' +  - OMG that was so easy, right? Check it out with a browser pointed to your metaarray website but at your UID port, for example ''http://me.sdf.org:30099'' 
-    * it should look like {{:screen_shot_hello_node.png?300x300|browser showing 'Hello World, this is node'} } +    * it should look like the image to the right {{  :screen_shot_hello_node.png?400|browser showing 'Hello World, this is node'  }}
   - quit the server with ''ctl-c''   - quit the server with ''ctl-c''
 +  - knock yourself out doing more cool stuff with javascript on the server!
nodejs_on_metaarray.txt · Last modified: 2023/01/26 00:16 by peteyboy