Skip to main content
Version: 1.2

Index

Concept

Contains the models logic handled by the protocol.

Folder structure

├── models
│ ├── classA
│ │ │ ├── class
│ │ │ │ ├── index.js
│ │ │ │ ├── protocols.js
│ │ │ ├── functions
│ │ │ │ ├── index.js
│ │ │ ├── triggers
│ │ │ │ ├── index.js
  • The class folder contains
    • the es6 models handled by the protocol.
    • the protocols declaration.
  • The functions folder contains cloud functions specific to the class
  • The triggers folder contains triggers functions

Usage

Declare a class

export default class ClassA extends Servable.App.Object {
constructor() {
super('ClassA')
}
}

Use protocols

export default [
//protocolslist
]

See declaring protocols

Use functions

Use triggers

Example