Skip to content

kunstewi/c-http-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quickstart

To run this http server locally

  1. Prerequisites: Ensure you have gcc and C installed.
  2. Run the http server: Execute the following command in your terminal:

Clone the repository

git clone https://github.com/kunstewi/c-http-server

Go into the directory fo c-http-server

cd c-http-server

Run make to create the binary of main.c

make

Execute the binary

./http_server

You 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

About

A http server from scratch written in C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published