Commit a7ed819d authored by o4's avatar o4
Browse files

added missing files

parent 61960e12
{
"engines": {
"composer": "latest"
},
"name": "auditchain-m3-m2",
"version": "0.0.1",
"description": "The auditchain business network makes it possible for companies to share their audits without disclosing their business relationships",
"scripts": {
"cleanupDocker": "../../teardownAllDocker.sh",
"cleanupCards": "composer card delete -c PeerAdmin@hlfv1 && composer card delete -c admin@auditchain || true",
"cleanupPrevFabricSessions": "../../stopFabric.sh && ../../teardownFabric.sh",
"startNewFabricSession": "../../startFabric.sh && ../../createPeerAdminCard.sh",
"prepublish": "mkdir -p ./dist && composer archive create --sourceType dir --sourceName . -a ./dist/auditchain-m3-m2.bna",
"pretest": "npm run lint",
"lint": "eslint .",
"test": "nyc mocha -t 0 test/*.js && cucumber-js",
"createAuditchainCard": "composer card create -p hlfv1 -n 'auditchain'",
"installBna": "composer network install -c PeerAdmin@hlfv1 -a ./dist/auditchain-m1-m2.bna",
"createAdminCard": "mkdir -p participant_cards && composer network start -n auditchain-m1-m2 -V 0.0.1 -A admin -S adminpw -c PeerAdmin@hlfv1 -f participant_cards/auditchain.card",
"importAdminCard": "composer card import -f participant_cards/auditchain.card -c admin@auditchain",
"composerUpgrade": "composer network upgrade -n auditchain -V 0.0.1 -c PeerAdmin@hlfv1",
"startPortainer": "docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer",
"cleanup": "npm run cleanupDocker && npm run cleanupPrevFabricSessions && npm run cleanupCards",
"start": "npm run cleanup && npm run startNewFabricSession && npm run prepublish && npm run installBna && npm run createAdminCard && npm run importAdminCard",
"upgrade": "npm run prepublish && npm run installBna && npm run composerUpgrade",
"startRest": "composer-rest-server -c admin@brix -n never -w true",
"startBusinessNetwork": "cd fabric-network/scripts && ./startup.sh auditchain-m1-m2.bna auditchain-acquisition.bna",
"compileBusinessNetwork": "./prepublish.sh",
"resetBusinessNetwork": "npm run compileBusinessNetwork && cd fabric-network/scripts && ./resetDockerImages.sh"
},
"keywords": [
"composer",
"composer-network"
],
"author": "Marius Momeu",
"email": "marius.momeu@tum.de",
"license": "Apache-2.0",
"devDependencies": {
"chai": "latest",
"chai-as-promised": "latest",
"composer-admin": "latest",
"composer-cli": "latest",
"composer-client": "latest",
"composer-common": "latest",
"composer-connector-embedded": "latest",
"composer-cucumber-steps": "latest",
"cucumber": "^2.2.0",
"eslint": "latest",
"mkdirp": "latest",
"mocha": "latest",
"nyc": "latest"
},
"dependencies": {
"composer-wallet-filesystem": "^0.19.12",
"compression": "^1.7.2",
"cookie-parser": "^1.4.3"
}
}
......@@ -62,6 +62,10 @@ MANUFACTURER=m1
SUPPLIER=m2
./add_channel_to_config_json_file.sh $COMPANY $MANUFACTURER $SUPPLIER
MANUFACTURER=m3
SUPPLIER=m2
./add_channel_to_config_json_file.sh $COMPANY $MANUFACTURER $SUPPLIER
CURRENT_REST_API_PORT=`expr $CURRENT_REST_API_PORT + 1`
CURRENT_WEBAPP_PORT=`expr $CURRENT_WEBAPP_PORT + 1`
......@@ -85,6 +89,9 @@ chmod +x $RUNNABLES_DIR/start_rest_api_$COMPANY.sh
echo "npm run start-$COMPANY --prefix ../web-app" > $RUNNABLES_DIR/start_webapp_$COMPANY.sh
chmod +x $RUNNABLES_DIR/start_webapp_$COMPANY.sh
SUPPLIER=m2
./add_channel_to_config_json_file.sh $COMPANY $MANUFACTURER $SUPPLIER
CURRENT_REST_API_PORT=`expr $CURRENT_REST_API_PORT + 1`
CURRENT_WEBAPP_PORT=`expr $CURRENT_WEBAPP_PORT + 1`
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment