Skip to content

Latest commit

 

History

History
36 lines (31 loc) · 912 Bytes

README.md

File metadata and controls

36 lines (31 loc) · 912 Bytes

crow-template

Template to quickly get started with Crow C++ micro web framework.

To Run on Docker

docker build -t crow-cpp .
docker run -p 8080:8080 crow-cpp

Installation steps

  • 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

Steps to get started

$ ./compile.sh
$ ./build/src/example

Shortcut

Refer to shortcut directory. This does not require cmake. Simpler way to get started.

Important files

  • src/example.cpp - Your web app code.
  • src/CMakeLists.txt - Edit this file if there is new source code or HTML template file.