QA is the best way to get your own instance of an internal question and answer site.
- Ensure you have both PostgreSQL 9.3+ and Redis 2.8.9+ installed
- Install Ruby 2.2.x
git clone git://github.com/thomas-mcdonald/qa.git && cd qa
- Check settings in
.envand fill in environment settings as required
bundle exec rake db:create db:schema:load
There are a couple of options for seed data:
bundle exec rake db:seed:developmentwill give you a few example questions
- You can import a Stack Exchange data dump for development purposes. Download a dump from here and extract to lib/import/data.
rake import:sewill import this data.
The SE import process is memory-intensive and will take some time - even for smaller Stack Exchange sites. The importer queues a significant number of background jobs which will take time to process - so initial performance may be slower.
Running the application
The application processes are defined in the Procfile, which can be managed by Foreman.
Install it with
gem install foreman, and start the application and job queues with
- Rails 4.2