Book Image

Web Development with Node.JS and MongoDB [Video]

By : Andrew Marcinkevičius
Book Image

Web Development with Node.JS and MongoDB [Video]

By: Andrew Marcinkevičius

Overview of this book

<p>Web development technology moves at a very fast pace with new tools and techniques being released daily. It is impossible to learn them all, but choosing similar technologies allows you to step up your game while developing web applications. Web applications are often split into two parts: the front end and the back end. Using Node.js for logic and MongoDB for persistence, a single person can develop a real-time web application in no time. Node.js is based on JavaScript, which makes it easily adaptable for a wide-variety of platforms. It is also lightweight, and handles a huge number of simultaneous connections.</p> <p><em>Web Development with Node.js and MongoDB</em> will show you how to build powerful web applications from the ground up. Starting with the simplest "hello world"-based script and moving on to more and more advanced techniques, this course will show you what is possible while building your application.</p> <p>We'll begin with some of the basic concepts of Node.js, Express.js, and MongoDB and build on this knowledge with practical examples. With each concept, the application will get more powerful and you will be able to process any business logic you may need.</p> <p>We will then learn about Express.js to make web applications and MongoDB to persist your data. Then you will find out how to build on the shoulders of giants by consuming a RESTful API or become a giant by serving your own API. Later on, you’ll get to grips with automatically testing your application to make sure it is functioning properly.</p> <p>At the end, we will take a look at deploying our application and improving its performance. The course closes with suggestions on further improvements that can be made to the application.&nbsp;</p> <h1>Style and Approach</h1> <p>This video course uses step-by-step practical examples to guide you through developing web applications with Node.js and MongoDB from start to finish and beyond. Not only will you learn about the theory, but you will get enough practical examples to see how everything works.</p>
Table of Contents (8 chapters)
Chapter 6
Unit Testing with Mocha
Content Locked
Section 4
Mocking with Sinon.JS
Our code should be easy to test, but it often has dependencies that make it harder to test. Spying, stubbing and faking allow us to make our code easier to test. - Taking a look at Sinon.JS and learning to install it - Understanding what a mock is - Learning how to test your applications