Skip to content

oreomaker/rail-ticket-system

Repository files navigation

The Rail Ticket System

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

How to run

requirements:

mariadb

sudo apt install mariadb-server

in macOS

brew install mariadb

Others

drogon framework

cpp-httplib

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

Build

mkdir build
./build.sh

Run

# to run the server
./serve.sh
# to run the client
./client.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published