Skip to content
This repository has been archived by the owner on Aug 24, 2023. It is now read-only.

Pragmateam/pragma-poll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic Premises

f(state, event) -> state f(state, command) -> [event]

pollEvents = stores.eventsFor('Poll')

pollState = pollEvents.reduce(function (state, event) {

}, {});

CreatePoll(pollState, {})

newEvents = PollAggregate.dispatchCommand(state, command)

save( pollEvent.concat(newEvents))

events = PollAggregate .fromEvents(events) .dispatchCommand(command)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •