Chapter 2. Architecting the Project

Software development is a complex process. We can't just start writing some code and expect that we will reach our goal. We need to plan and define the base of our application. In other words, before you dive into actual scripting, you have to architect the project. In this chapter, we will cover the following:

  • The basic layers of a Node.js application
  • Using the task runner and building system
  • Test-driven development
  • The Model-View-Controller pattern
  • The REST API concept

Introducing the basic layers of the application

If we plan to build a house, we will probably want to start with a very good base. We simply can't build the first and second floor if the base of the building is not solid.

However, with software, it ...

Get Node.js By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.