This is a simple demo app for creating and installing react on S3
React app scafolding was generated with Create React App
Only compatible with *nix style operating systems (ie, Linux / Mac OSX)
- clone repo
git clone https://github.com/amcquistan/tci-react-s3.git
cd tci-react-s3
- install npm packages
npm install
- Install aws cli
Consult AWS CLI docs and configure with IAM user who can perform full programmatic CRUD on S3 within the associated AWS account
- Create the following environment variables
REACT_BKT_NAME=name-of-bucket-to-host-from
AWS_PROFILE=aws-profile-to-utilize
AWS_REGION=aws-region-for-bucket
- Run locally
npm run start
- Create an S3 bucket for hosting a static website
npm run createbkt
- Deploy example app to bucket
npm run deploy
- Clean up and delete bucket
npm run deletebkt