# Somewhere on client Space.messaging.Api.call MyCommand
class @MyApi extends Space.messaging.Api @method MyCommand, (context, command) -> @commandBus.send command
class @MyAggregateHandler extends Space.messaging.Controller Dependencies: repository: ‘Space.cqrs.Repository’ ... @handle MyCommand, (command) -> aggregate = @repository.find MyAggregate, command.aggregateId aggregate.doSomething(command) @repository.save aggregate
space-cqrsis not a good fit for the ORM based orionjs solution anyway. But we sparked the idea of building a good example application that shows the concepts and benefits of DDD / CQRS with space-cqrs
payments) that could be dropped into your application and configured. This would provide great examples of how to model a self-contained bounded context and possibly draw more attention to space (get more devs on board).
package.jsis programmable in Meteor we can use environment vars to include only those value objects that are needed by modules / apps.
environment.sh. Then run the app via the
CodeAdventureorganization on Github, but
spaceon atmosphere. Are you happy with https://github.com/SpaceJs ?
moduleis good. We can use the DDD terminology within documentation to explain how it can be applied in Space
meteor-space/basethen (the Meteor package is called
space:base, so that would make sense)