Intro

DO NOT use in production. Known Axios vulnerability in Browser Sync.

A demo node express app to show off GitHub Actions CD capabilities by deploying to an Azure App Service.

This web app will allow you to search for any GitHub user by their handle!

Setup

  1. Create an Azure App Service and App Service Plan to host your node express app
  2. Create deployment slots in the App Service for your different enviroments
  3. Download the Publish Profile for the respective deployment slots
  4. Update github/workflows files with the correct AZURE_WEBAPP_NAME
  5. Create environments secret AZURE_WEBAPP_PUBLISH_PROFILE for the correlating environments defined

Run App Locally:

  1. Fork/Clone Repo
  2. Open in Codespaces or IDE of your choice
  3. npm install
  4. npm run test
  5. npm run dev

Triggering Azure Deployment

  1. Create a new branch
  2. Introduce new commits
  3. Comment the on: section of the workflow you wish to run to include the main branch
  4. Create a pull request to the main branch
  5. Check the Actions tab, Pull Request, and Environments page as the workflow runs!

Reference Material

Feedback?

Open a discussion thread in this repo!

Participate in our Support Community for Code-to-Cloud: