forked from awslabs/fhir-works-on-aws-deployment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfhir-works-local-develop.sh
executable file
·36 lines (29 loc) · 1.03 KB
/
fhir-works-local-develop.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash -e
packages=(
"fhir-works-on-aws-persistence-ddb"
"fhir-works-on-aws-routing"
"fhir-works-on-aws-search-es"
"fhir-works-on-aws-authz-rbac"
)
cd fhir-works-on-aws-interface
yarn link
yarn install
cd ..
for i in "${packages[@]}"
do
cd $i
yarn link
yarn link fhir-works-on-aws-interface
yarn install
cd ..
done
cd fhir-works-on-aws-deployment
yarn link fhir-works-on-aws-interface
for i in "${packages[@]}"
do
yarn link $i
done
yarn install
cd ..
printf "\nRun 'yarn watch' in the folder of each package that you're developing in. This will pick up live changes from the package. You can then run this command in the deployment package to run the code locally. 'AWS_ACCESS_KEY_ID=<Access-Key> AWS_SECRET_ACCESS_KEY=<Secret-Key> OFFLINE_BINARY_BUCKET=<FHIRBinaryBucket> OFFLINE_ELASTICSEARCH_DOMAIN_ENDPOINT=<ElasticSearchDomainEndpoint> sls offline start"
printf "\n\nIf you don't know the OFFLINE_BINARY_BUCKET and OFFLINE_ELASTICSEARCH_DOMAIN_ENDPOINT value, you can run 'sls info --verbose' in the deployment package"