A GitHub Stack to develop, preview, and deploy an Express(Node.js) website to Azure App service in seconds.
You can spin up your own Express(Node.js) website in seconds. Deployment happens on an Azure App Service.
The stack also sets up a proper Github CI/CD environment by taing care of the following things
- Branch Naming convention - You can use any branch prefixed with "dev" as your development environment.
- Branch Protection Setting - Developers working on this branch can work freely and push changes without a PR and a code reviewer. This facilitates quick development.
- Enable Security alerts - A workflow will be setup for you to enable Dependabot alerts to detect vulnerabilities.
- CodeQL Security Analysis - Discover vulnerabilities across a codebase with CodeQL, our industry-leading semantic code analysis engine
Note: Once you create a repo out of this stack, you can find your website deployed at <azure_app_name>.azurewebsites.net.
# Name of the Azure App which has been configured to host the website
- AZURE_APP_NAME
# Azure Publish profile
- AZURE_WEBAPP_PUBLISH_PROFILE
None
Login to your Azure Portal -> Open the Azure App Service -> Get publish profile
Check this out for more details on getting Publish Profile.
Note: You will have to create a Web app in your Azure Subscription and pass its name and publish profile as input. This stack will deploy the new repo code to your Azure Web app. Checkout this Azure Documentation to learn more about creating Azure App Service
You can readily find the URL where your repo hosts the application in the Development
environment. Or manually you can find your website deployed at <azure_app_name>.azurewebsites.net.
Example: APP_NAME input by user is: sample-app
Hosted URL: https://sample-app.azurewebsites.net
# to start a local development environment, and view in browser.
npm install
npm start
open http://localhost:3000
# to run tests
npm test
# to generate a production build
npm build
Visit Expressjs.com to view the full documentation.
Learn more about Azure from the official site.
Please see our guide lines for reporting issues related to security.md.
Please see our guide lines for contributing.md.
- Trilok Ramakrishna (@3loka)