Skip to content

DevStar2004/Eddii-Health-AWS

Repository files navigation

EddiiBackend

This workspace has been generated by Nx, a Smart, fast and extensible build system.

Understand this workspace

Run nx graph to see a diagram of the dependencies of the projects.

Remote caching

Run npx nx connect-to-nx-cloud to enable remote caching and make CI faster.

Further help

Visit the Nx Documentation to learn more.

Stack Build

  1. Create Google Firebase Project under [email protected]

    1. Enable Google Analytics for this project
    2. Add Firebase to your Apple app (add correct bundle ID)
    3. Download plist, copy and name it correctly in eddii-mobile-app repo eddii-mobile-app/ios/Firebase/GoogleService-Info-${bundleID}.plist
    4. Go to Project Settings -> Cloud Messaging -> Enable Cloud Messaging API (Legacy) -> Copy Server key (for SNS step below).
  2. Create SNS Platform Application

    1. SNS -> Push notification platform === "FCM", enter Server key from above.
    2. Enable Delivery status logging -> Create new service role
    3. Copy ARN and add to CDK stack config.
  3. Export AWS credentials to terminal

  4. Bootstrap - cdk bootstrap aws://$ACCOUNT_ID/$REGION

  5. Deploy - cdk deploy $STACK

  6. Update Dexcom Secret. Secrets Manager -> Find Dexcom Secret -> Update it to one from Dexcom

  7. Copy all variables into the right .env file in eddii-mobile-app repo.

Healtie

Update the schema rover graph introspect https://staging-api.gethealthie.com/graphql --output schema/healthie.graphql