Web Development with MongoDB and NodeJS - Second Edition

Build an interactive and full-featured web application from scratch using Node.js and MongoDB
Preview in Mapt

Web Development with MongoDB and NodeJS - Second Edition

Mithun Satheesh, Bruno Joseph D'mello, Jason Krol

2 customer reviews
Build an interactive and full-featured web application from scratch using Node.js and MongoDB

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 NodeJS - Second Edition Book Cover
Web Development with MongoDB and NodeJS - Second Edition
$ 31.99
$ 22.40
Node.js Web Development - Third Edition Book Cover
Node.js Web Development - Third Edition
$ 35.99
$ 25.20
Buy 2 for $35.00
Save $32.98
Add to Cart

Book Details

ISBN 139781785287527
Paperback300 pages

Book Description

Node.js and MongoDB are quickly becoming one of the most popular tech stacks for the web. Powered by Google's V8 engine, Node.js caters to easily building fast, scalable network applications while MongoDB is the perfect fit as a scalable, high-performance, open source NoSQL database solution. Using these two technologies together, web applications can be built quickly and easily and deployed to the cloud with very little difficulty.

The book will begin by introducing you to the groundwork needed to set up the development environment. Here, you will quickly run 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 for interaction with web apps. It then moves on to show you how to use controllers and view models to generate reusable code that will reduce development time. Toward the end of the book, we will cover tests to properly execute the code and some popular frameworks for developing web applications.

By the end of the book, you will have a running web application developed with MongoDB and Node.js along with it's 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 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
Using and understanding middleware
The configure module
Routers and controllers
Custom middleware
Handlebars as view engines
Summary
Chapter 5: Templating with Handlebars
Templating engines
Server-side and client-side templating
Views
Layouts
Partial views
The basics of Handlebars
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!
Summary
Chapter 10: Deploying with Cloud-Based Services
Cloud versus traditional hosting
An introduction to Git
Deploying your application
Summary
Chapter 11: Single-Page Applications with Popular Frontend Frameworks
What is a Single-Page Application?
Why use a frontend framework?
Frontend development tools
Testing and test-driven development
Summary
Chapter 12: Popular Node.js Web Frameworks
Koa
Meteor
Sails
Hapi
Flatiron
Summary

What You Will Learn

  • Configure your development environment to use Node.js and MongoDB
  • 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
  • Deploy the 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 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
Using and understanding middleware
The configure module
Routers and controllers
Custom middleware
Handlebars as view engines
Summary
Chapter 5: Templating with Handlebars
Templating engines
Server-side and client-side templating
Views
Layouts
Partial views
The basics of Handlebars
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!
Summary
Chapter 10: Deploying with Cloud-Based Services
Cloud versus traditional hosting
An introduction to Git
Deploying your application
Summary
Chapter 11: Single-Page Applications with Popular Frontend Frameworks
What is a Single-Page Application?
Why use a frontend framework?
Frontend development tools
Testing and test-driven development
Summary
Chapter 12: Popular Node.js Web Frameworks
Koa
Meteor
Sails
Hapi
Flatiron
Summary

Book Details

ISBN 139781785287527
Paperback300 pages
Read More
From 2 reviews

Read More Reviews

Recommended for You

Node.js Web Development - Third Edition Book Cover
Node.js Web Development - Third Edition
$ 35.99
$ 25.20
RESTful Web API Design with Node.js - Second Edition Book Cover
RESTful Web API Design with Node.js - Second Edition
$ 23.99
$ 16.80
Web Development with Bootstrap 4 and Angular 2 - Second Edition Book Cover
Web Development with Bootstrap 4 and Angular 2 - Second Edition
$ 39.99
$ 28.00
Node.js 6.x Blueprints Book Cover
Node.js 6.x Blueprints
$ 39.99
$ 28.00
MongoDB Cookbook - Second Edition Book Cover
MongoDB Cookbook - Second Edition
$ 35.99
$ 7.20
Learning Angular 2 Book Cover
Learning Angular 2
$ 31.99
$ 22.40