@octodb/backend-service

0.1.0 • Public • Published

OctoDB - Backend Service

This is a helper module used to implement a backend service for OctoDB

A backend service can contain handlers for user and node authorization, and other management services

Installation

# using Yarn
yarn add @octodb/backend-service

# using npm
npm install @octodb/backend-service

Usage

This is the service skeleton:

const app = require('@octodb/backend-service');
const port = 4321

app.on('user_signup', (node, data) => {


})

app.on('user_login', (node, data) => {


})

app.on('new_node', (node) => {


})

app.run(port, function() {
  console.log('auth service ready!')
})

More details in the OctoDB documentation

License

MIT

Package Sidebar

Install

npm i @octodb/backend-service

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

4.54 kB

Total Files

4

Last publish

Collaborators

  • kroggen