Skip to content

DarrenSmallwood/SimpleReact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleReact

Create an empty react app using create-react-app and publish to AWS s3 bucket

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published