最佳 Ruby on Rails 社交网络框架

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/48320/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-02 19:04:26  来源:igfitidea点击:

Best Ruby on Rails social networking framework

ruby-on-railsrubysocial-networking

提问by Candidasa

I'm planning on creating a social networking + MP3 lecture downloading / browsing / commenting / discovery website using Ruby on Rails. Partially for fun and also as a means to learn some Ruby on Rails. I'm looking for a social networking framework that I can use as a basis for my site. I don't want to re-invent the wheel.

我计划使用 Ruby on Rails 创建一个社交网络 + MP3 讲座下载/浏览/评论/发现网站。部分是为了好玩,也是为了学习一些 Ruby on Rails。我正在寻找一个社交网络框架,我可以将其用作我网站的基础。我不想重新发明轮子。

Searching the web I found three such frameworks. Which of these three would you recommend using and why?

在网上搜索我发现了三个这样的框架。您会推荐使用这三个中的哪一个,为什么?

http://portal.insoshi.com/

http://portal.insoshi.com/

http://www.communityengine.org/

http://www.communityengine.org/

http://lovdbyless.com/

http://lovdbyless.com/

回答by Dave Nolan

It depends what your priorities are.

这取决于您的优先事项是什么。

If you really want to learn RoR, do it all from scratch. Seriously. Roll your own. It's the best way to learn, far better than hacking through someone else's code. If you do that, sometimes you'll be learning Rails, but sometimes you'll just be learning that specific social network framework. And you won't know which is which...

如果你真的想学习 RoR,那就从头开始吧。严重地。自己卷。这是最好的学习方式,远比通过别人的代码进行黑客攻击要好得多。如果你这样做,有时你会学习 Rails,但有时你只会学习特定的社交网络框架。而你不会知道哪个是哪个?

The type of site you're suggesting sounds perfect for a Rails project. If you get stuck, thengo browse the repositories of these frameworks. Who cares if you're reinventing the wheel? It's your site, your vision, your rules.

您建议的站点类型听起来非常适合 Rails 项目。如果您遇到问题,然后去浏览这些框架的存储库。谁在乎你是否在重新发明轮子?这是您的网站、您的愿景、您的规则。

If you just want a site up and running, then I would pick Insoshi or LovdbyLess simply because they're out of the box apps so you'll have to do less to do get running. I suggest trying to install them both, and introducing yourself in the Google Groups. That'll give you a good indication of wether you're going to get along.

如果您只想启动并运行一个站点,那么我会选择 Insoshi 或 LovdbyLess,因为它们是开箱即用的应用程序,因此您只需要做更少的事情就可以运行。我建议尝试安装它们,并在 Google 网上论坛中介绍自己。这会给你一个很好的迹象,表明你是否会相处。

回答by Alderete

Update: Insoshi's license has changed to the MIT license, which means you're basically free to do with it as you please. But still, review the license for any code you are considering before you get too invested in it.

更新:Insoshi 的许可证已更改为 MIT 许可证,这意味着您基本上可以随意使用它。但是,在过度投资之前,请查看您正在考虑的任何代码的许可证。

Something to keep in mind when deciding is the license for the code. Insoshi is licensed under the GNU Affero General Public License, http://insoshi.com/license. This means that you have to distribute the source code to your Insoshi-based web application to anyone who uses that web application. You might not want to do that, in which case you'll need to pay Insoshi a license fee (they dual license, like MySQL).

在决定代码的许可证时要记住一些事情。Insoshi 根据 GNU Affero 通用公共许可证获得许可,http://insoshi.com/license 。这意味着您必须将基于 Insoshi 的 Web 应用程序的源代码分发给使用该 Web 应用程序的任何人。您可能不想这样做,在这种情况下,您需要向 Insoshi 支付许可费(它们是双重许可,如 MySQL)。

LovdByLess is distributed under an MIT license, http://github.com/stevenbristol/lovd-by-less/tree/master/LICENSE. This means you can use the source code however you want to.

LovdByLess 在 MIT 许可下分发,http://github.com/stevenbristol/lovd-by-less/tree/master/LICENSE 。这意味着您可以随意使用源代码。

回答by Purfideas

I've not worked with these but am aware of this comparison:

我没有使用过这些,但我知道这种比较:

"Unlike Insoshi and Lovd By Less, which are full social networking Rails applications, Community Engine is a plugin that can add social networking features to existing Rails applications"

“与 Insoshi 和 Lovd By Less 不同,它们是完整的社交网络 Rails 应用程序,Community Engine 是一个插件,可以为现有的 Rails 应用程序添加社交网络功能”

