Node JS Notes
Getting Node Setup
Download the latest package from Node JS
tar -vxzf node-v0.2.6.tar.gz
cd node-v0.2.6
./configure make make install
Package Manager
Hosting
Express
npm install express npm install connect npm install jade
Get the express samples to see how things work
git clone https://github.com/visionmedia/express.git
If you follow the hello world example, you might see the following error
node.js:63
throw e;
^
Error: session requires the "secret" option string for security
at Object.sessionSetup (/usr/local/lib/node/.npm/connect/0.5.5/package/lib/connect/middleware/session.js:45:13)
at Server.
FIX: add the { secret: 'some random text' }
to the app.js configure section
app.use(express.session({ secret: 'some random text' }));
Links
Webmentions
These are webmentions via the IndieWeb and webmention.io. Mention this post from your site: