This is a full-stack command-line web server simulation for managing an Office Hours Queue System, built entirely in modern C++. The project features a custom-built doubly linked list container and a simulated RESTful API backend for managing queue operations in a clean and efficient manner.
The system supports standard HTTP-style request/response interactions and JSON-based communication, simulating real-world backend behavior for managing client-server state.
new, delete)| File | Description |
|---|---|
List.hpp |
Custom doubly linked list implementation (template-based) |
List_tests.cpp |
Unit tests for validating all list functionality |
api.cpp |
(Optional) RESTful API simulation using the custom list |
server.py |
Simple HTTP wrapper to simulate a web server |
json.hpp |
Header-only JSON parser (nlohmann/json) |
index.html |
Frontend UI to interact with the queue system |
*.in / *.out.correct |
Sample API test inputs and expected outputs |
Custom List Container
.insert(), .erase(), .begin(), .end()Queue Management REST API
GET /api/ – API metadataGET /api/queue/ – Full queue listGET /api/queue/head/ – Head of the queuePOST /api/queue/tail/ – Enqueue new userDELETE /api/queue/head/ – Dequeue head userRealistic Request/Response Parsing
Content-Length200 OK, 201 Created, 400 Bad Request, etc.)make List_tests.exe
./List_tests.exe