markoshust's blog

Tue, 08/23/2016 - 12:04

The JavaScripter's Guide to Rational Development

Submitted by markoshust Tue, 08/23/2016 - 12:04

JavaScript Fatigue is a real thing, and there must be rules & processes in place to help prevent it from happening to you. These are my thoughts.

Learn, don't apply

Learn new libraries, npm packages, and development methodologies, but don't apply them to your current projects until best practices are formed. This might take some time, hence the next rule...

Sun, 08/14/2016 - 05:08

Create and deploy a NodeJS Express app with Docker

Submitted by markoshust Sun, 08/14/2016 - 05:08

I'll show you a stupid fast and simple way to create an express app with NodeJS, then deploy it with Docker. All you need is a simple text editor.

Install NodeJS & Docker

Install node with n:

npm i -g n
n latest

Install Docker by pulling out the appropriate build from

App setup

Let's now get our express app setup. Create a new directory and initialize your package.json file:

Fri, 08/12/2016 - 10:32

Creating a better reactive ReactJS JavaScript architecture

Submitted by markoshust Fri, 08/12/2016 - 10:32

After working through a few ReactJS JavaScript projects based in Meteor, what the ecosystem lacks is a really good architecture that will grow with you. Not only should it be adaptable and somewhat future-proof in a space that seems to be ever-changing at a rapid pace, but it lacks having an established organizational paradigm present, specifically when dealing with reactive, single-page applications.

Thu, 06/02/2016 - 13:58

Creating a multi-page form using MobX with Meteor & React

Submitted by markoshust Thu, 06/02/2016 - 13:58

Mobx is a really simple state manager that can be used really nicely with React, when you don't need the complexity of a Redux implementation.

Using Mobx is pretty straight-forward, however their getting started documentation uses stage-0 class properties, which are currently not supported with Meteor 1.3. The simple fix is to use ES6 formatting.

Mon, 02/01/2016 - 12:58

Creating a Custom Production Docker Image for Meteor 1.3

Submitted by markoshust Mon, 02/01/2016 - 12:58

Meteor 1.3 introduces custom package.json support, which allows you to use custom NPM packages within your Meteor app. This is great, because up to Meteor 1.2 you needed to use oddly formatted "NPM wrapper" packages.

This setup does include a slightly different build process though, as we need to install these custom NPM packages within our production Meteor app.

Mon, 11/23/2015 - 21:31

Setting Up Kubernetes Architecture on Google Cloud Platform

Submitted by markoshust Mon, 11/23/2015 - 21:31

I needed a quick way to kick off some Docker containers, and wanted some experience working with Kubernetes. I've been playing around with Docker for some time now, and wanted to test out a real deployment to Google Cloud Platform.

Architecture Overview

Here's a quick architecture diagram of the different pieces of the Kubernetes architecture.

Wed, 10/21/2015 - 23:38

Create a customer address attribute in Magento with a custom installer script

Submitted by markoshust Wed, 10/21/2015 - 23:38

Recently, I needed to create a custom customer address attribute, and needed a real simple way to do it. There are a lot of bloated examples online, but this is actually really easy.

First, create your module definition file. Note that we're putting our module in the local code pool because it's specific to just our one store.