Skip to content

Deploy in local environment

leonardotkimura edited this page Aug 23, 2023 · 8 revisions

How to deploy Amazon Biobank in your local environment (linux)

  1. 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
  2. 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
  1. Clone Amazon Biobank repositories
git clone https://github.com/amazon-biobank/keyguard.git
git clone https://github.com/amazon-biobank/biobank.git
  1. Run the script for the first setup
cd biobank
./configure-first-use.sh
  1. Configure MySQL service
    • Create a mysql database called keyguard.
    • Create a user called keyguard. Give the permissions over keyguard database.
    • Update mysql configurations on keyguard/.env file
  2. Run the script to deploy blockchain, keyguard, and other services. It takes a few minutes
cd blockchain/test-network/
./start-production-fabric.sh
  1. Run the biobank-interface
cd ../../application
node index.js
  1. Access http://127.0.0.1:3000 in your browser. You can use biobank/e-admin.id credential for login. The password is amazonbiobank