blockchainIDsystem/runTmuxTestPeers.sh
runTmuxTestPeers.shRaw
1SESSION='peersTest'
2
3tmux new-session -d -s $SESSION
4tmux split-window -d -t 0 -v
5tmux split-window -d -t 0 -h
6tmux split-window -d -t 1 -h
7tmux split-window -d -t 0 -h
8
9tmux split-window -d -t 4 -h
10tmux split-window -d -t 5 -h
11tmux split-window -d -t 4 -h
12
13tmux send-keys -t 0 'cd peer && go run *.go server 3001 3002' enter
14sleep 2
15tmux send-keys -t 1 "curl -X POST http://127.0.0.1:3002/register -d '{\"address\": \"firstaddress\"}'" enter
16sleep 1
17tmux send-keys -t 1 'cd peer && go run *.go client 3003 3004' enter
18tmux send-keys -t 2 'cd peer && go run *.go client 3005 3006' enter
19tmux send-keys -t 3 'cd peer && go run *.go client 3007 3008' enter
20
21tmux send-keys -t 4 'cd serverCA && go run *.go' enter
22tmux send-keys -t 5 'cd serverIDsigner && go run *.go' enter
23tmux send-keys -t 6 'cd clientApp && go run *.go' enter
24#tmux send-keys -t 7 'cd clientApp/GUI && electron .' enter
25
26tmux attach
27
28
29# webapps are at:
30# serverCA: http://127.0.0.1:3080
31# clientApp: http://127.0.0.1:8080