Web Development with MongoDB and Node - Third Edition

Use the two popular web development stacks, Node.js and MongoDB, to build full-featured web applications
Preview in Mapt

Web Development with MongoDB and Node - Third Edition

Bruno Joseph D'mello, Mithun Satheesh, Jason Krol

2 customer reviews
Use the two popular web development stacks, Node.js and MongoDB, to build full-featured web applications

Quick links: > What will you learn?> Table of content> Product reviews

Mapt Subscription
FREE
$29.99/m after trial
eBook
$22.40
RRP $31.99
Save 29%
Print + eBook
$39.99
RRP $39.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$22.40
$39.99
$29.99 p/m after trial
RRP $31.99
RRP $39.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Web Development with MongoDB and Node - Third Edition Book Cover
Web Development with MongoDB and Node - Third Edition
$ 31.99
$ 22.40
ASP.NET Core 2 High Performance - Second Edition Book Cover
ASP.NET Core 2 High Performance - Second Edition
$ 39.99
$ 28.00
Buy 2 for $35.00
Save $36.98
Add to Cart

Book Details

ISBN 139781788395083
Paperback330 pages

Book Description

Node.js builds fast, scalable network applications while MongoDB is the perfect fit as a high-performance, open source NoSQL database solution. The combination of these two technologies offers high performance and scalability and helps in building fast, scalable network applications. Together they provide the power for manage any form of data as well as speed of delivery.

This book will help you to get these two technologies working together to build web applications quickly and easily, with effortless deployment to the cloud. You will also learn about angular 4, which consumes pure JSON APOIs from a hapi server.

The book begins by setting up your development environment, running you through the steps necessary to get the main application server up-and-running. Then you will see how to use Node.js to connect to a MongoDB database and perform data manipulations.

From here on, the book will take you through integration with third-party tools to interact with web apps. You will see how to use controllers and view models to generate reusable code that will reduce development time. Toward the end, the book supplies tests to properly execute your code and take your skills to the next level with the most popular frameworks for developing web applications.

By the end of the book, you will have a running web application developed with MongoDB, Node.js, and some of the most powerful and popular frameworks.

Table of Contents

Chapter 1: Welcome to JavaScript in the Full Stack
A short introduction to Node.js
npm - the Node Package Manager
Sharing and reusing JavaScript
A simple server with Node.js
The NoSQL movement
A short introduction to MongoDB
Node.js and MongoDB in the wild
What to expect from this book
Summary
Chapter 2: Getting Up and Running
Installing Node.js
Installing MongoDB
Writing your first app
Adding the application code
Summary
Chapter 3: Node and MongoDB Basics
A JavaScript primer
The basics of Node.js
Installing modules using npm
The basics of MongoDB
Additional resources
Summary
Chapter 4: Introducing Express
Web application frameworks
What is Express.js?
Building a complete web application
Middlewares
The configure module
Routers and controllers
Handlebars as View engines
Summary
Chapter 5: Templating with Handlebars
Templating engines
Server-side and client-side templating
The basics of Handlebars
Views
Layouts
Partial views
Handlebars helpers
Rendering the views
Summary
Chapter 6: Controllers and View Models
Controllers
View models
Updating the home controller
Updating the image controller
Helpers for reusable code
Iterating on the UI
Summary
Chapter 7: Persisting Data with MongoDB
Using MongoDB with Node.js
Introducing Mongoose
Defining the schemas and models
Adding CRUD to the controllers
Iterating by adding an image removal capability
Refactoring and improvements
Summary
Chapter 8: Creating a RESTful API
What is an API?
What is a RESTful API?
Introducing Postman REST Client
Creating a basic API server
Responding to GET requests
Receiving data - POST and PUT requests
Removing data - DELETE
Consuming external APIs from Node.js
Summary
Chapter 9: Testing Your Code
The tools of the trade
Writing and running your first test
Testing the application
Spy and stub everything!
Automating everything
Summary
Chapter 10: Deploying with Cloud-Based Services
Cloud versus traditional hosting
An introduction to Git
Deploying your application
Summary
Chapter 11: Popular Node.js Web Frameworks
Koa
Meteor
Sails
Flatiron
total.js
LoopBack
Hapi
Summary
Chapter 12: Single Page Applications with Popular Frontend Frameworks
Why use a frontend framework?
What is a single page application?
Frontend development tools
Testing and test-driven development
Summary

