Skip to content

A sample Express.js app using a MongoDB database to show how to host Node.js app in Azure App service using Azure Cosmos DB

License

Notifications You must be signed in to change notification settings

Vlad774/msdocs-nodejs-mongodb-azure-sample-app

 
 

Repository files navigation

Nodejs + MongoDB App Deploy To Azure App Service Classic & Yaml Pipeline 🚀

📌 Description This project demonstrates deploying a Node.js + MongoDB app to Azure Web App for Linux using both Classic and YAML pipelines in Azure DevOps. The CI/CD pipeline runs on a self-hosted Azure DevOps agent deployed on an AWS EC2 instance, showcasing a hybrid AWS + Azure setup. The app is built, zipped, published as an artifact, and deployed to Azure App Service.

🛠Technologies

  • Node.js 18+, Express.js
  • MongoDB
  • Azure DevOps (Classic + YAML)
  • Azure Web App (Linux)
  • Self-hosted agent on AWS EC2

🔄 CI/CD Workflow

  • Code push triggers Azure Pipeline
  • Self-hosted agent (on AWS) runs build & archive steps
  • ZIP (cd.zip) is published as artifact
  • AzureRmWebAppDeployment task deploys app to Azure

✨ Key Features

  • ✔ Classic & YAML CI/CD pipeline examples
  • ✔ Hybrid AWS (agent) + Azure (App Service) architecture
  • ✔ ZIP-based deployment using Azure DevOps
  • ✔ Full automation, no manual deployment

Walk-through:

First try First try First try First try

About

A sample Express.js app using a MongoDB database to show how to host Node.js app in Azure App service using Azure Cosmos DB

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Bicep 58.4%
  • JavaScript 24.5%
  • Pug 10.3%
  • Dockerfile 6.0%
  • CSS 0.8%