Skip to content

A dockerized C++ web application skeleton.

License

Notifications You must be signed in to change notification settings

Tushar-Harsora/cpprest

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 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 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.

About

A dockerized C++ web application skeleton.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 48.4%
  • CMake 33.9%
  • Shell 10.0%
  • Dockerfile 7.7%