from

http://www.rubyinside.com/community-engine-rails-plugin-that-adds-social-networking-to-your-app-901.html

http://www.rubyinside.com/community-engine-rails-plugin-that-adds-social-networking-to-your-app-901.html

回答by Alderete

Regarding RailsSpace, that's a very nicely built Rails 1.2 application, and I think it was updated for compatibility with Rails 2.x. There's even a terrific book that was written about the RailsSpace application (or rather, RailsSpace and the book were written together).

关于 RailsS​​pace,这是一个非常好的构建 Rails 1.2 应用程序,我认为它已更新以兼容 Rails 2.x。甚至还有一本关于 RailsS​​pace 应用程序的很棒的书(或者更确切地说,RailsS​​pace 和这本书是一起写的)。

But, RailsSpace became Insoshi, when the authors were so inspired by the amount of interest in a social networking site built in Rails. So while RailsSpace might be an interesting learning exercise, it's dead in terms of development. All of the authors' efforts (for more than a year now, I think) have been going into Insoshi instead, so that's where you should be looking.

但是,RailsS​​pace 变成了 Insoshi,因为作者受到了人们对 Rails 构建的社交网站的浓厚兴趣。因此,虽然 RailsS​​pace 可能是一个有趣的学习练习,但它在开发方面已经死了。作者的所有努力(我认为一年多以来)都转而用于 Insoshi,所以这就是您应该寻找的地方。

回答by Timothy Fisher

Another option for anyone who wants to create a social site without having to build it from scratch is the EngineY framework. EngineY is a social networking framework written in Ruby and Rails. It provides alot of popular social networking features such as activity streams, groups, photos, message boards, status updates, events, blogs, wall posts, integrated twitter feeds, and more. EngineY is also under active development with new features being added all the time. You can read more about EngineY and download it from: http://www.enginey.com

对于想要创建社交网站而无需从头构建的任何人来说,另一个选择是 EngineY 框架。EngineY 是一个用 Ruby 和 Rails 编写的社交网络框架。它提供了许多流行的社交网络功能,例如活动流、群组、照片、留言板、状态更新、事件、博客、墙贴、集成的 Twitter 提要等等。EngineY 也在积极开发中,不断添加新功能。您可以阅读有关 EngineY 的更多信息并从以下网址下载:http://www.enginey.com

回答by ewakened

Use Rails 3 and roll your own. Don't copy and paste code though, look through the source and try to understand the reasoning or motive behind certain design decisions, only then will you learn.

使用 Rails 3 并推出你自己的。但是不要复制和粘贴代码,查看源代码并尝试理解某些设计决策背后的推理或动机,只有这样你才能学习。

回答by Timothy Fisher

Just a quick update, EngineY now supports Rails 2.3.5 and just released this weekend is support for themes. This goes along with existing features including groups, blogs, photos, REST API, status updates, Facebook Connect, forums, private messages, user profiles, activity feeds, wall posts, and more... Check it out at http://www.enginey.comor on GitHub at http://github.com/timothyf/enginey

只是一个快速更新,EngineY 现在支持 Rails 2.3.5,本周末刚刚发布的是对主题的支持。这与现有功能一起使用,包括群组、博客、照片、REST API、状态更新、Facebook Connect、论坛、私人消息、用户配置文件、活动提要、墙上帖子等......请访问http://www .enginey.com或在 GitHub 上http://github.com/timothyf/enginey

回答by stevenjmyu

i'm currently testing both lovdbyless and insoshi. i was able to install and get insoshi up and running fairly quickly whereas lovdbyless is giving me a harder time. if you're in novice mode, i suggest getting the book from Head First. http://www.headfirstlabs.com/books/hfrails/it is probably one of the better books out there for beginners. atleast in my opinion because i went through a few that was just way too confusing.

我目前正在测试 lovdbyless 和 insoshi。我能够相当快地安装并启动并运行 insoshi,而 lovdbyless 却给我带来了困难。如果您处于新手模式,我建议您从 Head First 获取这本书。 http://www.headfirstlabs.com/books/hfrails/对于初学者来说,它可能是最好的书籍之一。至少在我看来,因为我经历了一些太令人困惑的经历。

回答by srboisvert

One other positive to Community Engine is that it is using Engineswhich is an advanced type of plugin that is becoming a part of rails in 2.3. So what you learn from using Community Engine (and therefore Engines) will be useful going forward.

Community Engine 的另一个优点是它使用的是Engines,这是一种高级类型的插件,在 2.3 中成为 rails 的一部分。所以你从使用社区引擎(以及引擎)中学到的东西将在未来有用。