Running BabelJS/ES2015 Apps in Azure App Service

BabelJS is a really cool in-line transpiler. You can use it as a ‘require-hook’ to make your Node.js apps use the full ES6 syntax without the v8 javascript interpreter issues around ES6 support. For instance, I have a server.js file that looks like this: My app.js file contains regular ES6 code, like this: I’ve also…

Logging to Splunk with Winston

I have to admit, I’ve still got a soft spot for Splunk in my heart. I spent several years developing apps there and it is still my go-to logging platform. Recently, I’ve been playing with ExpressJS and using Winston as my logger of choice, together with express-winston to hook the two pieces up. My projects…

Node, MVC Controllers and ECMAScript 2015

Long time readers of my blog will remember that I previously covered Node and MVC applications in a short tutorial series. At that point, I wrote the controllers and loader in ECMAScript 5.1. The code to load the controllers was this: The typical controller looked like this: That’s a lot of boilerplate code and it’s…

Creating a Secure (TLS) Node.js MVC Application

Recently, I investigated node.js and came up with a pretty solid pattern or starting project for an MVC style application. There was one problem – it used an insecure transport (normal plaintext HTTP). The world is moving towards universal encryption and I contend that this should be the default case even when developing. You can…

Web API – Node Style

In the last four articles I’ve been doing a study of what it takes to do a node app. For those who are starting here, I had a list of requirements: I need to be able to run a small web server I need to be able to handle templated views with server-side code I…

MVC Architecture – Node Style

In the last three articles I’ve been doing a study of what it takes to do a node app. For those who are starting here, I had a list of requirements: I need to be able to run a small web server I need to be able to handle templated views with server-side code I…

Social Authentication – Node Style

I’m currently in the middle of a Node investigation. Here was the list of my requirements: I need to be able to run a small web server I need to be able to handle templated views with server-side code I need to be able to do social authentication I need to be able to use…