Cuttlepress

Blogging about Hacker School?

Day 26

In the first part of the day, I finished my post about Saturday’s spy games, as you undoubtedly saw. For the rest, I decided to learn about Node.js. (This time, through deploying on Heroku.)

I followed along with this book on writing a basic server, router, and event handlers in Node and this post on deploying Node to Heroku. It was definitely easier to understand after having seen how Flask does these things, which is a bit more automated — I’m glad I didn’t write my own router last week, and it was good that the choice of Jinja templating was made for me; I got bogged down at the end of today in reading about the seemingly-infinite possible templating engines for Node.

Here’s a tiny Heroku app, and here’s the code.