Difference between revisions of "ECE497 Notes on node.js"

From eLinux.org
Jump to: navigation, search
(Links: Added jslint)
(Links: Added socket.io)
Line 23: Line 23:
 
* [http://eleventyone.done.hu/OReilly.JavaScript.The.Good.Parts.May.2008.pdf JavaScript: The Good Parts].  This may be a pirated copy.  Better buy the real one.
 
* [http://eleventyone.done.hu/OReilly.JavaScript.The.Good.Parts.May.2008.pdf JavaScript: The Good Parts].  This may be a pirated copy.  Better buy the real one.
 
* Install '''jslint''' for node.js with <code>sudo npm -g install jslint</code>. Details [https://github.com/reid/node-jslint here].
 
* Install '''jslint''' for node.js with <code>sudo npm -g install jslint</code>. Details [https://github.com/reid/node-jslint here].
 +
 +
[http://codehenge.net/blog/2011/12/getting-started-with-node-js-and-socket-io-v0-7-part-2/ Socket.io] looks like a good way to pass data to the browser.
  
 
== Cloud9 ==
 
== Cloud9 ==

Revision as of 12:44, 20 April 2012


I'm working up and example on node.js. Here are some notes.

Links


Socket.io looks like a good way to pass data to the browser.

Cloud9

Somehow Cloud9 fits in with this.

I'm trying to get cloud9 running on the Beagle.

beagle$ opkg update
beagle$ opkg install nodejs (1min 6 sec)
beagle$ opkg install nodejs-dev (I don't know if this is needed.)

Something from Jason

beagle$ opkg install bonescript
beagle$ opkg install cloud9

Here’s how to get npm according to http://npmjs.org/

beagle$ opkg install curl (1m23)
beagle$ opkg install nodejs (1m6)
beagle$ curl http://npmjs.org/install.sh | sh (1m5)

It's said this will work on a current distribution of Angstrom, but it doesn't work for me.

beagle$ opkg install cloud9

non-Beagle

Here are instructions for a non-Beagle install from here.

host$ git clone git://github.com/ajaxorg/cloud9.git  (16 seconds)
host$ cd cloud9
host$ bin/cloud9.sh

then

host$ node ./bin/cloud9.js

gitting examples

git clone git://gitorious.org/~Jadon/beagleboard-validation/jadons-education.git (10s)