Book description
Takes you through creating your own API, building a full real-time web app, securing your Node systems, and practical applications of the latest Async and Await technologies. It maps out everything in a comprehensive, easy-to-follow package designed to get you up and running quickly.
About This Book
- Entirely project-based and practical
- Explains the "why" of Node.js features, not just the "how", providing with a deep understanding and enabling you to easily apply concepts in your own applications
- Covers the full range of technologies around Node.js – npm, MongoDB, version control with Git, and many more
Who This Book Is For
This book is for anyone looking to launch their own Node applications, switch careers, or freelance as a Node developer. You should have a basic understanding of JavaScript in order to follow this book. This book follows directly on from Learning Node.js Development, but more advanced readers can benefit from this book without having read the first part.
What You Will Learn
- Develop, test, and deploy real-world Node.js applications
- Master Node.js by building practical, working examples
- Use awesome third-party Node modules such as MongoDB, Mongoose, Socket.io, and Express
- Create real-time web applications
- Explore async and await in ES7
In Detail
Advanced Node.js Development is a practical, project-based book that provides you with all you need to progress as a Node.js developer. Node is a ubiquitous technology on the modern web, and an essential part of any web developer's toolkit. If you're looking to create real-world Node applications, or you want to switch careers or launch a side-project to generate some extra income, then you're in the right place. This book was written around a single goal: turning you into a professional Node developer capable of developing, testing, and deploying real-world production applications.
There's no better time to dive in. According to the 2018 Stack Overflow Survey, Node is in the top ten for back-end popularity and back-end salary. This book is built from the ground up around the latest version of Node.js (version 9.x.x). You'll be learning all the cutting-edge features available only in the latest software versions.
This book delivers advanced skills that you need to become a professional Node developer. Along this journey you'll create your own API, you'll build a full real-time web app and create projects that apply the latest Async and Await technologies. Andrew Mead maps everything out for you in this book so that you can learn how to build powerful Node.js projects in a comprehensive, easy-to-follow package designed to get you up and running quickly.
Style and approach
This book is entirely project-based. From the very beginning, you'll be programming every single app and completing various challenges designed to help test and reinforce what you've learned. There's no copying-and-pasting here. This book is about writing code and building projects.
Table of contents
- Title Page
- Copyright and Credits
- Packt Upsell
- Contributors
- Preface
- Getting Set Up
-
MongoDB, Mongoose, and REST APIs – Part 1
- Connecting to MongoDB and writing data
- The ObjectId
- Fetching data
- Setting up the repo
- Deleting documents
- Updating data
- Summary
-
MongoDB, Mongoose, and REST APIs – Part 2
- Setting up Mongoose
- Validators, Types, and Defaults
- Installing Postman
- Resource Creation Endpoint - POST /todos
-
Testing POST /todos
- Installing npm modules for testing POST /todos route
- Setting up the test files
- Test case: should not create todo with invalid body data
- Making commit for POST /todos route
- List Resources - GET /todos
- Testing GET /todos
- Summary
-
MongoDB, Mongoose, and REST APIs – Part 3
- Mongoose queries and ID validation
- Getting an individual resource – GET /todos/:id
- Testing GET /todos/:id
- Deploying the API to Heroku
- Postman environments
- Deleting a resource – DELETE /todos/:id
- Testing DELETE /todos/:id
- Updating a Resource - PATCH /todos/:id
- Testing PATCH /todos/:id
- Creating a Test database
- Summary
- Real-Time Web Apps with Socket.io
-
Generating newMessage and newLocationMessage
- Message generator and tests
- Event acknowledgements
- The message form and jQuery
- Geolocation
- Summary
- Styling Our Chat Page as a Web App
- The Join Page and Passing Room Data
-
ES7 classes
- Storing users with ES6 classes – Part I
- Wiring up user list
- Sending messages to room only
- New feature ideas
- Summary
- Async/Await Project Setup
- Other Books You May Enjoy
Product information
- Title: Advanced Node.js Development
- Author(s):
- Release date: March 2018
- Publisher(s): Packt Publishing
- ISBN: 9781788393935
You might also like
book
Node.js Web Development
Build scalable web applications using Node.js, Express.js, and the latest ECMAScript techniques, along with deploying applications …
book
Learning Node.js Development
A comprehensive, easy-to-follow guide to creating complete Node apps and understanding how to build, deploy, and …
book
Get Programming with Node.js
Get Programming with Node.js Get Programming with Node.js teaches you to write server-side code in JavaScript …
book
Node.js in Action, Second Edition
Node.js in Action, Second Edition is a thoroughly revised book based on the best-selling first edition. …