Deploy React UI locally

  1. Download the Frontend/birdtag-app.zip in repo and unzip it
  2. Npm install (nodejs required)
  3. Npm start
  4. Will automatically jump to the localhost web page

Cognito Setup

  1. In configuration/cognito_setup.yaml, update:
Domain: us-east-1-xxx-test # change it to be unique
  1. cloud formation create stack→ configuration/cognito_setup.yaml

  2. In Cognito:

    1. find user pool id

    image.png

    b. same user pool → app clients →client ID

    image.png

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

image.png

Set S3 (ECR) and dynamoDB

  1. open configuration/S3,dynamoDB,ECR.yaml
  2. update with your own S3 bucket name
  3. deploy via cloud formation
  4. pls check the latest CORS configuration for S3(see configuration/s3_cors_note.md)

set Lambda for upload

  1. open upload_file/lambda_upload_presign.py, update your own S3 bucket name
  2. manually deploy lambda as: upload_segregation