Hello! This project is an experimental build for my Software Development course this semester, where I'm required to use C programming and a .txt
file as the database.
Since I couldn't use a modern database, I decided to create a basic one using a .txt
file. Along the way, I wondered: could I build a web server in C that relies solely on a single text file for data storage? And here we are—Esspress was born, developed with socket programming and designed to handle basic HTTP requests.
This project is a minimal web server that listens on a specified port and supports simple /GET
requests.
-
Clone the repository:
git clone git@github.com:uthsobcb/esspress.git
-
Change into the project directory:
cd esspress
-
Compile the server code:
gcc http_server.c -o http_server
-
Run the server:
./http_server
-
Open your browser and navigate to localhost:8001
To use the/GET
request, go to localhost:8001/data
This is a fun and exploratory project! Contributions are welcome, especially if you’re interested in adding POST
, DELETE
, or PUT
request support.
Thanks for checking it out!