How to publish NodeJS Application as APP and Backend service

MohanReddy Buggana 0 Reputation points
2023-05-24T14:36:05.48+00:00

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.
8,884 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,164 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.