/cpp-http-service

Simple HTTP Service using winsock and default system socket for unix system

Primary LanguageC++

C++ HTTP Service

About The Project

Simple HTTP Service using winsock and default system socket for unix system

Conclusion

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.

Geting Started

Prerequisites

Here are things you need to prepare:

  • C++ compiler (MinGW or else)
  • Bash Script (Optional)

Installation

Using Git

  • 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

Using Zip File

  • Download from github web using this url
https://github.com/Sleepy4k/cpp-http-service/archive/refs/heads/main.zip
  • Unzip zip file

Build Project

Using bat script

  • Run bat file (if you don't have bash in your system)
./run.bat

Using bash script

  • Run shell script (please open it from bash terminal to prevent error)
./run.sh

Using command line

  • Run this command on console line (terminal)
g++ -std=c++11 ./index.cpp  -o ./index -lws2_32
  • Run built app
./index