4
4
4gn2015-10-23 00:47:11
C++ / C#
4gn, 2015-10-23 00:47:11

How to make a simple blog in C++?

I want to try to make a website that is fast, not demanding.
I want to make simple static html for this
and rebuild them if necessary. it will be a multi-user and multi-lingual site.
I saw the site of a large company: vseti.ru but it is written for Muscovites: it is very demanding on resources and line width.
and it is important for me that my site opens on any device and is super-fast. so static html is what I need.
for the authors of the site will be created section Cabinet - which will have all the functions of working with the content.
the daemon will update the sections and publish the added content.
there will be no databases, because in my opinion, the content will be simple and all this can be stored in ordinary files.
What I saw:
On the stack they say that in the hands of beginners this will not work or will be worse than normal php.
here I found ready-made solutions www.chilkatsoft.com/refdoc/cpp.asp
and there is also WebToolkit.eu - but it is complex and large.
how can I make a site that will create regular static html files and will also have a form for creating new materials, adding headings?
I already tried to display Hello world on a simple shared hosting and I succeeded, I'm glad.
I just wrote a file like:

#include <iostream>
using namespace std;

int main() {
    cout << "Hello World!";
    return 0;
}

otkompiliroval, put in the folder cgi-bin called it hello.cgi opened like this: rumyru .ru /cgi-bin/hello.cgi and I got what I wanted.
now I want to learn how to make cms))
I can:
make a page template and collect html files and put them in the right folders on the site.
I want to know:
and how can I learn to upload files and accept post requests in c++, as well as read and write cookies?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
Oleg, 2015-10-23
@Screpka

Why even use C++ for the web? It's like a hovercraft tractor floating on water.
PhP, Node.js the same, why are they bad?

V
Vladimir Martyanov, 2015-10-23
@vilgeforce

Start by learning about the HTTP protocol, specifically how cookies are transmitted.

D
Dmitry, 2015-10-23
@dmtrrr

Forget about C++, get ready-made static site generator,
https://staticsitegenerators.net/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question