To make your frontend website available online, you will upload all built static files to an AWS S3 Bucket. S3 acts as a static hosting solution, helping distribute your website at low cost and high speed.
Steps to follow:
frontend
directory.yarn build
build
folder will contain all static files that need to be uploaded.fcjfashionshop.com
.Caution:
A static website bucket must have public read access enabled for everyone. However, do not upload sensitive data to this bucket as anyone with the link can access it!
Create an S3 Bucket for Uploaded Images/Avatars
uploads-avatars-2025
(choose an identifiable, non-accented name).Caution:
If you set the upload/avatar bucket to public, anyone with the file link can view the images. Do not upload sensitive information to this bucket!
Make sure you have installed and configured AWS CLI (ran aws configure
).
Run the following command:
cd frontend
aws s3 cp build/ s3://fcjfashionshop.com/ --recursive
The --recursive
flag helps upload all files and subfolders inside the build directory.
Verify Bucket Contents
Go back to the bucket in the AWS Console and verify that all files (index.html, main.js, CSS, images, etc.) have been uploaded successfully.
You can click directly on a file (e.g., index.html
) and copy its Object URL to check if the file is publicly accessible (you should see the HTML/raw file in your browser).
You can check the files and folders uploaded to S3 by browsing the Objects section.
After completing the above steps, you have successfully uploaded your frontend website to AWS S3.