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.
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 SinglePage application frameworks to take your web applications to the next level
Who this book is for
This book is designed for JavaScript developers of any skill level that want to get up and running using Node.js and MongoDB to build full-featured web applications. A basic understanding of JavaScript and HTML is the only requirement for this book.
Table of Contents
Welcome to JavaScript in full stack
Getting up and running
Node and Mongo Basics
Writing an express.js server
Dynamic HTML with Handlebars
Controllers and view models
Persisting Data with MongoDB
Creating a restful API
Testing your code
Deploying with cloud based services
Single page applications with popular frontend frameworks