This is a template for creating websites in C++ using the Pistache framework.
Well, maybe you wouldn't. I know I definitely do. I'm a very object oriented person, and have always disliked the rigidness of HTML/XML. I found the Pistache framework and was thrilled with the speed of it, but felt it lackluster to deal with strings of HTML code. So, I built this template to help make creating websites using this framework a bit easier.
Firstly, make sure you have both the g++ compiler and the Pistache libraries installed. This works best with a Debian machine or WSL on Windows. Install the Pistache library package for Debian:
$ sudo apt install libpistache-dev
You can then compile the project using this command:
$ g++ src/main.cpp -o my-website -lpistache
From there, you can run the website locally:
$ ./my-website 8080
After that, navigate your browser to localhost:8080
to view the website.