Book Image

Learning Node.js Development

By : Andrew Mead
Book Image

Learning Node.js Development

By: Andrew Mead

Overview of this book

Learning Node.js Development is a practical, project-based book that provides you with all you need to get started as a Node.js developer. Node is a ubiquitous technology on the modern web, and an essential part of any web developers' toolkit. If you are looking to create real-world Node applications, or you want to switch careers or launch a side project to generate some extra income, then you're in the right place. This book has been written around a single goal—turning you into a professional Node developer capable of developing, testing, and deploying real-world production applications. Learning Node.js Development is built from the ground up around the latest version of Node.js (version 9.x.x). You'll be learning all the cutting-edge features available only in the latest software versions. This book cuts through the mass of information available around Node and delivers the essential skills that you need to become a Node developer. It takes you through creating complete apps and understanding how to build, deploy, and test your own Node apps. It maps out everything in a comprehensive, easy-to-follow package designed to get you up and running quickly.
Table of Contents (13 chapters)

What this book covers

Chapter 1, Getting Set Up, talks about what Node is and why you want to use it. In this chapter, you'll learn Node installation and by the end of the chapter, you'll be able to run your first Node application.

Chapter 2, Node Fundamentals - Part 1, talks about building Node applications. The Node Fundamentals topic has been divided into 3 parts. Part 1 of this topic includes module basics, requiring own files, and third-party NPM modules.

Chapter 3, Node Fundamentals - Part 2, continues our discussion on some more Node fundamentals. This chapter explores yargs, JSON, the addNote function, and refactor, moving functionality into individual functions and testing the functionality.

Chapter 4, Node Fundamentals - Part 3, includes things such as read and write from the file system. We'll look into advanced yargs configuration, debugging broken apps, and some new ES6 functions.

Chapter 5, Basics of Asynchronous Programming in Node.js, covers basic concepts, terms, and technologies related to the async programming, making it super-practical and using it in our weather application.

Chapter 6, Callbacks in Asynchronous Programming, is the second part of async programming in Node. We'll look into callbacks, HTTPS requests, and error handling inside of our callback functions. We'll also look into the forecast API and fetching real-time weather data for our address.

Chapter 7, Promises in Asynchronous Programming, is the third and last part of async programming in Node. This chapter focuses on Promises, how it works, why they are useful, and so on. At the end of this chapter, we'll use Promises in our weather app.

Chapter 8, Web Servers in Node, talks about Node web servers and integrating version control into Node applications. We'll also introduce a framework called Express, one of the most important NPM libraries.

Chapter 9, Deploying Applications to Web, talks about deploying the applications to the Web. We'll be using Git, GitHub, and deploy our live app to the Web using these two services.

Chapter 10, Testing the Node Applications- Part 1, talks about how we can test our code to make sure it is working as expected. We'll work on setting up for testing and then writing our test cases. We'll look into the basic testing framework and asynchronous testing.

Chapter 11, Testing the Node Application - Part 2, continues our journey of testing Node applications. In this chapter, we'll work on testing the Express applications and look into some advanced methods of testing.