Learn how to build and deploy a full web app using Node.js and Express from scratch
Add MongoDB storage and user login with OAuth to your Node.js project
Deploy a Node.js app using Docker containers or serverless AWS Lambda
Understand modern async JavaScript patterns like async/await in a real project context
No install needed to read, browse chapters directly on GitHub. To run code samples, install Node.js and MongoDB locally. Each chapter folder contains standalone examples.
This repository contains the manuscript and code for "Practical Node.js, 2nd Edition," a book published by Apress in 2018. The book is available to read free in this repository as a "work-in-open" project: the drafts are public, but a professionally edited and typeset version is sold through Apress and Amazon. The author asks readers who find the material useful to purchase the published version to support continued work. The book covers building real web applications with Node.js, a platform that runs JavaScript on the server side rather than in a browser. The second edition spans 16 chapters. Early chapters cover setting up Node.js, using the Express.js web framework to create web apps, writing automated tests with Mocha, and using template engines like Pug and Handlebars to generate HTML pages. Later chapters cover storing data with MongoDB, handling user sessions and third-party login via OAuth, building REST APIs with Express.js and Hapi, and adding real-time communication with WebSocket and Socket.IO. Four chapters are new to the second edition: one on HTTP/2 servers, one on writing asynchronous code using modern JavaScript patterns like async/await, one on packaging and deploying Node.js apps in containers using Docker and AWS ECS, and one on serverless deployment with AWS Lambda. The first edition from 2014 is preserved as a tagged release in the same repository for reference. The author also offers related training: live corporate and public workshops, and self-paced online courses through Node University. The Kickstarter campaign that funded the second edition reached its goal within three days.
← azat-co on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.