This is a simple document upload form for use with Transpareny Toolkit's tools.
-
Ensure you have sinatra, curb, and pry installed
-
The following environment variables need to be set (in config.ru or otherwise):
- LOOKINGGLASS_URL: URL to reach LookingGlass
- OCR_IN_PATH: Directory path files should save at for the OCR server to read
- OCR_OUT_PATH: Directory path OCRed data will be saved at
- ARCHIVEADMIN_URL: The URL to the archive admin system (for access verification
- PROJECT_INDEX: The index name for the archive
- ARCHIVE_SECRET_KEY: The secret key for the archive.
-
In this directory, run: rackup config.ru
-
Go to http://localhost:9292 in your browser