discourse/script/import_scripts/quandora
Guo Xiang Tan 5012d46cbd Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
..
test Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
README.md
export.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
import.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
quandora_api.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
quandora_question.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00

README.md

To get started, copy the config.ex.yml to config.yml, and then update the properties for your Quandora instance.

domain: 'my-quandora-domain'
username: 'my-quandora-username'
password: 'my-quandora-password'

Create the directory for the json files to export: mkdir output Then run ruby export.rb /path/to/config.yml

To import, run ruby import.rb

To run tests, include id's for a KB and Question that includes answers and comments

kb_id: 'some-kb-id'
question_id: 'some-question-id'