feat: Add React app with Auth0 file upload and S3 deployment instructions
This commit is contained in:
1 parent
d282e2bcae
commit
384dc0b5a3
1 file changed
+23
@@ -25,6 +25,29 @@ A simple React application that allows users to upload files to a third-party AP
|
|||||||
npm run dev
|
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
|
## Features
|
||||||
|
|
||||||
- Auth0 authentication (login/logout)
|
- Auth0 authentication (login/logout)
|
||||||
|
|||||||
Reference in new issue
Block a user