Skip to content

A basic sample showing how to integrate WebViewer Collaboration modules with an SQL database

License

Notifications You must be signed in to change notification settings

SaniMusic/webviewer-collab-sql-sample

 
 

Repository files navigation

WebViewer Real Time Collaboration Sample

WebViewer is a powerful JavaScript-based PDF Library that's part of the PDFTron PDF SDK. It allows you to view and annotate PDF files on your web app with a fully customizable UI.

WebViewer

This is a WebViewer sample to show how you can construct a real time collaboration service using the WebViewer Collaboration Modules

The bulk of the work is setting up the resolvers to talk to the SQL database. Documentation about resolvers can be found here.

Initial setup

Before you begin, make sure your development environment includes Node.js.

Install

git clone https://github.com/PDFTron/webviewer-collab-sql-sample.git
cd webviewer-collab-sql-sample
npm install

Run

Start the server

npm run start-server

Start the client

npm run start-client

How to use

  • Open browser window in incognito mode and go to port 8000
  • Create annotations with annotations tools in the header
  • See the changes being applied in real time in other windows
  • You can access the real time server from a different device in the same network via replacing localhost in your URL to the server's IP address.

Contributing

See contributing.

License

See license.

About

A basic sample showing how to integrate WebViewer Collaboration modules with an SQL database

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.1%
  • HTML 1.9%