Deploying Node.js Applications
In this chapter, we will learn how to deploy our application to the public internet. We will learn how important it is to have a clear definition of the requirements and how to choose the best solution for our needs. We will push the application code to the GitHub repository in order to use GitHub Actions for continuous integration.
Finally, We will deploy the application in DigitalOcean and we will use PM2 to keep the application running. We will configure and use MongoDB Atlas to host the database in the cloud.
To sum up, here are the main topics that we will explore in this chapter:
- How to define the requirements and how to choose the best solution for our needs
- How to push the application code to the GitHub repository
- How to use MongoDB Atlas to host the database as an external resource
- How to use DigitalOcean Droplet to host the application
- How to use PM2 to keep the application running