Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 867 Bytes

README.md

File metadata and controls

25 lines (15 loc) · 867 Bytes

A dockerized REST "Hello World" written in C++.

The code uses CPPRestSDK and is partially based on this sample.

Installation

The sample now runs on MacOS and Linux, Windows is not tested

macOS

  • Install XCode.
  • brew install git cmake boost
  • ./libs/build_dependencies.sh

Build & Run

  • cmake -DCMAKE_BUILD_TYPE=Release . && cmake --build . - Replace Release with Debug for a build with debug symbols.
  • ./crest <PORT>

Docker

  • docker-compose build && docker-compose up
  • Re-build the container after changing code: docker-compose down && docker-compose build && docker-compose up

The very first build will take several minutes as it e.g. builds a more recent version of CMake from source. Subsequent builds will only re-compile the code in /app.