Use npm shrinkwrap to manage dependencies in your node app

The reason to use npm’s shrinkwrap feature is that, while you can fix the versions of your direct dependencies in your package.json, you can’t fix the versions of their dependencies, which may be quite loosely specified. This means that if you or someone else rebuilds the image at some future time, you can’t guarantee (without using shrinkwrap) that it won’t pull down a different version of some indirect dependency, breaking your app. This seems to happen to me much more often than one might expect, so I advocate using shrinkwrap. If you are familiar with ruby’s excellent bundler dependency manager, npm-shrinkwrap.json is much like Gemfile.lock.

Source: Lessons from Building a Node App in Docker

Dependencies in the node ecosystem can be a real pain in the ass. Some relief can be had by using npm shrinkwrap to manage the dependencies of your dependencies.

@niftylettuce – Automated Continuous Integration Setup for Graceful and Zero-Downtime Node App Deployment using GitHub, PM2, Digital Ocean, and SemaphoreCI

How-to set up automated continuous integration and deployment setup with graceful and zero-downtime restarts for Node.js using GitHub, PM2, Digital Ocean, and SemaphoreCI.

Source: @niftylettuce – Automated Continuous Integration Setup for Graceful and Zero-Downtime Node App Deployment using GitHub, PM2, Digital Ocean, and SemaphoreCI

Microsoft’s Visual Studio Code for Windows, OS X and Linux hits 1.0

Visual Studio Code (VS Code), Microsoft’s cross-platform text editor for developers, hit version 1.0 today after about a year in beta. The company says more than 500,000 developers now actively use the application each month.

The launch of VS Code came as quite a surprise when the company first announced it at its Build developer conference last year. Microsoft, after all, had never offered a code editor for OS X and Linux before — and definitely not under the Visual Studio brand.

When Microsoft launched the application, it was still missing extensibility and the code for VS Code wasn’t open source yet, either. Since then, the company fixed both of these issues.

Source: Microsoft’s Visual Studio Code for Windows, OS X and Linux hits 1.0

And you can even get the source on Github. This is part of Microsoft’s push into the open source world as it courts a wider range of developers.

linkedin/rest.li: Rest.li is a REST+JSON framework for building robust, scalable service architectures using dynamic discovery and simple asynchronous APIs.

Rest.li is an open source REST framework for building robust, scalable RESTful architectures using type-safe bindings and asynchronous, non-blocking IO. Rest.li fills a niche for applying RESTful principals at scale with an end-to-end developer workflow for buildings REST APIs that promotes clean REST practices, uniform interface design and consistent data modeling.

https://github.com/linkedin/rest.li

From the folks at LinkedIn. I found it interesting that many tech based companies are open sourcing their architectures. These systems are like today’s assembly lines, everyone has one, each is a little different, and all produce.