C++支持 cookie 和 SQL 的 Web 框架

发布于 2024-11-13 01:30:28 字数 634 浏览 1 评论 0原文

晚上好,

我正在建立一个网站,看起来像这样: 样机 所以可能以小部件为中心的 Web 框架是最好的...

哪个 C++ Web 框架支持 cookie(用于用户登录 [会话] 存储+配置存储)和 SQL(MySQL 或 SQLite)?

我关于 Wt 的信息已经过时了,看起来他们现在完全支持 cookie (http ://redmine.webtoolkit.eu/boards/1/topics/2111

然而,CppCMS 拥有一个充满活力的社区,并且该产品似乎可以更好地扩展。

我将做外交工作,使用这两个框架创建一个项目。

这将是一个精简版本,仅包含:

  • 用户注册
  • 用户登录/注销(包括在取消身份验证时重定向并尝试访问身份验证页面)
  • 搜索
  • 一些基本参数在屏幕上传递结果(请参阅初始线框以获取参考)

应该是一个有趣的项目...我想知道过去是否有人这样做过?!

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?!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

廻憶裏菂餘溫 2024-11-20 01:30:28

Cookie 支持和 SQL 后端支持是基本的东西,所以我猜所有的 Web 框架都支持它们。

我是 cppcms 的一名非常满意的用户,我可以向您保证它可以完成您要求的所有事情。

Cppcms 的 SQL 后端使用由同一开发人员创建的 cppdb,它支持 MySQL、SQLite、Postgres 等,此外还支持连接池和其他不错的功能。

配置存储很简单,使用 json 格式。 cppcms 还有一个很好的缓存框架,以及一个很好的 API 来创建表单、异步请求、长拉取等。模板引擎既简单又非常强大,允许将界面和应用程序逻辑分离。

更重要的是,可能是我最喜欢 cppcms 的地方,它的支持非常好。订阅cpcms官方邮件列表:cpcms创建者Artyom总是非常耐心地回复请求。就我个人而言,我希望寻求支持的人们能够为 cppcms wiki 做出更多贡献,所以当您加入我们时请记住这一点。

[编辑:实际上,我注意到您今年 4 月在 cppcms 邮件列表上提出了完全相同的问题,并发布了完全相同的屏幕截图。我本人和其他人善意地花时间回答您,但您从未回复或感谢我们的时间和建议。您可能会继续到处问同样的问题,但请尝试更加感激那些花时间回答您的人。良好的社交礼仪永远不会有坏处。]

Cookie support and SQL backend support are basic things, so I guess all web frameworks support them.

I am a very happy user of cppcms and I can assure you it can do all the things you ask for.

Cppcms' SQL backend uses cppdb, created by the same developer, which supports MySQL, SQLite, Postgres, and others, in addition to supporting connection pooling and other nice features.

Config storage is easy, using a json format. The cppcms also has a nice caching framework, as well as a nice API to create forms, asynchronous requests, long pulling, etc. The templating engine is both simple and very powerful, allowing for a separation of the interface and the application logic.

What's more, probably the thing I like the most about cppcms, the support is very good. Subscribe to the official cppcms mailing list: Artyom, the cppcms creator, is always very patiently replying to requests. Personally, I wished the people asking for support were contributing more to the cppcms wiki, so remember that when you join us.

[Edit: Actually, I noticed you asked the very same question on the cppcms mailing list in April this year, posting the very same screenshot. Myself and other kindly took the time to answer you, but you never replied nor thanked us for our time and advice. You may continue asking the same question all over the place, but please try to be more appreciative of the people who are giving a bit of their time to answer you. Good social manners never hurt.]

明月夜 2024-11-20 01:30:28

我认识到您可以在应用程序中使用这些 Wt (http://webtoolkit.eu/wt) 小部件:

  • 图表: WCartesianChart
  • 下拉框: WComboBox
  • 模型和过滤器代理模型: WSortFilterProxyModel、WAbstractItemModel
  • 列表(视图):
  • 带可拖动拆分器的 WTableView 布局管理器: WHBoxLayout
  • 选项卡:
  • 右侧的 WTabWidget 面板:
  • 左侧的 WPanel 建议弹出窗口: WSuggestionPopup
  • WLineEdit
  • 数据库访问: Wt::Dbo(ORM),或任何您喜欢的
  • cookie 在 Wt 中都得到很好的支持,请参阅 WEnvironment 和 WApplication 中与 cookie 相关的方法

只需将它们组合到您的应用程序中...

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...

千寻… 2024-11-20 01:30:28

BinaryTiers 提供了一个完整的 Web 开发环境,包括使常见 Web 开发任务变得更容易的所有工具。 BinaryTiers 内置的一些基本工具和功能包括:

  • 表单验证系统架构
  • 具有内置分类和内容翻译的摘要发布架构
  • 用户帐户注册和维护
  • 菜单管理和友好 URL
  • RSS 提要聚合和聚合
  • 系统管理和 Web 界面GNU C++ 编译器
  • 用于 No-SQL 数据存储以及关系数据库的连贯编程接口,具有 Redis 和 MySQL
  • 模板系统以及简单的页面布局定制
  • 提供高扩展性的模块化设计
  • 高速 HTTP 通信(获取、发布、Cookie、文件)
  • 内置编码和加密功能
  • 多平台:Linux、BSD、OSX 和 Windows

BinaryTiers provides a complete web development environment, including all the tools that make common web development tasks easier out of the box. Some of the fundamental tools and features built-in BinaryTiers include:

  • Forms validation system architecture
  • Abstract Publishing Architecture with built-in categorization and content translation
  • User account registration and maintenance
  • Menu management and friendly URLs
  • RSS-feed aggregation and syndication
  • System administration and web interface for the GNU C++ compilers
  • Coherent programming interface for No-SQL data stores as well as relational databases with Redis and MySQL
  • Template System and easy page layout customization
  • Modular design that provides high extensibility
  • High Speed HTTP Communication (Get, Post, Cookies, Files)
  • Built-in Encoding and Encryption functions
  • Multiplatform: Linux, BSD, OSX and Windows
野心澎湃 2024-11-20 01:30:28

看看 ffead-cpp,它可能可以满足您的需求,并提供更多功能。 ..

Have look at ffead-cpp, it probably does what you need and provides a lot more...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文