Notes. Sketches. Ideas.

Viewing all posts relating to javascript.

So you just finished developing your node.js application and you’re ready for the world to use it. Congrats. Now it’s time to decide how to host the application. In many cases you would use a turnkey cloud solution like HerokuOpenShift, or AppFog. These are great services, but what if you want to keep this in-house or you don’t want to shell out the dough for each resource separately? These costs can really add up, even with a non-resource intensive application. Today I’m going to talk about a production-ready boilerplate stack for serving node.js applications from a bare Linux (Ubuntu distro) install.

Read full article »

connect-static2x is middleware identical to connect’s native static() middleware except for the fact that it enables support for image resizing on the fly. After an image is processed, it’s saved in the same directory as the original so the next request is cached.

Read full article »