#Blog workshop frontend
- Node.js and npm: https://nodejs.org/en/
- Clone GIT repository
git clone git@github.com:SC5/aws-serverless-hackathon.git
- Install packages
npm install
Add API endpoint url to config.ts
npm start
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
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.