Posts

Showing posts with the label c

Building a C HTTPS Server with Docker, PostgreSQL, and a Modern Frontend: Lessons Learned

Building a C HTTPS Server with Docker, PostgreSQL, and a Modern Frontend: Lessons Learned So I was a bit bored about doing stuff in nodejs, so I decided to explore more options, I know there is Java and .Net but to be honest I was looking outside the OOP world In which I started to think about my game development days using C++ which to be honest was really fun, but again I didnt want to use OOP. Then I realize there is C which is not OOP but you can use a lot of tricks to organize code. The problem with C is that I was not that familiar to use large projects , in which I had to learn CMake , VCPKG and so on. To see my results in code you can check my github repo: C-Server Repo 1. C as a Backend Language for Web Servers We built a web server in C, handling HTTPS connections using OpenSSL. This required careful management of memory, file I/O, and string parsing for HTTP requests....