Getting to Know Node.js and MongoDB
In the previous chapter, we set up our IDE and a basic project for frontend development. In this chapter, we will first learn how to write and run scripts with Node.js. Then, we will move on to introducing Docker as a way to set up a database service. Once we have set up Docker and a container for our database, we are going to access it to learn more about MongoDB, the document database that we will use going forward. Finally, we will connect everything we have learned in this chapter by accessing MongoDB via Node.js scripts.
By the end of this chapter, you will have an understanding of the most important tools and concepts in backend development with JavaScript. This chapter gives us a good foundation to create a backend service for our first full-stack application in the upcoming chapters.
In this chapter, we are going to cover the following main topics:
- Writing and running scripts with Node.js
- Introducing Docker, a platform for...