Deploy React UI locally
- Download the Frontend/birdtag-app.zip in repo and unzip it
- Npm install (nodejs required)
- Npm start
- Will automatically jump to the localhost web page
Cognito Setup
- In configuration/cognito_setup.yaml, update:
Domain: us-east-1-xxx-test # change it to be unique
-
cloud formation create stack→ configuration/cognito_setup.yaml
-
In Cognito:
- find user pool id

b. same user pool → app clients →client ID

-
paste those two to Frontend/src/utils/cognito.js

Set S3 (ECR) and dynamoDB
- open configuration/S3,dynamoDB,ECR.yaml
- update with your own S3 bucket name
- deploy via cloud formation
- pls check the latest CORS configuration for S3(see configuration/s3_cors_note.md)
set Lambda for upload
- open upload_file/lambda_upload_presign.py, update your own S3 bucket name
- manually deploy lambda as: upload_segregation