对于带有评论的简单博客来说,什么是好的 LAMP 堆栈源代码?
您好,我想创建一个简单的博客,用户可以在其中发表评论,但我真的不想使用较重的代码生成器或框架之一,如 Django、RoR 或 Wordpress。原因是我需要从内到外学习这些东西,因为我的项目将来需要大量“从基础开始”的编程(因为它将发展成为一个专业的金融导向网站,具有用户可提交的投资组合,这实际上是博客的一个很大的演变,即使最初的结构是相似的)。我是一名出色的金融/量化程序员,但对网络开发还相当陌生。
可能让我开始的最好的、“精简”的源代码是什么?我可以根据自己的愿景轻松定制一些东西? KISS 原则适用,但我希望它能够理想地完成诸如用户和身份验证之类的基础工作。
更喜欢纯 PHP 和/或 Python,但我愿意接受建议。
Hello I want to create a simple blog where users can post comments, but I don't really want to get into one of the heavier code generators or frameworks like Django or RoR or Wordpress. Reason is I need to learn this stuff from the inside out, given that my project will require a lot of programming "from basics" in the future (since it'll evolve into a specialist finance-oriented site with user-submittable portfolios, which is actually quite a big evolution from a blog, even if the initial structure is similar). I'm an accomplished finance/quant programmer but am fairly new to web development.
What's the best, "lean and mean" piece of source code that might get me started? Something I can easily customize to my own vision?. KISS-principle applies, but I'd like it to do basics like users and authentification and stuff ideally though.
Would prefer pure PHP and/or Python, but am open to suggestions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您可能希望查看 web.py 作为 python 中 Web 应用程序的简约“框架”。或者 ruby 中的 sinatrarb 。它应该为您提供 HTTP、URL 和请求处理的基本入门。尽管后者是用 ruby 编写的,但“框架”本身由大约 1500 行代码组成,并且具有很强的可读性。
在 php 框架方面,symphony 将是一个选项。
You might want so check out web.py as minimalistic 'framework' for webapplications in python. Or sinatrarb in ruby. It should give you a basic start in HTTP, URLs and request handling. Even though the latter is in ruby, the 'framework' itself consist of about 1500 lines of code and is quite readable.
On the php framework side, symphony would be an option.
这是一个基于php的博客软件。
http://sourceforge.net/projects/sphpblog/
应该可以在任何 AMP 安装下工作。
Here's a php based blog software.
http://sourceforge.net/projects/sphpblog/
Should work under any AMP installation.
如果您不是在寻找完全独立的代码:
顺便说一句,几乎每个可用的框架(至少在 PHP 世界中)都附带了“如何创建自己的博客”示例,因此您实际上有多种选择。有很多关于最好的 PHP 框架的列表和问题,所以我不会打开另一个列表。检查例如这个 ,或这个。
无论是 PHP、Python 还是其他工具,您都可以通过浏览相应的“使用哪个框架?”来找到您选择的工具。关于SO的主题。
If you are not looking for totally stand-alone code:
Incidentally, almost every available framework (at least in the PHP world) comes with a "how to create your own blog" example so you actually have a wide selection there. There are a lot of lists and questions regarding the best PHP framework on SO so I'm not opening another list. Check for example this, or this.
Be it PHP, Python or something else, you may find the tool of your choice by browsing through the respective "which framework to use?" topics on SO.
我认为 Blosxom 可能会满足您的需求: http://www.blosxom.com/
相当简约,并提供通过插件提供评论、身份验证和其他功能。
I think Blosxom might meet your needs: http://www.blosxom.com/
Pretty minimalist, and provides comments, authentication, and other features via plug-ins.