HiJoke

A web server writen in cpp

Stars
13

HiJoke

A web server writen by cpp

dependent

Cppcms Cppdb libcurl boost

compile and run

compile the views: run the command "./start.sh views" compile the projection: run the command "./start.sh compile" run the projection: run the command "./start.sh run"

build and debug in docker

Use steeze/cppcms:latest to build this project. First, run docker pull steeze/cppcms:latest to download the image. Then run docker run -itd --name {container-name} -v {host path}:{container path} -p 20022:22 -p 28888:8888 -d steeze/cppcms:latest to create a container. Use Clion Remote Debug to build and debug this project in docker. Set Clion Remote Debug and then click Tools -> Resync with Remote Hosts to sync C/C++ headers to local.

the iOS client

this projection is a web server, this projection is an iOS client. iOS client

documentation

uri method params response summary
/register post username:stringpassword:string json
/login post username:stringpassword:string json
/logout post json
/jokes get first_index:intlength:int json
/write-joke post title:stringcontent:string json user write joke, need login
/get-comment get joke_id:int json
/write-comment post joke_id:intusercode:stringcomment:string json user write comment, need login