Skip to content

arun-gupta/angular2-hello-world

Repository files navigation

Angular 2 Hello World

Run Locally

This workspace has a minimalist Angular 2 Hello World!

  1. Install Node: brew install node or brew upgrade node

  2. npm install to install the modules

  3. npm start to run the website

Deploy to Amazon Web Services S3

AWS S3 Bucket

  1. Create a S3 bucket: aws s3 mb s3://microservice.arungupta.me --region us-west-2

  2. Enable static website hosting: aws s3 website s3://microservice.arungupta.me --index-document index.html

Deploy to S3 Bucket

  1. Install Gulp: npm install gulp gulp-gzip gulp-minify-css gulp-awspublish gulp-minify-html

  2. Add Gulp as development dependency: npm install --save-dev gulp-s3-deploy

  3. Configure AWS credentials and bucket in aws.json

  4. Deploy the website to S3: gulp deploy.

  5. Website is accessible at http://microservice.arungupta.me.s3-website-us-west-2.amazonaws.com/

  6. Clean up: gulp clean