Skip to content

This Node.js (Express) sample app is used by the getting started content to demonstrate how easy it is to develop a web app and deploy it to Azure App Service.

License

Notifications You must be signed in to change notification settings

maniSbindra/app-service-web-nodejs-get-started

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js sample for Azure App Service and App Services on Linux

This is a Node.js web app built on the Express framework that you can deploy to Azure App Service or Azure App Services on Linux.

This code is the default app as generated by the Express application generator, using Jade view engine.

Environment Settings

  • The default Message can be modified by setting the Environment Variable / Application setting EVENT_NAME

Deployment - Azure App Service (on Windows)

To learn how to deploy this starter web app to App Service in a few minutes, go to Get started with web apps in Azure App Service.

Deployment - Azure App Service on Linux

Deployment using builtin nodejs image

  • Follow the steps mentioned in Creating web app on Linux
  • Select the latest node version where you need to select the built-in image source (App was tested with version 6.9)

Setting continous deployment from github repo branch

  • Click on Deployment Options
  • Next select Github and configure your github repository and branch. If you want to use this repository (https://github.com/maniSbindra/app-service-web-nodejs-get-started) first fork the repository in your github account, and then configure that repository and branch.
  • Next click on the Sync button to deploy you github app on your Linux App Service
  • Click on the site url to access the site. You can find this by clicking on the overview tab of your web application.

Deploymnet using custom docker image

Building Docker Container image

The following command builds the docker container image for the application using the provided Dockerfile and .dockerignore file.

# you need to use your own docker hub userid
docker build -t maninderjit/nodeapp:1.0 .

# After this you need to push the image to docker hub

Deployment steps

  • Follow the steps mentioned in Creating web app on Linux using custom docker container image
  • Select Image source as docker hub
  • Enter the image name and tag (maninderjit/nodeapp:1.0)
  • Save the information
  • Click on the site url to access the site. You can find this by clicking on the overview tab of your web application.

Enable Application logging to File

  • Enable Application logging to file following steps mentioned in Enable Logging

License

See LICENSE.

About

This Node.js (Express) sample app is used by the getting started content to demonstrate how easy it is to develop a web app and deploy it to Azure App Service.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 90.2%
  • HTML 7.0%
  • CSS 2.8%