My First “Proper” Node.js app
So over the weekend I cranked out my first proper node.js application. It’s a very simple frontend for controlling MPD (the music playing daemon). When I say simple, I mean just a start and stop button and a button to ask it to update its track database. It’s designed as a simple tool for G3 Radio to control the automated jukebox they run between their live DJ shows. More features are on the cards as per the wiki for the project, but at the moment it does the job.
It’s using express.js as the webservers and mpd-socket for talking to MPD. I have it load JSON files for its configs. I’m using the lovely everyauth middleware for auth against a flat file, which takes all the pain out of that process. It was pretty easy to write after I wrapped my brain around some annoying issues I was having.
Anyway, if you fancy seeing some bumbling attempt to make a node.js application and/or need something like what I’ve described, check it out on github: g3hal on g3radio @ github