How to use feathers-sync - 1 common examples

To help you get started, we’ve selected a few feathers-sync examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github phoomparin / FlipED / src / middleware / index.js View on Github external
this.use(bodyParser.json())
  this.use(bodyParser.urlencoded({extended: true}))
  this.use(helmet())
  this.use(locale({
    priority: ["cookie", "query", "hostname", "map", "accept-language", "default"],
    default: "en_US"
  }))
  this.use(cookieParser())

  this.configure(hooks())
  // this.configure(rest())
  this.configure(socketio(socketHandler))

  if (IS_PROD) {
    // Feathers Sync Module
    this.configure(sync({
      db: REDIS_URL || "redis://localhost:6379"
    }))
  }

  this.use(basicLogger)
  this.use(serverRender)
  this.use(errorHandler)
}

feathers-sync

Feathers

MIT
Latest version published 1 year ago

Package Health Score

60 / 100
Full package analysis

Popular feathers-sync functions