While writing code, we need to ensure that the updates do not break existing code. Rather than manually running tests each time we make code changes, we will learn a format to define tests and have them automatically run when we make changes. We will us a popular library called Jest, along with two utilities to make network requests, and an in-memory mongodb instance written for Jest-testing.
An important aspect of any application, is data storage. For that, we will use a non-sql database called mongoDB. To link our express app we will use the popular native mongoDB driver and this post will show you how to configure it.
This is the beginning of a series of articles focused on learning and building a complete nodejs server-side environment based on the expressjs framework. This first article focuses on setup of the development environment, specifically using a popular style guide, a library to catch code problems while writing code, and a formatter to have a consistance code look.