share
Stack OverflowWhich is the best C++ web framework?
[+98] [5] gath
[2009-04-14 04:14:27]
[ c++ web-frameworks ]
[ http://stackoverflow.com/questions/746309/which-is-the-best-c-web-framework ] [DELETED]

Are there C++ frameworks out there which resemble Django [1] / Python [2], Symfony [3] / PHP [4], or Spring [5] / Java [6]?

Those are web frameworks... what are you trying to do? - Mark
While Wt is GPL + commerical license, cppCMS is LGPL. Is there a C++ web framework with a non-GPL / more proprietary-friendly license? - phaedrus
As far as I know, CppCMS offers a commercial license as well. - Pavel Radzivilovsky
(2) It's closed as it is asking for opinion, rather than factual answers. - Jharwood
(1) There is something incredibly wrong to close such question, either you delete it, or keep it open, the answer will forever point to the 2009 reality. - user457015
The question is asking if such frameworks exist, not which is best. So it is, in fact, asking for factual answers. It's funny, though. Even though the question is closed, it's still answered. And I personally found the answer quite useful. - user1043793
[+54] [2009-05-10 11:28:45] Artyom

CppCMS [1]

It is an MVC [2] framework that had taken many ideas from Django [3].

[1] http://cppcms.sourceforge.net
[2] https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller
[3] http://en.wikipedia.org/wiki/Django_%28web_framework%29

(2) It looks more promising than Wt because it obeys separation of concerns principle of django. - hamdiakoguz
(8) +1 CppCMS is more of a web framework then Wt. - jpyllman
1
[+50] [2009-04-14 07:48:43] Jesus Fernandez [ACCEPTED]

The best solution avaliable for you is Wt [1] (Web Toolkit) that allows you to create high performance Ajax [2] applications and is inspired on Nokia's Qt [3].

Anyway, I want you to know that C++ applications won't work on all web servers, because they have dependencies and require an extra Apache [4] module or a custom httpd [5] (web server).

[1] http://www.webtoolkit.eu/wt#/
[2] http://en.wikipedia.org/wiki/Ajax_%28programming%29
[3] https://en.wikipedia.org/wiki/Qt_%28software%29
[4] http://en.wikipedia.org/wiki/Apache_HTTP_Server
[5] https://en.wikipedia.org/wiki/Httpd

(5) You can use nginx as a web server through CGI. - user142019
Wt's built in server works very well as well, and you can easily reverse proxy to a Wt app using Nginx (I'm not Apache savvy, so I don't know how easy it is in Apache). - Tom Thorogood
@TomThorogood In Apache, it takes two simple lines of config code and a restart to reverse proxy. :) - halfnibble
You can make your own server, but just takes a lot of effort tomake it stable and scalable - texasbruce
2
[+19] [2009-04-14 07:18:46] yesraaj

Here is one web toolkit in C++ Wt [1] (pronounced 'witty') is a C++ library and application server for developing and deploying web applications. It is not a 'framework', which enforces a way of programming, but a library.

[1] http://www.webtoolkit.eu/wt

3
[+13] [2011-04-13 16:13:40] Gandalf

TreeFrog Framework is a high-speed and full-stack C++ framework for developing Web applications. You can see it here: http://www.treefrogframework.org/


4
[+12] [2010-07-28 08:35:15] Sumeet

Check out the ffead [1] C++ application framework. It's developed on the lines of Spring [2] for Java.

[1] http://code.google.com/p/ffead-cpp/
[2] http://en.wikipedia.org/wiki/Spring_Framework

5