Skip to content

octodb/backend-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published