How to publish NodeJS Application as APP and Backend service

MohanReddy Buggana 0 Reputation points

Hi, I am using NodeJs application with the ionic app as a web application in the same project I am running this application locally by running these commands 1) node server.js and 2) npm run watch. So now I have to publish this application to Azure Static app service or App services. Which is the best way to publish the application?

Should I include these steps for the static app service yml file?

app_location: "/" # App source code path api_location: "/api" # Api source code path - optional api_build_command: 'node server.js'
app_build_command: 'npm run build' output_location: "dist" # Built app content directory - optional

Which place I should publish API and app?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,372 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
846 questions
{count} votes