Building a Web Application Project from Scratch
In this chapter, we will start a new project that will be the base for the next chapters. We will apply all the lessons learned from the previous chapters and we will put into practice asynchronous programming, Node.js core libraries, external modules, testing, and all the concepts that we learned about regarding REST APIs.
This project will evolve, so we will iterate over the project, adding new features and new tests, so you can experience the full development cycle of a real-world application using Node.js.
In this chapter, we will use the file system library to store the changes we produce in the project while managing operations from the REST API we create. In the next chapter, we will learn how to connect the web application to MongoDB, but we will do a migration using the tests that we built in this chapter.
At the end of the book, we will deploy this project in several ways, and we will expose our application to the internet...