posts

A journaling of solutions to interesting problems I've encountered in the modern web stack.
Develop That NodeJs App Inside a Docker Container
Mirroring developer environments across a team is a good practice to minimize “worked on my system” type bugs. A development environment that runs the app from within a Docker container can virtually eliminate this class of bugs
30 August 2018
Deploy That NodeJs App to a Docker Container
This walk-through will demonstrate a basic Node.js Docker configuration that will allow for easy, fast, and deterministic deployments. Web app hosting services e.g. Elastic Beanstalk (EB) that support deployments of Docker containers grant developers…
10 July 2018
Selector Pattern: Painless Redux Store Destructuring
Redux is awesome for how it explicitly defines all possible state transformations (actions) and how those transformations mutate the store (reducers) — but it doesn’t prescribe a way for components to query the store.
4 December 2017
A Webpack built, Elastic Beanstalk deployment leveraging AWS S3
Web applications typically begin their life serving their own static assets (JavaScript, CSS, etc) to the browser. An alternative to this strategy would have these assets be hosted by an asset hosting service.
5 September 2017
jest.fn() All the Things
Unit test coverage grants confidence that code logic is correct(and serves as great developer documentation!). Test design can benefit from the mocking of both inconsequential, long-running processes and interactions with state external to the code under test.
31 May 2017
NPM Script Error: <dependency> command not found
Older versions of NPM possibly handle the symbol linking associated with npm install a bit differently than modern versions. A consequence of this can manifest in the loss of some functionality of the package.json scripts property.
26 March 2017
An Insufficient Memory Deployment Failure
If one deploys a Node.js application to an Amazon Web Services Elastic Beanstalk instance that does not provide enough RAM for the application’s npm install, the deploy may fail without any clear indication of the problem. One can indirectly determine if
29 January 2017
Sequelize It!
This post covers the configuring of a Node.js project to a PostgreSQL database with the popular ORM Sequelize. Also, the ease of initializing a database schema with Sequelize’s CLI, including the use of the associated migration framework is demonstrated.
7 October 2016
Implementing the Segment Analytics Platform in an Angular SPA
The tools made available by Segment provide powerful web UIs and simple yet sophisticated integration APIs that allow for powerful user analytics via the management of various 3rd-party app analytics platforms. The challenge…