Member-only story
Easiest and Free way to host your React App
Let’s keep things cheap & simple with AWS S3
Firstly to deploy a React project, we must have a React project. The quickest way to create one would be:
npx create-react-app awesome-project
To create a build version for our application we can simply run npm run build
inside our project. This will create a build folder in our project with an index.html
file that we can use to host our project. Now let’s get AWS’ S3 sorted. If you don’t have an AWS account, you would have to create one here. Once you have an account ready, search for S3 in the AWS console services and click on it.
Creating a new bucket
Now on this page, we can create on the orange action button with the text “Create Button” to start creating a new bucket. We must pick a unique name for our bucket and also ensure that we uncheck all privacy settings, so the bucket is available publicly. Here’s how that looks:
Once done, the website will send you to an overview of all your buckets. Click on the one we just created it. Here we can simply drag and drop all the contents of…