How To Code in Node.js

by David Landup, Marcus Sanatan

DescriptionTable of ContentsDetailsHashtagsReport an issue

Book Description

Node.js is a popular open-source runtime environment that can execute JavaScript outside of the browser. The Node runtime is commonly used for back-end web development, leveraging its asynchronous capabilities to create networking applications and web servers. Node is also a popular choice for building command line tools.

In this book, you will go through exercises to learn the basics of how to code in Node.js, gaining skills that apply equally to back-end and full stack development in the process.

By the end of this book you will be able to write programs that leverage Node's asynchronous code execution capabilities, complete with event emitters and listeners that will respond to user actions. Along the way you will learn how to debug Node applications using the built-in debugging utilities, as well as the Chrome browser's DevTools utilities. You will also learn how to write automated tests for your programs to ensure that any features that you add or change function as you expect.

This open book is licensed under a Creative Commons License (CC BY-NC-SA). You can download How To Code in Node.js ebook for free in PDF format (5.6 MB).

Table of Contents

How To Write and Run Your First Program in Node.js
How To Use the Node.js REPL
How To Use Node.js Modules with npm and package.json
How To Create a Node.js Module
How To Write Asynchronous Code in Node.js
How To Test a Node.js Module with Mocha and Assert
How To Create a Web Server in Node.js with the HTTP Module
Using Buffers in Node.js
Using Event Emitters in Node.js
How To Debug Node.js with the Built-In Debugger and Chrome DevTools
How To Launch Child Processes in Node.js
How To Work with Files using the fs Module in Node.js
How To Create an HTTP Client with Core HTTP in Node.js

Book Details

Computer Science
ISBN13 Digital
ISBN10 Digital
PDF Size
5.6 MB

Book Hashtags

Related Books

How To Code in React.js
This open book is an introduction to React that works from the foundations upward. Each chapter takes you a little deeper into the React ecosystem, building on your previous knowledge. Along the way, you'll learn how to maintain internal state, pass information between parts of an application, and explore different options for styling your applicat...
How To Code in Go
This book is designed to introduce you to writing programs with the Go programming language. You'll learn how to write useful tools and applications that can run on remote servers, or local Windows, macOS, and Linux systems for development. The topics that it covers include how to: - Install and set up a local Go development environment on Wind...
Learning Node.js
Node.js is an event-based, non-blocking, asynchronous I/O framework that uses Google's V8 JavaScript engine. It is used for developing applications that make heavy use of the ability to run JavaScript both on the client, as well as on server side and therefore benefit from the re-usability of code and the lack of context switching. It is open-sourc...
The Node.js Handbook
Node.js is built on top of the Google Chrome V8 JavaScript engine, and it's mainly used to create web servers - but it's not limited to that. The Node.js Handbook follows the 80/20 rule: learn in 20% of the time the 80% of a topic. The author find this approach gives a well-rounded overview....
How To Code in Python 3
Extremely versatile and popular among developers, Python is a good general-purpose language that can be used in a variety of applications. For those with an understanding of English, Python is a very humanreadable programming language, allowing for quick comprehension. Because Python supports multiple styles including scripting and object-oriented ...
Node.js Notes for Professionals
The Node.js Notes for Professionals book is compiled from Stack Overflow Documentation, the content is written by the beautiful people at Stack Overflow....