Get Programming with Node.js
Jonathan Wexler
  • MEAP began July 2017
  • Publication in Spring 2018 (estimated)
  • ISBN 9781617294747
  • 350 pages (estimated)
  • printed in black & white

Get Programming with Node.js teaches you to write server-side code in JavaScript using Node.js. In 34 fast-paced, fun, and practical lessons, you'll discover how to extend your existing JavaScript skills to write back-end code for your web applications. After setting up the perfect developer environment, you'll get straight into developing your first app using Express.js, a lightweight MVC-style web framework. You'll learn all-important security and authentication features, as well as database tasks. When your basic app is completed, you'll add extra functionality like chat before deploying the finished product. Thanks to the easy-to-digest examples and exercises, you'll be coding with Node.js like a pro in no time!

"...easy to read style and lots of short cuts I didn't know about that makes coding a lot quicker & convenient..."

~ Aindriu Mac Giolla Eoin

"Takes you from knowing nothing to serving web pages using Node.js."

~ Roger Sperberg

"If you are a web developer and want to get into Node.js, this book is a very good option for you."

~ Vinicius Miana Bezerra

Table of Contents detailed table of contents

Unit 0: Getting Set Up

Lesson 0 Setup Node.js and the JavaScript Engine

0.1 What you’re going to learn

0.2 Understanding Node.js

0.3 The minimally qualified reader

0.4 Why learn to develop in Node.js?

0.5 Preparing yourself for this book

0.6 Summary

Lesson 1 Setting up your environment

1.1 Installing Node.js

1.2 Installing a text editor

1.3 Working with the Node.js REPL in terminal

1.4 Summary

Lesson 2 Running a Node.js application

2.1 Creating a JavaScript file

2.2 Running your JavaScript file with Node.js

2.3 Running Individual JavaScript Commands

2.4 Summary

2.5 Answers to Quick Check Exercises

Unit 1: Getting Started with Node.js

Lesson 3 Setting up a Node.js application

3.1 Creating a Node.js module

3.2 Running npm commands

3.3 Initializing a Node.js application

3.4 Summary

3.5 Answers to Quick Check Exercises

Lesson 4 Building a simple web server in Node.js

4.1 Understanding web servers

4.2 Initialize the application with npm

4.3 Code the application

4.4 Run the application

4.5 Summary

4.6 Answers to Quick Check Exercises

Lesson 5 Handling incoming data

5.1 Reworking your server code

5.2 Analyzing request data

5.3 Adding Routes to a Web Application

5.4 Summary

5.5 Answers to Quick Check Exercises

Lesson 6 Writing better routes and serving external files

6.1 Serving static files with the fs module

6.2 Serving assets

6.3 Modularizing your routes

6.4 Summary

6.5 Answers to Quick Check Exercises

Lesson 7 Capstone: A static web application

7.1 Initializing the application

7.2 Application directory structure

7.3 Creating main.js and router.js

7.4 Creating views

7.5 Adding Assets

7.6 Creating routes

7.7 Handle file reading errors

7.8 Summary

Unit 2: Easier Web Development with Express

Lesson 8 Setting up an app with Express.js

Lesson 9 Routing in Express.js

Lesson 10 Connecting Views with templates

Lesson 11 Configurations and error handling

Lesson 12 Capstone: Enhancing the Confetti Cuisine site with Express.js

Unit 3 Database connections and modeling

Lesson 13 Understanding models within MVC

Lesson 14 Connecting a MongoDB database to your app

Lesson 15 Setting up a schema

Lesson 16 Capstone: Save user subscriptions and course listings as models

Unit 4 CRUD and User Authentication

Lesson 17 Create a user model

Lesson 18 Building a sign-up form

Lesson 19 Adding security and authentication

Lesson 20 Adding Security layer over the database

Lesson 21 Capstone Add user login and authentication to your app

Unit 5 Building an API

Lesson 22 Breaking down an API

Lesson 23 Build a REST API

Lesson 24 Adding security to your API

Lesson 25 Capstone: Add an API to your app

Unit 6 Adding Chat functionality

Lesson 26 Working with Socket.io

Lesson 27 Build a chat system

Lesson 28 Improve database efficiency

Lesson 29 Capstone: Add chat functionality to your app

Unit 7 Deploying your app

Lesson 30 Getting set up

Lesson 31 Deploy your application

Lesson 32 Debug your app in production

Lesson 33 Capstone Deploy your app

About the Technology

Why use several languages for a web application when you only need one? Node.js is a server-side platform and runtime that you can use to build full stack web applications entirely in JavaScript! Node supports scalable, high-performance applications with easy asynchronous communication, an event-driven mindset, and a vast ecosystem of tools and modules. Node can handle the real-time response rates that games, chat sites, and statistical services need, and you get to program everything in JavaScript.

What's inside

  • Setting up your Node development environment
  • Creating a simple web server
  • Working with Express.js
  • Saving application data to a MongoDB database
  • Building a complete REST API
  • Deploying the finished product
  • Debugging your app in production order

About the reader

Written for developers who know HTML, CSS, and JavaScript. No prior experience with Node.js is required.

About the author

Jonathan Wexler has an extensive background in computer theory and web development. Having curated a Node.js curriculum as the academic director and lead developer for The New York Code and Design Academy, Jonathan has instructed multiple intensive programs in full stack development and currently works as a senior developer for Bloomberg LP.


Manning Early Access Program (MEAP) Read chapters as they are written, get the finished eBook as soon as it’s ready, and receive the pBook long before it's in bookstores.
Buy
MEAP combo $44.99 pBook + eBook + liveBook
MEAP eBook $35.99 pdf + ePub + kindle + liveBook

FREE domestic shipping on three or more pBooks