Mufasa
Mufasa

Reputation: 387

Easiest way to publish angular 2 app to Amazon AWS

I have an initial version of my website completed using angular-cli v1.0.0-beta.18, angular v2.1.1, angular-material v2.0.0-alpha.9-3 and Promact/md2 v0.0.6 (for select and datepicker components since these are not ready yet in material 2).

I have also signed up for 1 year free trial with Amazon AWS.

So my question is, what is the simplest way to build and deploy my application to AWS?

My application is currently self-contained but I will be creating a Java micro-service next that my application will need to use over REST - but that is a couple of months away from completion.

Any help/pointers will be greatly appreciated.

Upvotes: 1

Views: 8239

Answers (2)

Rash
Rash

Reputation: 8187

If you are not tied to AWS and your end goal is just to be in cloud, there are several options. There is one service that I wrote you can try - called Plugins by Quadnix.

This is an automatic platform which guesses the infrastructure rather than being told what to build. E.g. you mentioned you are building a Java application in comments. Rather than configuring different components like tomcat, database, loggers, etc, these infrastructure can be automatically detected and build by my service. What's more is that it has an embedded CICD pipeline, and many other features. Most of these features e.g. database support is yet to be built, but the "Angular" piece is working correctly. You can follow this video link to get started.

Upvotes: 0

George Whitaker
George Whitaker

Reputation: 1668

Use S3 static websites feature. Its great for front end apps.

http://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html

If you want to get really fancy then you can take it a step further and layer in AWS Cloud Front. But I wouldn't do that until you are in production and are concerned about first page loading time.

Upvotes: 3

Related Questions