nipunchamikara / c-web-server

A static web server written in C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

C Web Server

License: MIT

A simple static web server made using socket programming in C.

Getting started

In order to build the server, GNC GCC must be installed in your system.

GNU Make can also be installed if you want to use the make command.

Building and running the server

To compile the programme using GCC, run:

gcc -Wall -Wextra -g -o server server.c

To run the server:

./server

Using make, we can build and run the server with ease.

To build the server:

make build

To build and run the server:

make run

To terminate the server, you can hit Ctrl + C within the terminal.

Serving web pages

You can create and place static web pages in the htdocs folder which will be served when the server is running.

Contributing

Feel free to contribute to this project and treat it as your own.

Author

Nipun Chamikara Weerasiri - nipunchamikara

About

A static web server written in C

License:MIT License


Languages

Language:C 55.5%Language:HTML 38.7%Language:JavaScript 4.1%Language:Makefile 1.1%Language:CSS 0.6%