accordproject / hlf-cicero-contract

Accord Project Cicero contracts on Hyperledger Fabric v2
Apache License 2.0
14 stars 7 forks source link

feat: quick setup script #12

Open sanketshevkar opened 3 years ago

sanketshevkar commented 3 years ago

Referring to #10

Two new shell scripts have been added:

  1. setup.sh: It checks for all dependencies for the fabric network and hlf-cicero-contract. Check if fabric-samples exists or not. If not downloads it, sets-up env variables and starts the test-network, installs the chaincode on the network.
  2. path.sh: sets up global environment variables.

Quick Setup:

mkdir hlf-cicero-setup
cd hlf-cicero-setup
git clone https://github.com/accordproject/hlf-cicero-contract.git
cd hlf-cicero-contract
./setup.sh
source ./path.sh
./initialize.sh
./trigger.sh
sanketshevkar commented 3 years ago

This looks awesome. Thank you!

What systems did you test this on? Could you please also update the README.md to update the instructions to use this (noting the systems that it works on)?

I tested it on my local machine running on ubuntu 18.04. Then I tested on an ec2 instance running on ubuntu 20.04. So, I guess it should work on any debian distribution. I'll check on fedora, maybe tomorrow. If you have macOS can you check on it? I don't have much hope from windows, but I'll try running the script on it once. Till then I'll update the readme for ubuntu.

sanketshevkar commented 3 years ago

@dselman it's working on fedora, so I am assuming that it'll work on other Linux distributions too. The script wasn't working on windows.