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
bundle install
- Check settings in
config/database.yml
andconfig/redis.yml
- Copy
.env.sample
to.env
and 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:development
will 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:se
will 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.
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 foreman start
.
- Rails 4.2
- Postgres
- Redis