Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 1.71 KB

File metadata and controls

45 lines (34 loc) · 1.71 KB
#    ██╗    ██╗███████╗██████╗ ███████╗███████╗██████╗ ██╗   ██╗███████╗██████╗
#    ██║    ██║██╔════╝██╔══██╗██╔════╝██╔════╝██╔══██╗██║   ██║██╔════╝██╔══██╗
#    ██║ █╗ ██║█████╗  ██████╔╝███████╗█████╗  ██████╔╝██║   ██║█████╗  ██████╔╝
#    ██║███╗██║██╔══╝  ██╔══██╗╚════██║██╔══╝  ██╔══██╗╚██╗ ██╔╝██╔══╝  ██╔══██╗
#    ╚███╔███╔╝███████╗██████╔╝███████║███████╗██║  ██║ ╚████╔╝ ███████╗██║  ██║
#     ╚══╝╚══╝ ╚══════╝╚═════╝ ╚══════╝╚══════╝╚═╝  ╚═╝  ╚═══╝  ╚══════╝╚═╝  ╚═╝
#

A simple web server written in C++. Following Eric's Tutorials on web server.

Dependencies

  • C++17 or later
  • POSIX-compliant operating system (e.g., Linux, macOS)
  • A C++ compiler (e.g., g++)
  • Netcat (for testing)

Build and Run

# Build
make
# Run
./bin/webserver

or

# Build (if needed) and Run
make run

Test

# Test with netcat
nc localhost 8080