2 Getting started with Node.js

This chapter covers

  • Installing Node.js and creating a project
  • Creating a command-line application
  • Creating a reusable code library
  • Creating a simple web server with a REST API
  • Reviewing a primer on asynchronous programming and promises

In this book we’ll use Node.js often, and this chapter will help you become productive with it. You’ll learn fundamentals of creating projects and applications with Node.js. We’ll only cover the basics, but we’ll cover enough for you to use Node.js for the rest of the book.

Toward the end of this chapter there’s a primer on asynchronous programming and promises. This is more advanced, but you’ll need it because Node.js and JavaScript in general rely heavily on the use of asynchronous ...

Get Data Wrangling with JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.