简体   繁体   English

对于一个带注释的简单博客,LAMP堆栈源代码有什么用?

[英]What's a good piece of LAMP-stack source code for a simple blog w/ comments?

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. 您好,我想创建一个简单的博客,用户可以在其中发表评论,但是我真的不想进入更重的代码生成器或框架之一,例如Django或RoR或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. 我是一个精通财务/定量编程的人,但是对于Web开发是相当新的。

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. KISS原则适用,但我希望它能做一些理想的基础,例如用户,身份验证和类似的东西。

Would prefer pure PHP and/or Python, but am open to suggestions. 希望使用纯PHP和/或Python,但愿意接受建议。

You might want so check out web.py as minimalistic 'framework' for webapplications in python. 您可能需要将web.py作为python中的web应用程序的简约“框架”进行检出。 Or sinatrarb in ruby. 或在红宝石中的sinatrarb It should give you a basic start in HTTP, URLs and request handling. 它应该为您提供HTTP,URL和请求处理的基本入门。 Even though the latter is in ruby, the 'framework' itself consist of about 1500 lines of code and is quite readable. 即使后者是红宝石,“框架”本身也包含大约1500行代码,并且可读性强。

On the php framework side, symphony would be an option. 在php框架方面, 交响乐是一种选择。

Here's a php based blog software. 这是一个基于php的博客软件。 http://sourceforge.net/projects/sphpblog/ http://sourceforge.net/projects/sphpblog/
Should work under any AMP installation. 应该在任何AMP安装下都可以工作。

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. 顺便说一下,几乎每个可用的框架(至少在PHP世界中)都带有“如何创建自己的博客”示例,因此实际上您可以在其中进行多种选择。 There are a lot of lists and questions regarding the best PHP framework on SO so I'm not opening another list. 关于SO上最好的PHP框架,有很多列表和问题,所以我不再打开其他列表。 Check for example this , or this . 例如检查thisthis

Be it PHP, Python or something else, you may find the tool of your choice by browsing through the respective "which framework to use?" 无论是PHP,Python还是其他工具,您都可以通过浏览各自的“使用哪个框架”来找到所需的工具。 topics on SO. SO主题。

I think Blosxom might meet your needs: http://www.blosxom.com/ 我认为Blosxom可能会满足您的需求: http : //www.blosxom.com/

Pretty minimalist, and provides comments, authentication, and other features via plug-ins. 非常简约,并通过插件提供注释,身份验证和其他功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM