Create empty react page
- npm install -g create-react-app
- cd c:\repos
- npx create-react-app NameOfApp
- cd NameOfApp
- npm run build
Create s3 bucket - requires awscli
- aws s3 mb s3://nameofapp.com
- aws s3 website s3://nameofapp.com --index-document index.html
Push build files to S3 bucket
- aws s3 sync --acl public-read --sse --delete ./build/ s3://nameofapp.com
Test the site
Tidy up
- aws s3 rb s3://nameofapp.com --force