Skip to content
This repository has been archived by the owner. It is now read-only.
Quora.com like project with Ruby on Rails (不再维护)
JavaScript Ruby Other
Branch: master
Clone or download
Latest commit 85188fc Oct 10, 2011
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app Invite templet miss bug fixed. Oct 9, 2011
comet Merge with server Apr 20, 2011
config 缩进修正 Oct 10, 2011
db Merge branch 'master' into sphinx_search Apr 15, 2011
doc Fist commit, add 3rd gems and Models Mar 18, 2011
lib Redis-Search update Sep 22, 2011
public JS error fix. Sep 25, 2011
script Fist commit, add 3rd gems and Models Mar 18, 2011
test
vendor/plugins Fixed: 在移动设备上编辑器无法输入的bug Apr 13, 2011
.gitignore gitignore fix. Sep 6, 2011
Gemfile RedisSearch update Sep 30, 2011
Gemfile.lock
README.textile Mod: 更新安装说明文档 May 18, 2011
Rakefile Fist commit, add 3rd gems and Models Mar 18, 2011
TODO Mod: 更新TODO Apr 2, 2011
backup_mongodb Add mongodb backup script Apr 2, 2011
config.ru Fist commit, add 3rd gems and Models Mar 18, 2011
diff.rb Add: Diff 类库 Apr 22, 2011
run_juggernaut Add juggernaut start script. Sep 6, 2011
run_resque Mod: 邀请回答限制重复发邮件(同一个问题对一个用户最多两次),并限制用户不可邀请自己 Apr 13, 2011

README.textile

Quora clone write in Ruby on Rails.

Requirements

Install there software at first

  • Linux (suggest Ubuntu 10.10+) or Mac OS X (Don’t try it on Windows, and send error messages to me!)
  • Ruby 1.9.2 (not support 1.9.1 or 1.8)
  • MongoDB 1.8
  • Redis 2.2.2
  • Node.js 0.4.5
  • Coreseek 4.0.1 (In English content, you can use Sphinx 1.10)
  • Git

Installation

Start Redis, Mongodb first, you need

$ sudo service redis start
$ sudo service mongodb start

Download Quora source code from Github

$ git clone git://github.com/huacnlee/quora.git

Configure Quora

$ cd quora
$ bundle install --path vendor/bundle
$ cp config/mongoid.yml.default config/mongoid.yml
$ cp config/setting.yml.default config/setting.yml
$ cp config/redis.yml.default config/redis.yml
$ cp config/zomet.yml.default config/zomet.yml
$ cp config/sphinx.yml.default config/sphinx.yml

Create Sphinx config files and index the database to Sphinx (Before here, you need install Coreseek first.)

$ rake mongoid_sphinx:configure
$ rake mongoid_sphinx:index
$ rake mongoid_sphinx:start

If you have Quora project old data in the Mongodb, you need to run this script to index the old data for search

$ rake search:index

After, run Rails Server

$ rails s

Then, open your browser, points to http://127.0.0.1:3000
That is it, enjoy yourself.

If you have any Issues or Questions, please send message to Quora Issues on Github.

You can’t perform that action at this time.