How to host a website on Azure that has backend in node.js and frontend in angular.js?

Truong Hoang Phuc 1 Reputation point
2020-08-10T09:31:33.893+00:00

I want to deploy a website for a client on Azure. The project is consisting of node.js (backend) and angular.js (frontend). I have created an app service plan on Azure and then created an azure kubernetes service. Can I deploy frontend to app service and backend to kubernetes service?

Note: There are two separate GitHub repositories of this project(for frontend & backend).

Azure Kubernetes Service
Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,447 questions
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
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 30,281 Reputation points Microsoft Employee Moderator
    2020-08-12T18:44:12.137+00:00

    Hi @Truong Hoang Phuc ,

    Since you're using GitHub, you can take advantage of Actions to build and deploy your code to an app to an app service. This doc will walk you through how you can use the same Actions to build/deploy to a Kubernetes cluster. You didn't mention if your Node back is utilizing a microservices architecture. If not, I would advise simply deploying your Angular front and Node back to two separate app services hosted within the same plan. If your backend requires greater services, you can always move the app service to a separate and higher sku.

    0 comments No comments

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.