Search code examples
wtcppcms

C++ Web-framework with cookie and SQL support


Good Evening,

I'm building a website which will will look something like this: Mockup So probably a widget-centred web-framework would be best...

Which C++ web-framework supports cookies (for user-login [session] storage+config storage) and SQL (MySQL or SQLite)?

My information about Wt was outdated, it looks like they now have full-support for cookies (http://redmine.webtoolkit.eu/boards/1/topics/2111)

CppCMS however has a vibrant community, and there product seems to scale better.

I will do the diplomatic thing, create a project using both frameworks.

It will be a cutdown version with only:

  • User registration
  • User login/logout (including redirect if deauthed and trying to access auth-req page)
  • Search
  • Some basic argument passing of results across screen (see initial wireframe for ref)

Should be an interesting project... I wonder if any have done this in the past?!


Solution

  • I recognise these Wt (http://webtoolkit.eu/wt) widgets you can use for your app:

    • charts: WCartesianChart
    • dropdown boxes: WComboBox
    • models and filter proxy models: WSortFilterProxyModel, WAbstractItemModel
    • the lists (views): WTableView
    • layout managers with draggable splitters: WHBoxLayout
    • tabs: WTabWidget
    • panel on the right: WPanel
    • suggestion popup on the left: WSuggestionPopup
    • WLineEdit
    • database access: Wt::Dbo (an ORM), or anything else you prefer
    • cookies are well supported in Wt, see cookie related methods in WEnvironment and WApplication

    Simply combine them for your application...