Coder Social home page Coder Social logo

annotate-client-build's Introduction

annotate-client-build

This is used to store and update just the build directory of annotate-client in order to deploy on the web server.

All Pull Requests should go to that other repo first, unless it's an update to this README. Any PRs on this repo should include a link back to that other repo's PR or commit, and also please describe what changes you made. Updates to this code should, in most cases, simply be a copy of the build directory from annotate-client following the steps below.

Prior to Building

You'll need to obtain an OAuth Client ID registered with the "h" service. Read the Hypothesis API document on Authorization to find out how to get one.

(Or if on the Wayback Team, ask @carlg)

How To Deploy

  1. Get the annotate-client source code. You should be on the iarchive branch. git clone [email protected]:internetarchive/annotate-client.git

  2. Check that these dependencies are installed: node npm gulp yarn tox

  3. Double check that you don't have build listed in your global .gitignore file in your home directory.

  4. Run npm install

  5. Build by running ./scripts/build-app OATH_CLIENT_ID

  6. Copy the build directory from annotate-client into the root of annotate-client-build repo, copying over what was there previously: cp -fRp build ../annotate-client-build/

  7. git commit then git push

  8. Test it at: https://archive.org/services/context/pdf/viewer/web/viewer.html?file=pdfs/report.pdf

  9. Modify Source. GOTO 5

More Info

To annotate the PDF using the Default Viewer, add annotate=yes like so: https://archive.org/services/context/pdf/viewer/web/viewer.html?annotate=yes&file=pdfs/report.pdf

annotate-client-build's People

Contributors

cgorringe avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

annotate-client-build's Issues

Proxy 3rd-party PDFs

This is some notes on one way to handle PDFs on servers not located on archive.org, since we run into CORS issues.

  1. Goto: https://archive.org/some_service/https://example.com/example.pdf
  2. This checks if URL already cached locally. If not, download it to archive’s server. May want to show some HTML for “please wait” message.
  3. Then redirect to: https://archive.org/services/context/pdf/viewer/web/viewer.html?file=/path/local_copy_of_example.pdf

Code for this should probably be elsewhere than this repo.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.