-
Notifications
You must be signed in to change notification settings - Fork 2
Deploy in local environment
leonardotkimura edited this page Aug 23, 2023
·
8 revisions
-
Install the prerequisites
- git, curl, jq
- docker (24.0.5), docker-compose (1.25.0)
- add your user to the Docker group
- npm and node 14
- mysql
-
Install Hyperledger Fabric Binaries
curl -sSLO https://raw.githubusercontent.com/hyperledger/fabric/main/scripts/install-fabric.sh && chmod +x install-fabric.sh
./install-fabric.sh --fabric-version 2.3.2 binary
- Clone Amazon Biobank repositories
git clone https://github.com/amazon-biobank/keyguard.git
git clone https://github.com/amazon-biobank/biobank.git
- Run the script for the first setup
cd biobank
./configure-first-use.sh
- Configure MySQL service
- Create a mysql database called
keyguard
. - Create a user called
keyguard
. Give the permissions overkeyguard
database. - Update mysql configurations on
keyguard/.env
file
- Create a mysql database called
- Run the script to deploy blockchain, keyguard, and other services. It takes a few minutes
cd blockchain/test-network/
./start-production-fabric.sh
- Run the biobank-interface
cd ../../application
node index.js
- Access
http://127.0.0.1:3000
in your browser. You can usebiobank/e-admin.id
credential for login. The password isamazonbiobank