Code Monkey home page Code Monkey logo

qna's Introduction

== Dependencies

- git >= 1.5
- ruby >= 1.9.2
- rubygems >= 1.3.7
- mongodb >= 1.7
- ruby on rails 3

== Install Dependencies

sudo gem install bundler

== Getting Started

1. Download the sources:

    git clone git://github.com/appriss/qna.git

    cd qna/

2. Configure the application

    cp config/qna.sample.yml config/qna.yml
    cp config/mongoid.sample.yml config/mongoid.yml
    cp config/auth_providers.sample.yml config/auth_providers.yml

    edit qna.yml and auth_providers.yml

    Go to https://rpm.newrelic.com/ and create an account, then:
    cp config/newrelic.yml.sample config/newrelic.yml

    If you don't want to use newrelic, just comment it out in the Gemfile.

3. Install dependencies

    bundle install

4. Make sure MongoDB is running

5. Load default data

    rake bootstrap RAILS_ENV=development

6. Add default subdomain to /etc/hosts, for example:

    "0.0.0.0 localhost.lan group1.localhost.lan group2.localhost.lan"

7. Start the server

    rails server -e development

8. Start support services

    bundle exec rackup xapit.ru     # Full Text Search engine http interface
    bundle exec script/websocket    # Websocket: communicate with client-side javascript
    bundle exec rake magent:start   # Execute background jobs stored in mongodb

9. When running qna in production, you need to run:

    bundle exec rake assets:precompile

== Postfix config

add the following text to /etc/aliases
    qna: "|/usr/local/rvm/bin/rvm 1.9.2 exec PATH/to/qna/script/handle_email"

in /etc/postfix/main.cf
    default_privs = qna

then type
    sudo newaliases


Talk to us at cttools \aT/ appriss d0t com

Report bugs at https://github.com/appriss/qna/issues

Happy hacking!

qna's People

Contributors

dcu avatar kuadrosx avatar patcito avatar afazio avatar siebrand avatar dgfranciscorodriguez avatar senekis avatar judaro13 avatar mouseba11 avatar andphe avatar spacecowboy99 avatar shingara avatar roolio avatar ecdpalma avatar aluae avatar

Stargazers

Andreas Strauman avatar Jens avatar Stefano Mancini avatar Wes Sheldahl avatar

Watchers

Derek Hall avatar Brandon Johnson avatar James Cloos avatar  avatar Stacey Murphy avatar Josh Greenwood avatar

Forkers

georgel

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.