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)