💬 Join the Jelly Community Slack
This is a Rails toy application that converts PDFs into XML/JSON with a collaborative editor with JSON, for science.
This app is pre-alpha, so please mind the cracks.
To get this app up and running locally, follow these steps:
rbenv
, bundler
, and yarn
docker
and docker-compose
from Brew or through Docker Desktop
# 1. Install packages
bundle install
# 2. Set up database
bundle exec rails db:schema:load
# Start server on default port localhost:3000
bundle exec rails server
# If env vars need to be changed
DATABASE_URL=postgres://localhost:5432 DB_USER=postgres bundle exec rails server
To start all the services together (server, sidekiq, webpack, docker), you can use:
bin/start
To rebuild the docker environment (for example after changing the service configuration):
# Stop services
docker-compose down
# Pull to rerun init scripts
docker-compose pull
# Then follow startup steps again
This app depends on Grobid running as a separate service, which you'll want to set a production env variable GROBID_HOST
.
To do so, you'll want to pull the docker image and start it on port 80.
docker pull lfoppiano/grobid:{version}
docker run -t --rm --init -p 80:8070 -p 8080:8080 lfoppiano/grobid:{version}
This app also depends on a Figures instance which you can set as FIGURE_HOST
.
You can start a guard session to watch file changes and run tests using:
bundle exec guard
Check out the wiki and issues to see the current status.
Running Migrations on GCE
bundle exec rake appengine:exec -- bundle exec rake db:create
Here are some of the things we will playing around with in this toy app, kind of like a list of to-do's.
The jellypbc project is dual-licensed under Apache 2.0 and MIT terms.