Code Monkey home page Code Monkey logo

quora's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.