News for hackers. Stuff that matters.

Ask HN: Web application in C++, where to start?

I am an idea for a CRUD application that I would like to develop in c++. The language choice is mostly driven by the fact that it's the language I am the most familiar with , and the deployment story is usually easier . Looking around , I can't really see any web framework with battery included a la django/flask/rails/laravel etc...

Anybody using C++ for the web ? What's the typical C++ web app structure like ?

Right now i am thinking of using an async http library on the backend (proxygen or boost.asio) + postgres and manual ORM; And on the client side i am leaning toward using a pure client side solution (like react) and limiting the server to a pure API server with no html/view and mostly json data. Any comment is appreciated

( 4 comments | 3 points | on HN )
Re:Ask HN: Web application in C++, where to start? by elchief on Wednesday December 20, 2017 @02:21PM (#15972821)
Not C++, but there's BCHS: OpenBSD + C + httpd + SqLite

https://learnbchs.org

It's good because OpenBSD has https://man.openbsd.org/pledge, which makes web programming in C safer

Re:Ask HN: Web application in C++, where to start? by iamvnraju on Wednesday December 20, 2017 @05:36AM (#15968501)
Have a look at Beast library. It is a part of the latest Boost libraries (1.66). http://www.boost.org/users/history/version_1_66_0.html
Re:Ask HN: Web application in C++, where to start? by glaand on Wednesday December 20, 2017 @01:11AM (#15967439)
It's a nice a idea though. I mean, every programmer wishes to have his application written in the best, fastest programming language that exists in the universe. But look, HTTP with C++ will just give you the double of the work. The most similiar language you could use, i would say C#. Take a look at ASP.NET, it's a great framework too :) !
Re:Ask HN: Web application in C++, where to start? by soulbadguy on Wednesday December 20, 2017 @12:49PM (#15971911)
Actually speed is not the main concern for me. I don't plan to the request volume where that would matter. I just want to use the language i know the best and not have to learn something new just to whip out a new prototype. C# and .Net core is actually my second choice is the C++ Web app ecosystem turns out to be to not mature enough