GithubHelp home page GithubHelp logo

bridgecrew-perf7 / nodejs-azureapp-rel-stack Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 3loka/nodejs-azureapp-rel-stack

0.0 0.0 0.0 111 KB

Use this stack to spin up a Nodejs (ExpressJS) based site and deploy to Azure App Service

License: Apache License 2.0

Shell 77.06% Dockerfile 22.94%

nodejs-azureapp-rel-stack's Introduction

Use this template

A GitHub Stack to develop, preview, and deploy an Express(Node.js) website to Azure App service in seconds.

Why should you use this GitHub Stack?

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

  1. Branch Naming convention - You can use any branch prefixed with "dev" as your development environment.
  2. 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.
  3. Enable Security alerts - A workflow will be setup for you to enable Dependabot alerts to detect vulnerabilities.
  4. 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.

What are the inputs to pass while setting up the stack?

# Name of the Azure App which has been configured to host the website
- AZURE_APP_NAME

# Azure Publish profile
- AZURE_WEBAPP_PUBLISH_PROFILE

Github apps installed with this stack

None

How to get AZURE_WEBAPP_PUBLISH_PROFILE? ๐Ÿ”‘

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

App hosted URL would be: โœˆ๏ธ

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 

How to setup local development server?

# 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

Learn more

ExpressJS

Visit Expressjs.com to view the full documentation.

Azure Cloud

Learn more about Azure from the official site.

Other Useful links

Security guide

Please see our guide lines for reporting issues related to security.md.

Contributor guide

Please see our guide lines for contributing.md.

Contributors

nodejs-azureapp-rel-stack's People

Contributors

3loka avatar sundargs2000 avatar azooinmyluggage avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.