Skip to content

ImreCsete/cppweb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cppweb

Web Server tutorial with Crow C++ web microframework.

Docker command cheatsheet (in order of appearance)

Build in cppbox

docker build -t cppbox .

Run cppbox bash to check boost library

docker run -ti cppbox:latest bash

Add volume in /cppweb

docker run -v %CD%:/usr/src/cppweb -ti cppbox:latest bash

Build with cmake in container /usr/src/cppweb/hello_crow/build

cmake .. && make

Launch server from /cppweb

docker run -v %CD%:/usr/src/cppweb -p 18080:18080 -e PORT=18080 hello_crow:latest /usr/src/cppweb/hello_crow/build/hello_crow

Build in /cppweb/hello_crow

docker build --rm --squash --no-cache -t hello_crow:latest .

Start with mongoDB

docker run -p 18080:18080 -e PORT=18080 -e MONGODB_URI="mongodb://heroku_2vnmsbhm:[email protected]:31070/heroku_2vnmsbhm" hello_crow:latest

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published