How to set up an AngularJS application using AWS?

Would I use an EC2 instance and install a web server on it (e.g. Node.js) and then complete everything as usual or do I need to use something like the AWS SDK for JavaScript?

(This is not a static AngularJS application and will interact with the application server)

+5
source share
2 answers

If your application uses only angular js, you can use amazon s3 bucket to host your static website. A static website does not need a web server. To get started, start the tutorial .

If your application uses nodejs as a server, you need to log in to your ec2 instance and then install node js. After installation, just launch the application using node. Also make sure that you enable the nodejs port in the security group settings of your instances.

I remember the following blog when I first applied the node + angular application.

Node -Aws-Sdk is an ec2 library that is used to invoke various aws services such as Amazon S3, Amazon EC2, DynamoDB, and Amazon SWF. I don't think you need this if you are not interacting with these services in your nodejs code.

+11
source

You can just put it in an S3 bucket and make it public. You just use javascript, you do not need to run it from an EC2 instance.

+5
source

All Articles