Book Description
Learn how to build a wide range of scalable real-world web applications using a professional development toolkit. If you already know the basics of Node.js, now is the time to discover how to bring it to production level by leveraging its vast ecosystem of packages.With this book, you'll work with a varied collection of standards and frameworks and see how all those pieces fit together.
Practical Node.js takes you from installing all the necessary modules to writing full-stack web applications. You'll harness the power of the Express.js and Hapi frameworks, the MongoDB database with Mongoskin and Mongoose. You'll also work with Pug and Handlebars template engines, Stylus and LESS CSS lanaguages, OAuth and Everyauth libraries, and the Socket.IO and Derby libraries, and everything in between.
This exciting second edition is fully updated for ES6/ES2015 and also covers how to deploy to Heroku and AWS, daemonize apps, and write REST APIs. You'll build full-stack real-world Node.js apps from scratch, and also discover how to write your own Node.js modules and publish them on NPM. Fully supported by a continuously updated source code repository on GitHub and with full-color code examples, learn what you can do with Node.js and how far you can take it!
This open book is licensed under a Creative Commons License (CC BY). Free download in PDF format is not available. You can read Practical Node.js book online for free.
Table of Contents
Chapter 1
Setting up Node.js and Other Essentials
Chapter 2
Using Express.js 4 to Create Node.js Web Apps
Chapter 3
TDD and BDD for Node.js with Mocha
Chapter 4
Template Engines: Pug and Handlebars
Chapter 5
Persistence with MongoDB and Mongoskin
Chapter 6
Using Sessions and OAuth to Authorize and Authenticate Users in Node.js Apps
Chapter 7
Boosting Node.js and MongoDB with Mongoose
Chapter 8
Building Node.js REST API Servers with Express.js and Hapi
Chapter 9
Real-Time Apps with WebSocket, Socket.IO, and DerbyJS
Chapter 10
Getting Node.js Apps Production Ready
Chapter 11
Deploying Node.js Apps
Chapter 12
Publishing Node.js Modules and Contributing to Open Source
Chapter 13
Node HTTP/2 Servers
Chapter 14
Asynchronous Code in Node
Chapter 15
Node Microservices with Docker and AWS ECS
Chapter 16
Serverless Node with AWS Lambda