- Boost
- Protobuf
- CMake
- C++ Compiler (g++)
This project was tested on Ubuntu 22.04 which we confirmed it worked. We have not tested on other systems so cannot guarantee its functionality on anything else.
sudo apt install cmake
sudo apt install libboost-all-dev
sudo apt install protobuf-compiler
(this should install relevant library needed)sudo apt install g++
Start from project root directory
- Run:
cd proto
- Run:
protoc -I=. --cpp_out=. messages.proto
- Run:
cd ..
- Make a build directory:
mkdir build
- Run:
cmake -S . -B build
- Run:
cd build
- Run:
make
- You should now have an ATM and Bank executable in the build directory
- Be in the project root directory (not in build otherwise it won't work)
- Run
./build/Bank 1500
to start the Bank (must be started first) - Run
./build/ATM 1500
to start the Bank
Note: 1500 is the port number that will be used. This can be substituted with any other port you would like. If you get any errors about address already in use then use a different port.