Posts

Showing posts from 2019

How to Deploy an AWS S3 Hosted React SPA through CloudFront

Image
Introduction The purpose of this short tutorial is to demonstrate how to deploy an AWS S3 hosted React Application using Cloud Front.  To successfully complete this tutorial you will need: Linux Bash shell React framework  Serverless framework Text editor AWS Free tier account Step 1: Creating a React Application For the purposes of this tutorial a simple react application will be built using the automatic application generation tools. The following command can be run to create a react application in the current directory: jafrimo @LP00650 :~/tutorials$ npx create-react-app aws-cloudfront-react-app To validate this has completed successfully, you can change into the newly created application  directory  aws-cloudfront-react-app  and start up the react application locally (we're not in AWS yet!) as follows: jafrimo @LP00650 :~/tutorials/aws-cloudfront-react-app$ npm start If all goes well, then dependi...