S3
Static files and assets will be stored on S3.
The first thing we have to do is to build the React app.
We now have a build
folder:
We are going to upload this to S3.
Creating a bucket
Search for S3
then click the Create bucket
button.
Follow the process, use the default values but untick
Block all public access
. (I like to name the bucket after the domain e.g daedalost.com)Once the bucket is created, click on it to see the details
Go to
Permission
and paste the following:
Replace NAME_OF_BUCKET
with your bucket's name.
Everyone on the internet can now access this bucket.
Go to Properties
> Static website hosting
> Use this bucket to host a website
:
Index document:
index.html
Error document:
index.html
This endpoint now serves the React app. It won't work at the moment since it doesn't connect to our API. Though, you can hard code http://localhost:8080
as the endpoint to test it locally.
Last updated
Was this helpful?