vvscode / treatment_database

Application to track conservation workflow for Preservation Services

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Treatment Database

This is a web application originally developed for the Preservation Lab at the University of Cincinnati. Provided that you have Ruby on Rails installed you can run this application on your local machine or server.

git clone github.com/uclibs/treatment_database
bundle install
rails db:migrate
rails server

Running the Tests

The treatment database has a test suite built with rspec, running it is simple, just call the following in the project directory:

rspec

Generating PDFs

In several areas of the application we generate PDF reports. To accomplish this we use the gem PDFKit, which requires us to have the wkhtmltopdf library installed. You'll need to aquire wkhtmltopdf from their download page. Alternatively, if you are using package manage I'd recommend installing it with that.

If you're running in a headless linux environment you'll likely the X virtual frame buffer. You can install this with yum and other popular package managers.

Finally, you'll need to add the following bash to your bin /usr/local/bin/wkhtmltopdf.sh

xvfb-run -a -s "-screen 0 640x480x16" wkhtmltopdf "$@"

About

Application to track conservation workflow for Preservation Services


Languages

Language:Ruby 75.9%Language:HTML 21.4%Language:CSS 1.0%Language:JavaScript 0.9%Language:CoffeeScript 0.8%