You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
990 B

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