coai is a project that aims to provide a solution for annotating medical data. It allows users to annotate medical images, documents, and other types of data with relevant information for research, diagnosis, and treatment purposes.
- Install the AWS CLI
- Check if you have AWS Credentials using
aws sts get-caller-identity. If theAccountis correct, skip this. If 'Unable to locate credentials', skip to Step 4. - Clear your AWS Credentials:
- Remove
~/.aws/credentials - Remove
~/.aws/config
- Remove
- Configure AWS Credentials using the AWS CLI
npm i- Install allnpmpackages
Complete Setup as above.
Mirrors the Amplify buildspec:
- Complete one of the following:
- Pull an existing configuration from 'prod':
npm run configure- useful if an up-to-date deployment exists - Deploy the CDK to 'prod':
npm run deploy- useful if no deployment is outdated or doesn't yet exist
- Pull an existing configuration from 'prod':
- Generate GraphQL types:
npm run codegen - Build the app:
npm run build
Complete Setup as above.
Mirrors the GitHub Actions workflow:
-
Setup
.envfiles:- In
apps/cdk, create a.envfile with the following:AWS_ACCOUNT_NOAWS_REGIONENV- should be one of the<stage-name>s defined inapps/cdk/lib/stage.ts
- In
apps/web, create a.envfile with the following: -VITE_STAGE- should be one of the<stage-name>s defined inapps/cdk/lib/stage.ts-CODEGEN_DEPTH- the depth of the types generate bynpm run codegen. Default = 8
These.envfiles should never be committed to source control.
ENVandVITE_STAGEare equivalent, and are used to determine which instance of the CDK stack to use.configure,deployandcodegenare reliant on this.
- In
-
Complete one of the following:
- Pull an existing configuration:
npm run configure- useful if an up-to-date deployment exists - Deploy the CDK to:
npm run deploy- useful if no deployment is outdated or doesn't yet exist
- Pull an existing configuration:
-
Generate GraphQL types:
npm run codegen -
Run
npm run devto start the dev server for the web app.
npm run test- Runs the test suites.npm run deploy- Deploys the CDK stack.npm run configure- Pulls the configuration for an existing stacknpm run lint- Checks code quality, formats and lints the project.npm run build- Builds the application.npm run dev- Runs the dev server for the web app.