TransparencyToolkit/DocManager

Name: DocManager

Owner: Transparency Toolkit

Description: Universal backend for indexing, storing, and querying documents.

Created: 2017-03-26 05:09:53.0

Updated: 2017-12-29 12:22:17.0

Pushed: 2017-06-30 15:25:16.0

Homepage: https://transparencytoolkit.org

Size: 107

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

This is a backend for Transparency Toolkit's other tools (LookingGlass, Harvester, Catalyst). It indexes data, stores the documents, and processes queries all in one place. All the specifications for what data sources are available and what fields they have are also handled by DocManager.

Installation

Dependencies
Setup Instructions
  1. Install the dependencies

  2. Download elasticsearch (https://www.elastic.co/downloads/elasticsearch)

  3. Download rvm (https://rvm.io/rvm/install)

  4. rvm install 2.4.1 and rvm use 2.4.1

  5. gem install rails

  6. bundle install

  7. Run

  8. Start elasticsearch (exact method depends on installation method)

  9. Create a directory for the mongodb database

  10. mongod –dbpath dirname/

  11. rails server

  12. Testing and Similar

  13. Run Tests: bundle exec rspec

  14. Look at DB: mongo doc_manager_development

Software and Config File Structure

Project and Data Source Configuration Files

Configuration files for data sources and projects are stored in the dataspec_files directory. This has three directories with three types of sub-files-

These files are automatically loaded into DocManager and used by the apps that query it. But the specific project you want to access/use may need to be set in configuration options in the other apps.

Code Outline

The code is divided into the following components:


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.