C++支持 cookie 和 SQL 的 Web 框架
晚上好,
我正在建立一个网站,看起来像这样: 所以可能以小部件为中心的 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:
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
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.]
我认识到您可以在应用程序中使用这些 Wt (http://webtoolkit.eu/wt) 小部件:
只需将它们组合到您的应用程序中...
I recognise these Wt (http://webtoolkit.eu/wt) widgets you can use for your app:
Simply combine them for your application...
BinaryTiers 提供了一个完整的 Web 开发环境,包括使常见 Web 开发任务变得更容易的所有工具。 BinaryTiers 内置的一些基本工具和功能包括:
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:
看看 ffead-cpp,它可能可以满足您的需求,并提供更多功能。 ..
Have look at ffead-cpp, it probably does what you need and provides a lot more...