🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

litesrv

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

litesrv

A simple HTTP server written in C++

latest
Source
npmnpm
Version
0.0.4
Version published
Weekly downloads
14
-46.15%
Maintainers
1
Weekly downloads
 
Created
Source

litesrv, a simple HTTP Server

This is a simple HTTP server written in C++ using the Boost.Asio library.

Prerequisites

Make sure you have the following installed on your system:

  • C++ compiler (e.g., g++)
  • CMake
  • Boost library

On Ubuntu/Debian:

sudo apt-get install g++ cmake libboost-all-dev

On macOS using Homebrew:

brew install g++ cmake boost

Building the Project

  • 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:

Running the Server

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!.

License

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.

Keywords

HTTP

FAQs

Package last updated on 08 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts