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!
What You'll Learn
• Manipulate data from the mongo console
• Use the Mongoskin and Mongoose MongoDB libraries
• Build REST API servers with Express and Hapi
• Deploy apps to Heroku and AWS
• Test services with Mocha, Expect and TravisCI
• Implement a third-party OAuth strategy with Everyauth
Web developers who have some familiarity with the basics of Node.js and want to learn how to use it to build apps in a professional environment.
Author(s): Azat Mardan
Edition: Paperback
Publisher: Apress
Year: 2018
Language: English
Commentary: True PDF
Pages: 505
Tags: Amazon Web Services; Databases; Security; JavaScript; Web Applications; Asynchronous Programming; NoSQL; MongoDB; Microservices; Docker; Deployment; REST API; Node.js; Web Servers
Front Matter ....Pages i-xxiv
Setting up Node.js and Other Essentials (Azat Mardan)....Pages 1-50
Using Express.js to Create Node.js Web Apps (Azat Mardan)....Pages 51-87
TDD and BDD for Node.js with Mocha (Azat Mardan)....Pages 89-111
Template Engines: Pug and Handlebars (Azat Mardan)....Pages 113-163
Persistence with MongoDB and Mongoskin (Azat Mardan)....Pages 165-204
Security and Auth in Node.js (Azat Mardan)....Pages 205-237
Boosting Node.js and MongoDB with Mongoose (Azat Mardan)....Pages 239-276
Building Node.js REST API Servers with Express.js and Hapi (Azat Mardan)....Pages 277-305
Real-Time Apps with WebSocket, Socket.IO, and DerbyJS (Azat Mardan)....Pages 307-330
Getting Node.js Apps Production Ready (Azat Mardan)....Pages 331-364
Deploying Node.js Apps (Azat Mardan)....Pages 365-388
Modularizing Your Code and Publishing Node.js Modules to npm (Azat Mardan)....Pages 389-399
Node HTTP/2 Servers (Azat Mardan)....Pages 401-416
Asynchronous Code in Node (Azat Mardan)....Pages 417-429
Node Microservices with Docker and AWS ECS (Azat Mardan)....Pages 431-472
Serverless Node with AWS Lambda (Azat Mardan)....Pages 473-494
Conclusion (Azat Mardan)....Pages 495-496
Back Matter ....Pages 497-505