Skip to content

Simple webserver implemented as a weekend project for learning purposes

Notifications You must be signed in to change notification settings

tcm-marcel/webserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Webserver written in C++

Simple webserver implemented as a weekend project for learning purposes. Not intended to work out of the Box for most scenarios. Extended a few times with some smaller features like HTTP authorization.

This will probably server as a base for future projects that need some HTTP functionality.

Build and Run Webserver

# Build binary
make bin/webserver -j 4
# Run example file handler on port 8080 with root path as home, and test/test as credentials
bin/webserver 8080 ~ test test

Build and Run Unit Tests

# Build test binary
make tests -j 4
# Run unit tests
bin/unit_tests

Build configurations

The Makefile supports a release mode and running different sanitizers. All of these options need a manual make clean beforehand.

RELEASE=1 make tests -j 4
SANITIZER=MEMORY make all -j 4
SANITIZER=ADDRESS make all -j 4

About

Simple webserver implemented as a weekend project for learning purposes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published