opsflowhq / method.js

Framework for developing business systems fast
0 stars 0 forks source link

Module, Package and Resource ID system to identify and track meta objects, safely extend system with installable packages #8

Open VladymyrPylypchatin opened 1 day ago

VladymyrPylypchatin commented 1 day ago

The system consists of modules. like node_modules.

System consists of the "Resources":

Each resource is like a meta-object that defines a system object. E.g. Customer model is an object that defines customer. etc.

The resource can be only defined in "Modules"

Module can contain an unlimited number of resources (e.g. Apps, Objecgs, Pages, Workflows, etc)

Every module “EXTENDS” the system and registers Resources within a system.

Each module has a module.js or something similar that defines the contents of the module and resources it has.

Similar concepts are:

Module is basicly a location like in a palantir.

Each module can also have a package.json. Or something similar so you basically can publish a module as a package.

Packages are installed. A package is basically a module that contains multiple resources.

Also an important of this is future we plan our billing to be based on the resources changed. So we need to have a way to define and register each resource within a system

VladymyrPylypchatin commented 1 day ago

The goal of this system is to: