Template to quickly get started with Crow C++ micro web framework.
docker build -t crow-cpp .
docker run -p 8080:8080 crow-cpp
- On Ubuntu
$ sudo apt-get install gcc
$ sudo apt-get install g++
$ sudo apt-get install build-essential libtcmalloc-minimal4 && sudo ln -s /usr/lib/libtcmalloc_minimal.so.4 /usr/lib/libtcmalloc_minimal.so
$ sudo apt-get install libboost-all-dev
$ sudo apt-get install cmake
- On OS X
$ brew install cmake
$ brew install boost google-perftools
$ ./compile.sh
$ ./build/src/example
Refer to shortcut
directory. This does not require cmake. Simpler way to get started.
- src/example.cpp - Your web app code.
- src/CMakeLists.txt - Edit this file if there is new source code or HTML template file.