Quora clone by Ruby on Rails

View the Project on GitHub huacnlee/quora

Quora clone write in Ruby on Rails.


Install there software at first


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 That is it, enjoy yourself.

If you have any Issues or Questions, please send message to "Quora Issues":https://github.com/huacnlee/quora/issues on Github.