From 384dc0b5a3679c7d76c84887cad551dd2bb548f6 Mon Sep 17 00:00:00 2001 From: nurohman Date: Mon, 1 Dec 2025 23:37:20 +0700 Subject: [PATCH] feat: Add React app with Auth0 file upload and S3 deployment instructions --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.md b/README.md index 6205864..f0d8484 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,29 @@ A simple React application that allows users to upload files to a third-party AP npm run dev ``` +## Deployment + +1. Build for production: + ```bash + npm run build + ``` + This command generates the static files in the `dist/` directory. + +2. Deploy to AWS S3 Static Website: + - **Install AWS CLI** if not already installed. + - **Configure AWS CLI** with your credentials: `aws configure` + - **Create an S3 bucket** for static hosting (e.g., `s3://your-bucket-name`): + ```bash + aws s3 mb s3://your-bucket-name + ``` + - **Enable static website hosting** on the bucket. + - **Upload the built files** from the `dist/` directory: + ```bash + aws s3 sync dist/ s3://your-bucket-name --delete + ``` + - **Set bucket policy** for public read access (if needed). + - Your app will be available at the S3 static website endpoint. + ## Features - Auth0 authentication (login/logout)