Skip to content

SC5/aws-serverless-hackathon

Repository files navigation

#Blog workshop frontend

What you need

Installation

  • Clone GIT repository
git clone git@github.com:SC5/aws-serverless-hackathon.git
  • Install packages
npm install

Setup

Add API endpoint url to config.ts

Run it

npm start

Deploy to S3

To deploy frontend web application to S3 run

npm run deploy-stack

which creates a S3 bucket with website hosting to your default region.

To create bucket to custom region with custom CloudFormation stack name, use parameter -r for region and -n for stack name e.g.

npm run deploy-stack -- -r eu-west-1 -n my-blog-workshop-frontend

Remove from S3

To remove deployed web application from S3 run

npm run remove-stack

If you've defined custom region or stack name, same -r and -n parameters should be used when removing application.

Feedback

mikael.puittinen@sc5.io