jyono / cppweb

This is a sample C++ web server written with crow and docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sample app using C++ and crow for a web server

Crow: https://github.com/ipkn/crow

DOCKER

build container(first time may take a while):

cd cppbox

docker build -t cppbox

verify install. if it succeeded, this will show a bunch of boost files.

docker run -it cppbox:latest bash

find usr/ -name libboost*.*

project build build:

add a volume and run using cppbox image. type exit to leave the container

sudo docker run -v ~/jordydev/cppweb:/usr/src/cppweb -it cppbox:latest bash

cd /usr/src/cppweb/build/hello_crow/build

make

run the web server:

sudo docker run -v /path/on/local/cppweb -p 4000:4000 -e PORT=4000 -it cppbox:latest /usr/src/cppweb/hello_crow/build/hello_crow

About

This is a sample C++ web server written with crow and docker


Languages

Language:C++ 89.4%Language:C 4.7%Language:CMake 3.3%Language:Makefile 2.6%Language:Dockerfile 0.0%