SF Node November 2016 – Node, Redis, and You!

Posted by & filed under Node.js, Redis.

Here’s a recording of my talk from the November SFNode Meetup. In this talk I discuss using Redis with Node.js, how to use it for sharing state between multiple Node.js processes, and how to perform atomic operations using MULTI/EXEC and EVAL/EVALSHA. You can also View the Presentation directly if you don’t want to hear me… Read more »

Using authbind with Node.js

Posted by & filed under Linux, Node.js.

After recommending a method for dropping root privileges in a previous post, the community gave a bunch of recommendations for alternative methods of doing the same thing. Several people mentioned authbind, which is a simple utility for running apps and giving them permissions to listen to the privileged ports (< 1024). Here are some commands you can… Read more »

Node.js API Offline PDF Documentation

Posted by & filed under Node.js.

Do you often find yourself on a mobile device without internet, wishing you had access to the Node.js API Documentation? Then look no further! I have distilled a PDF of the Node.js Documentation (2.6MB) for your reading pleasure. It is the most current version as of right now (0.8.15). Basically, I just went to the… Read more »

Respond to JSON or XML requests from a Node.js API

Posted by & filed under Node.js.

Here’s an NPM Module I came up with which can convert a javascript object to XML, EasyXML. There’s a few of them out there already, but they lacked some configurability that I desired, specificially the ability to have pluralized/singular parent/children for array objects (a convention we use at work). The name of the module is… Read more »

Drop Root Privileges in Node.js

Posted by & filed under Node.js.

A common use for Node.js is to build web applications. Usually, we want these applications to listen on port 80. As a security precaution, most OS’s require root privileges for this to happen (e.g. OS X, Linux, BSD). To run a Node application this way, we need to do the following: sudo node server.js Then,… Read more »