To run this http server locally
- Prerequisites: Ensure you have gcc and C installed.
- Run the http server: Execute the following command in your terminal:
Clone the repository
git clone https://github.com/kunstewi/c-http-serverGo into the directory fo c-http-server
cd c-http-serverRun make to create the binary of main.c
makeExecute the binary
./http_serverYou will see "listening on port 8080" on the terminal.
go to port 8080 to see the html page that is rendered via the http server from the www folder index.html.
if you want to delete the binary run -
make clean