- Start server by running:
go run ./Mandatory_Activity_3/Server/server.go - Start client(s) by running
go run ./Mandatory_Activity_3/Client/client.goin separate terminals - Clients can send messages by entering a message in the terminal
- Clients can leave by hitting
CTRL + C
- Start any number of nodes by running the following command in seperate terminals:
go run ./Mandatory_Activity_4/Client/client.go - For each node you will be prompted to give an ip for that node, and an ip for the next node in the ring.
- The program starts running once you create a node with the ip "5052", so this should be the last action performed. This node should be connected to the first node in the ring.
Example of setup with 3 nodes, in the correct order:
- Node 1: host ip: "5050", recieving ip: "5051"
- Node 2: host ip: "5051", recieving ip: "5052"
- Node 3: host ip: "5052", recieving ip: "5050"
The source code for Mandatory Activity 3 is located in /Mandatory_Activity_3/
- Start three replica nodes (server nodess) by running the following command in seperate terminals:
go run ./Mandatory_Activity_5/server/server.go - For each replica enter ONE of the following ports: 5050, 5051, 5052
- Then start any number of clients by running
go run ./Mandatory_Activity_5/client/Client.go - Then enter an id for each client.
- Enter 'Bid' to bid on the auction
- Enter 'Result' to see the status or result of the auction
The auction will end after 30 seconds.
The source code for Mandatory Activity 5 is located in /Mandatory_Activity_5/