skip to Main Content

We have been working with angular application and we have to host it on AWS. So I just want to check whether we can deploy the angular application without nginx or not. This question arise after we deployed node.js application without any hosting tool. Initially we were using pm2 for that but later we have removed it for API part. So now want to check whether we can use angular application without nginx or not.

2

Answers


  1. Yes, you can if the angular application is only static files (HTML, CSS) and your backend services are in other hosts.

    You don’t need to use any AWS EC2 for running the static web application, you should use AWS CloudFront and AWS S3 for hosting it. Doing this way is more performance and cheaper very much.

    You can read more about it at: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/getting-started-secure-static-website-cloudformation-template.html

    Login or Signup to reply.
  2. The state-of-the-art way of hosting Angular apps on AWS is S3 + CloudFront. I recently wrote a guide on how to do so.

    No need for you to manually set up nginx on EC2.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search