UCLA CS130: Winter 2017
Created using Boost C++ Library
$ git clone --recursive https://github.com/UCLA-CS130/Please-Hire-Us.git
$ sudo apt-get install libboost-all-dev
To build and run the web server with a config file named 'config':
$ make
$ ./server config
To clean up (necessary to do before building and running again):
$ make clean
To run all unit tests:
$ make test
To run all unit tests and check coverage:
$ make coverage
To run reverse proxy integration tests:
$ pip install psutil
$ make reverse_proxy_int_test
server.cpp
: Defines the server class, which initiates and runs the server processrequest.cpp
: Defines the request class, representing an HTTP requestresponse.cpp
: Defines the response class, representing an HTTP responserequest_handler.hpp
: The abstract base class for request handlingrequest_handler_echo.cpp
: Defines the EchoHandler class, which initiates and handles echo requestsrequest_handler_static.cpp
: Defines the StaticHandler class, which initiates and handles static requestsrequest_handler_status.cpp
: Defines the StatusHandler class, which initiates and handles status requestsrequest_handler_notFound.cpp
: Defines the NotFoundHandler class, which initiates and handles 404 not found requests
Each of the above .cpp files has an accompanying _test.cc
file containing unit tests for the respective class
- Michael Germano
- Austin Nasso
- Gil Bar-Or