Simple HTTP Service using winsock and default system socket for unix system
On this project we learn how to create http service using winsock and default system socket with c++, it's not the end i should learn how to manage routing system, implement api support, and other feature.
Here are things you need to prepare:
- C++ compiler (MinGW or else)
- Bash Script (Optional)
- Clone this project from github using git
git clone https://github.com/sleepy4k/cpp-http-service.git
- Go to the project directory
cd cpp-http-service
- Download from github web using this url
https://github.com/Sleepy4k/cpp-http-service/archive/refs/heads/main.zip
- Unzip zip file
- Run bat file (if you don't have bash in your system)
./run.bat
- Run shell script (please open it from bash terminal to prevent error)
./run.sh
- Run this command on console line (terminal)
g++ -std=c++11 ./index.cpp -o ./index -lws2_32
- Run built app
./index