What You Will Learn

  • Work with Node.js building blocks
  • Write and configure a web server using Node.js powered by the Express.js framework
  • Build dynamic HTML pages using the Handlebars template engine
  • Persist application data using MongoDB and Mongoose ODM
  • Test your code using automated testing tools such as the Mocha framework
  • Automate test cases using Gulp
  • Reduce your web development time by integrating third-party tools for web interaction.
  • Deploy a development environment to the cloud using services such as Heroku, Amazon Web Services, and Microsoft Azure
  • Explore single-page application frameworks to take your web applications to the next level

Authors

Table of Contents

Chapter 1: Welcome to JavaScript in the Full Stack
A short introduction to Node.js
npm - the Node Package Manager
Sharing and reusing JavaScript
A simple server with Node.js
The NoSQL movement
A short introduction to MongoDB
Node.js and MongoDB in the wild
What to expect from this book
Summary
Chapter 2: Getting Up and Running
Installing Node.js
Installing MongoDB
Writing your first app
Adding the application code
Summary
Chapter 3: Node and MongoDB Basics
A JavaScript primer
The basics of Node.js
Installing modules using npm
The basics of MongoDB
Additional resources
Summary
Chapter 4: Introducing Express
Web application frameworks
What is Express.js?
Building a complete web application
Middlewares
The configure module
Routers and controllers
Handlebars as View engines
Summary
Chapter 5: Templating with Handlebars
Templating engines
Server-side and client-side templating
The basics of Handlebars
Views
Layouts
Partial views
Handlebars helpers
Rendering the views
Summary
Chapter 6: Controllers and View Models
Controllers
View models
Updating the home controller
Updating the image controller
Helpers for reusable code
Iterating on the UI
Summary
Chapter 7: Persisting Data with MongoDB
Using MongoDB with Node.js
Introducing Mongoose
Defining the schemas and models
Adding CRUD to the controllers
Iterating by adding an image removal capability
Refactoring and improvements
Summary
Chapter 8: Creating a RESTful API
What is an API?
What is a RESTful API?
Introducing Postman REST Client
Creating a basic API server
Responding to GET requests
Receiving data - POST and PUT requests
Removing data - DELETE
Consuming external APIs from Node.js
Summary
Chapter 9: Testing Your Code
The tools of the trade
Writing and running your first test
Testing the application
Spy and stub everything!
Automating everything
Summary
Chapter 10: Deploying with Cloud-Based Services
Cloud versus traditional hosting
An introduction to Git
Deploying your application
Summary
Chapter 11: Popular Node.js Web Frameworks
Koa
Meteor
Sails
Flatiron
total.js
LoopBack
Hapi
Summary
Chapter 12: Single Page Applications with Popular Frontend Frameworks
Why use a frontend framework?
What is a single page application?
Frontend development tools
Testing and test-driven development
Summary

Book Details

ISBN 139781788395083
Paperback330 pages
Read More
From 2 reviews

Read More Reviews

Recommended for You

ASP.NET Core 2 High Performance - Second Edition Book Cover
ASP.NET Core 2 High Performance - Second Edition
$ 39.99
$ 28.00
Understanding Software Book Cover
Understanding Software
$ 23.99
$ 16.80
Neural Networks with R Book Cover
Neural Networks with R
$ 31.99
$ 22.40
Object-Oriented JavaScript - Second Edition Book Cover
Object-Oriented JavaScript - Second Edition
$ 29.99
$ 21.00
DevOps with Kubernetes Book Cover
DevOps with Kubernetes
$ 39.99
$ 28.00
Web Development with MongoDB and NodeJS - Second Edition Book Cover
Web Development with MongoDB and NodeJS - Second Edition
$ 31.99
$ 22.40