Skip to content

This project show how fast we can deploy react app in s3 and cloudfront. Try it and make yours

License

Notifications You must be signed in to change notification settings

ghdmsrkd/react-s3-cloudFront-serverless-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-s3-cloudFront-serverless-template

This project show how fast we can deploy react app in s3 and cloudfront with serverless framework. Try it and make yours


following steps

  • npm install serverless -g
  • Move to ~/.aws/credentials
  • Append your AWS PROFILE like this
    [my-profile] 
    aws_access_key_id=INSERT YOUR ACCESS KEY
    aws_secret_access_key=INSERT YOUR SECRET KEY
    
  • Export your profile
    export AWS_PROFILE="my-profile"
    
  • Move to react-s3-cloudFront-serverless-template/my-app DIR
    yarn build
    
  • Move to react-s3-cloudFront-serverless-template DIR
  • Edit serverless.yml The name of the bucket must be unique.
    custom:
      bucketName: Your bucket name
    
  • Now Let's deploy!!
    sls deploy
    
  • Wait a minute then you will Success deploy Click Me!

Isn't it super easy? Do not deploy your React app manually! Use the Serverless Framework to deploy automatically!

About

This project show how fast we can deploy react app in s3 and cloudfront. Try it and make yours

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published