Category Archives: JavaScript

Event-Driven Programming with Node.js

Lately I have been playing a lot with Node.js and event-driven programming, and several ‘gotcha’ moments occurred. Below you’ll find of them. Event-Driven Programming: As the name implies, a programming paradigm where the flow of the program is governed by events. There is a main loop monitoring things and triggering the appropriate callbacks. Noje.js: Contrary […]

How to Deploy a Node.js App to Heroku

Below you’ll find the basic steps to deploy a Node.js (should apply to other languages and frameworks as well) on Heroku. It assumes you have Git and Heroku toolbelt installed. You can view a more detailed tutorial here. 1. Create the app locally (you can view a “Hello World” example here) 2. git init 3. […]