Skip to main content

Get started

Installation & Requirements#

yarn add @pdftron/collab-server

The following requirements must also be met:

  • NodeJS
  • A database (if you do not have a database set up, try using our default database)

If you are using the default database, we recommend integrating that first


1) Import the module

import CollabServer from '@pdftron/collab-server';

2) Create an instance of the server

const server = new CollabServer({
resolvers: {
Query: { ... },
Mutation: { ... }

For more information about resolvers, view the resolver guide

3) Start the server

server.start(process.env.PORT || 3000);

Next steps#