-
Notifications
You must be signed in to change notification settings - Fork 3
/
start.sh
executable file
·45 lines (38 loc) · 847 Bytes
/
start.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
cd CLOUD"("BE")"
curl -sSL https://bit.ly/2ysbOFE | bash -s
cd ./fabric-samples/blomy/javascript
npm install
cd ..
cd ../chaincode/blomy/javascript
npm install
cd ..
cd ../blomyfood/javascript
npm install
cd ..
cd ..
cd ../blomy
. startFabric.sh javascript
cd ../test-network
./networkFood.sh up createChannel -ca -s couchdb
./networkFood.sh deployCC -ccn blomyfood -ccv 1 -cci initLedger -ccl javascript -ccp ../chaincode/blomyfood/javascript
cd ../blomy/javascript
node enrollAdmin.js
node registerUser.js
node invoke.js
node invokefood.js
node rest.js &
cd ..
cd ..
cd..
cd ../WEB"("BE")"
sudo apt-get install pkg-config
sudo apt-get install libcairo2-dev --yes
pip install -r requirements.txt
pip3 install requests --force-reinstall
pip install lxml
python manage.py runserver &
cd ../WEB"("FE")"
yarn
yarn build
yarn start