How to deploy Angular and node js express API RestFul on App Service? And how to configurate the node js express API to works with CORS of App Service?

Luis Diego Cáceres García 66 Reputation points
2022-07-18T15:16:45.057+00:00

Hello,
I am new to App Services and have been looking through the Azure documentation regarding this service.

But I only found examples with .NET

I want to deploy an Angular application as a Single-page-application that consumes RestFul services in node js => Express, which in the same way I did not find an example of node js API Restful, since I want to know how to configure it so that it can be integrated with the App Services CORS like the .NET sample they provide.
The Angular and the services in node deploy them in App Services.

Regards,
Luis Diego Caceres.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,934 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 19,151 Reputation points Moderator
    2022-07-18T23:56:48.53+00:00

    Hi @Luis Diego Cáceres García

    Thanks for using Azure. If I understand you correctly you want to deploy your Angular App on Azure App service?

    Please take a look at this Azure doc Create a Node.js web app in Azure which shows you how to deploy node app in Azure.

    You can also check out this non-Azure blog post: How To Run and Deploy Angular with NodeJS Backend on Azure App Services
    which shows you how to deploy Angular with NodeJS Backend using Azure App Services.

    Hope that helps.
    please let us know if you have further questions.

    Best,
    Grace


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.