jolks / crow-template

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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


Languages

Language:C++ 91.0%Language:C 8.1%Language:CMake 0.5%Language:Python 0.2%Language:Dockerfile 0.0%Language:Shell 0.0%Language:Makefile 0.0%