- tools
sudo apt-get install build-essential g++ gdb cmake ninja-build- tools
-
On windows
E: cd \ git clone https://github.com/microsoft/vcpkg.git vcpkg && cd vcpkg && bootstrap-vcpkg.bat setx VCPKG_ROOT "E:\vcpkg" setx PATH "%PATH%;E:\vcpkg"
-
On linux
git clone https://github.com/microsoft/vcpkg.git vcpkg && cd vcpkg && ./bootstrap-vcpkg.sh export VCPKG_ROOT=$PWD echo "export VCPKG_ROOT=$PWD" >> ~/.zshrc
-
create presets for windows and linux, see example in
CMakePresets.json -
install packages, this should update
vcpkg.jsonfilevcpkg install fmt vcpkg install spdlog # https://github.com/gabime/spdlog vcpkg install gtest vcpkg install cpp-httplib # https://github.com/yhirose/cpp-httplib vcpkg install nlohmann-json # https://github.com/nlohmann/json vcpkg install jwt-cpp # https://github.com/Thalhammer/jwt-cpp
- how to use cmake for windows and linux
- manage dependencies using vcpkg
- implement logging and metrics
- use jwt for authentication
- use nlohmann-json for serialization
- implement rest api using httplib
- implement rest api using iis core on windows