-
git clone https://github.com/varunalla/HealthBlock.git -
run the following command inside root and client
yarn installnpm install pnpm -g -
install and start ganache
-
run the truffle migrate from inside the project root.
truffle migrate -
run the type check to generate types for react.
yarn typecheck -
create .env.development and .env.production in the client directory with the following content and replace value with deployed healthblock contract address.
REACT_APP_HEALTHBLOCK_ADDRESS=valueREACT_APP_PROVIDER_ADDRESS=value -
create .env in the root directory with the following content
AWS_ACCESS_KEY_ID=your-keyAWS_SECRET_ACCESS_KEY=your-secretAWS_REGION=valueREACT_APP_AWS_ACCESS_KEY_ID=your-keyREACT_APP_AWS_SECRET_ACCESS_KEY=your-secretREACT_APP_AWS_REGION=your-regionREACT_APP_BUCKET_NAME=your-regionREACT_APP_BUCKET_KEYS=your-bucketREACT_APP_BUCKET_ENCRYPT=your -bucketREACT_APP_BUCKET_REENCRYPT=your-bucketREACT_APP_BUCKET_RECORDS=your-bucketREACT_APP_BUCKET_RECORDS_DOCTOR=your-bucketPYTHON_HOST=valueAWS_ACCESS_KEY_ID_FOR_SES=your-keyAWS_SECRET_ACCESS_KEY_FOR_SES=your-secret -
build the client using
yarn buildorREACT_APP_HEALTHBLOCK_ADDRESS=VALUE1 REACT_APP_PROVIDER_ADDRESS=VALUE2 yarn build -
run the server with below command by replacing value with deployed healthblock contract address.
npm install -g pino-prettyHEALTHBLOCK_ADDRESS=value node server.js | pino-pretty -
Python Backend : pip/pip3 and python/python3
pip install -r requirements.txtpython server.py
- for apple arm versions
arch -x86_64 zshthen install the nvm use nvm 16.15