Tag: nodejs

Async Programming in Node.js

Callbacks, Promises, Async/Await (oh my!)CallbacksWhen Node.js was first introduced, it shipped a pattern of dealing with I/O that was very callback-heavy:var fs = require('fs')var file = './fileName'

Getting started with Babel and Webpack

You’ve heard about them, maybe you don’t know why you’d use them, maybe you just want to know how to get started with them. Read on!Why?Imagine you have written some JavaScript code, and you want to d

How I Made My Own Static-Site Generator

I had a fun time making my own static-site generator for a blog, and I thought this could serve as a practical introduction to Functional Reactive Programming (FRP).Getting startedThe idea I had when

Creating a REST API in node.js

Getting started with making web APIs can be confusing, even overwhelming at first. I’d like to share my process for creating APIs in Node.js.The serverFirst let’s create a package.json and add a depen