Skip to content

Latest commit

 

History

History
 
 

backend

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

startupjs backend

Create new ShareDB backend instance

Installation

yarn add @startupjs/backend

Requirements

nconf: *

Usage

import createBackend from '@startupjs/backend'

export default async function runServer () {
  const { backend, shareMongo, redis } = await createBackend(options)
  // ...
}

where options are:

  • pollDebounce is the minimum delay between subsequent database polls . It is used individually for each collection in database. This is used to batch updates to reduce load on the database.

Licence

MIT

(c) Decision Mapper - http://decisionmapper.com