jellypbc / poster

Jelly demo toy app that turns PDFs into editable posts
https://jellypbc.com
Other
22 stars 3 forks source link
editor research science

Jelly Poster

http://jellypbc.com

💬 Join the Jelly Community Slack

CircleCI

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.

Development

To get this app up and running locally, follow these steps:

Startup

# 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

Teardown

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

Creating Users

Deploying

Deploy

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.

Tests

You can start a guard session to watch file changes and run tests using:

bundle exec guard

Wiki

Check out the wiki and issues to see the current status.

Running GCE commands

Running Migrations on GCE

bundle exec rake appengine:exec -- bundle exec rake db:create

Roadmap / Product Horizons

Here are some of the things we will playing around with in this toy app, kind of like a list of to-do's.

License

The jellypbc project is dual-licensed under Apache 2.0 and MIT terms.