Skip to content

jellypbc/poster

Repository files navigation

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:

  • Follow the setup guide in the wiki to install rbenv, bundler, and yarn
  • Install docker and docker-compose from Brew or through Docker Desktop
    • Make sure to give Docker several GB of memory for the Grobid server

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.

  • multiplayer RT-crdt based syncing
  • render inline react components
    • inline comments
    • footnotes
    • @ hyperlinks for posts, users, projects
  • biblioglutton for automagically grabbing referenced citations
  • lab note templates
  • encryption
  • activitypub / federation
  • full data export
  • offline
  • mobile support
  • gRPC/xml-rpc for code remote eval
  • mobileDoc

License

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

About

Jelly demo toy app that turns PDFs into editable posts

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE-APACHE
MIT
LICENSE-MIT

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published