Skip to content
This repository has been archived by the owner on Aug 23, 2021. It is now read-only.

NikolajLeischner/cpprest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

Installation

The sample currently only runs on macOS and via Docker.

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.

About

A dockerized C++ web application skeleton.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published