Follow these steps to deploy this application on Azure App Service.
Node JS NPM Azure CLI Git client Command Line interface Configure appSettings Add the appSettings section to the configuration section of azure-webapp-maven-plugin. Change the values based on the application requirements.
<!-- indicates that the server.js file is a node.js application
to be handled by the iisnode module -->
<handlers>
<add name="iisnode" path="server.js" verb="*" modules="iisnode" />
</handlers>
<!-- adds server.js to the default document list to allow
URLs that only specify the application root location,
e.g. http://mysite.azurewebsites.com/ -->
<defaultDocument enabled="true">
<files>
<add value="server.js" />
</files>
</defaultDocument>
NPM Install NPM start Test the webapp by browsing to http://localhost:3001. Ensure the application works.
NPM test Test Report : test-report.html availabe in the project folder
Use az login to connect to the Azure subscription. Ensure you have contributor access on the Resource Group.
Right click on the project name of the framework and click "deploy to web app"