This is a simple system to simulate the process of buying a rail ticket
It uses drogon framework as the backend and cpp-httplib as the client
requirements:
sudo apt install mariadb-server
in macOS
brew install mariadb
drogon framework
fmt
jwt-cpp
It'll be recommend to install them using vcpkg
git clone https://github.com/Microsoft/vcpkg.git
./vcpkg/bootstrap-vcpkg.sh
vcpkg integrate install
vcpkg install [packages to install]
to install these dependencies using vcpkg
[path to vcpkg] install drogon drogon[mysql] cpp-httplib fmt jwt-cpp
mkdir build
./build.sh
# to run the server
./serve.sh
# to run the client
./client.sh