⇤ ← Revision 1 as of 2014-04-30 07:42:48
Size: 1003
Comment: Initial Commit
|
Size: 1940
Comment: Added more information
|
Deletions are marked like this. | Additions are marked like this. |
Line 4: | Line 4: |
Node.js is an application server based off of Google's V8 Javascript Engine. Quite a few popular frameworks have popped up around Node.js such as AngularJS and Backbone.js. | Node.js is an application server based off of Google's V8 Javascript Engine. Quite a few popular frameworks have popped up around Node.js such as AngularJS and Backbone.js. |
Line 8: | Line 8: |
=== Request a port === Request a !ProxiedServer port on bog as described in FirewallRules |
|
Line 9: | Line 12: |
Make a directory for your website {{{ |
Make a directory for your website {{{#!highlight bash |
Line 16: | Line 19: |
Download Node.js {{{ |
Download Node.js {{{#!highlight bash |
Line 24: | Line 27: |
{{{ | {{{#!highlight bash |
Line 30: | Line 33: |
Cleanup Install Directory {{{ |
Cleanup Install Directory {{{#!highlight bash mcarberry@bog:~/public_web/sitename/node-v0.10.26$ cd ../nodejs/ mcarberry@bog:~/public_web/sitename/nodejs$ cp -r usr/local/* . mcarberry@bog:~/public_web/sitename/nodejs$ rm -r usr mcarberry@bog:~/public_web/sitename/nodejs$ cd .. mcarberry@bog:~/public_web/sitename$ rm -r node-v0.10.26/ }}} |
Line 33: | Line 42: |
=== Test Install === Change the port in this script (gleaned from [[http://howtonode.org/how-to-install-nodejs|here]]) to the one requested in the firewall rules and place it in ~/public_web/sitename/. {{{#!highlight js var http = require('http'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Hello Node.js\n'); }).listen(8124, "127.0.0.1"); console.log('Server running at http://127.0.0.1:8124/'); |
What is Node.js
- Node.js is an application server based off of Google's V8 Javascript Engine. Quite a few popular frameworks have popped up around Node.js such as AngularJS and Backbone.js.
How
Request a port
Request a ProxiedServer port on bog as described in FirewallRules
Get Node.js
- Make a directory for your website Download Node.js
Build Node.js
- Cleanup Install Directory
1 mcarberry@bog:~/public_web/sitename/node-v0.10.26$ cd ../nodejs/ 2 mcarberry@bog:~/public_web/sitename/nodejs$ cp -r usr/local/* . 3 mcarberry@bog:~/public_web/sitename/nodejs$ rm -r usr 4 mcarberry@bog:~/public_web/sitename/nodejs$ cd .. 5 mcarberry@bog:~/public_web/sitename$ rm -r node-v0.10.26/
Test Install
Change the port in this script (gleaned from here) to the one requested in the firewall rules and place it in ~/public_web/sitename/.