whird.jpope.org cover image

Simple Nodejs Express Server

Just for fun (and because I mentioned to @jonkulp that I would), here is a quick (plus slightly extended) write up on how to spin up a simple nodejs server with express.js. First, install nodejs and npm, it's bundled together in ArchLinux, not sure about other distros. In Debian, it looks like they are split. Also, in Debian, they have decided to rename the node executable to nodejs, which breaks some things. This is due to a package for a Ham Radio program being called node. If you don't have this node installed, you can "fix" nodejs by creating a symlink. $ sudo ln -s /usr/bin/nodejs /usr/bin/node At the time of this writing, here are the versions that I have installed: $ node -v v0.10.22 $ npm -v 1.3.14 Once these are installed, we'll install express globally with: $ sudo npm install -g express Next we need a directory where you would like to run the server so, create a directory where ever and navigate into it. $ mkdir express_server $ cd express_server Express has a built in function to set things up for…

Pump

Seeing that I've had a whole string of StatusNet posts, I figure that it's time to start some pump.io posts. I've had a pump running since mid January and it's been much fun watching the early development happen. As of this writing, the current stable version (which Evan has his various pumps running) is v0.2.1. My pump is running git master because I like to live on the edge. Although, for the most part, it has been mostly painless. I have tried my damnedest to put any issues that I come across on the issue list. With this post, I will be going through my setup. I should note that my setup may not work for everyone, YMMV. I am running my pump on my mostly recently unused EeePC 1000HE w/2GB RAM which is running good ol' ArchLinux. Seeing that my tablet has become my goto mobile device (and even got a keyboard dock for it as well), my netbook just seems bulky and underpowered anymore. (bulky? what?) It was time to find something else for it to do. Enter the pump. Before starting the rest, here are the versions…