Deploying NodeJS apps with Azure App Services and Docker
NodeJS application with Azure App Services and Docker in DevOps
As part of an exciting project I am working on, I developed a Micro Service in NodeJS and used the DevOps to build/release the application with Docker in Azure App Services.
Pre-requisites
- Knowledge of NodeJS and some knowledge of docker
- Docker installed on your Machine (optional, for testing locally)
- Visual Studio Code
- DevOps (VSTS) account
- Azure Account
- Sign up to https://mlab.com/ and create a database
Our application
I am going to use this Boilerplate which allows you to enter items in a list, displays them and deletes them. I have some testing done using Jest, to showcase how the follow comes together and what my deployment strategy is.
Clone the code from https://github.com/shemseddine/risk-register
Push your codebase either to GitHub, or within DevOps.
Let’s head over to Azure DevOps.
Before we carry on with the rest of the tutorial, there are a few things we need to set up.