Skip to content

Repository files navigation

ONEFLUX

One God, One Way, One Flow

OneFlux is a framework that structures applications by providing

  • Abstract components - that communicate through events in a hierarchical way
  • Modules / services - that communicate via an Event Bus
  • Injection Dependencies Simple

Quickstart

npm install

Build the kernel First

gulp --task build-kernel

gulp --task test-kernel

Why Dependency Injection?

Why Event Bus?

Why Actions & components?

Example Register Factory

varCaseManager=function(options){this.config={};};OneFlux.registerFactory("@CaseManager",CaseManager);
## UsagevarCaseManager=OneFlux.instantiateFactory("@CaseManager",{});

Example Register Service

## UsagevarCaseManager=OneFlux.instantiateFactory("@CaseManager",{});OneFlux.service("CaseManager",CaseManager);
## AserviceisusedinDI

Example DI & Event Bus

varFormManager=function(EventBus,options){this.config={};this.eventBus=EventBus};
## EventBusisaserviceinframework&isusedasDI

EventBus

For more Information about Event Bus see postal js

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages