litesrv
A simple HTTP server written in C++
This is a simple HTTP server written in C++ using the Boost.Asio library.
Make sure you have the following installed on your system:
- C++ compiler (e.g.,
g++
) - CMake
- Boost library
sudo apt-get install g++ cmake libboost-all-dev
brew install g++ cmake boost
- Clone the repository:
git clone https://github.com/jkup/litesrv.git
cd litesrv
- Create and navigate to the build directory:
mkdir build
cd build
- Run CMake to configure the project:
cmake ..
- Build the project:
After building the project, you can run the HTTP server:
./http_server
The server will start and listen on port 8080. You can test it by opening a web browser or using curl:
curl http://localhost:8080
You should see the response Hello, World!.
This project is licensed under the MIT License. See the LICENSE file for details.
This `README.md` provides a concise guide on how to set up the environment, build the project, and run the server.