Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

RailsEventStore starter kit

This repository is intended to serve as a starter kit for event-driven Rails apps.

The expected flow is to clone this repo and start working on your event-driven Rails app:

git clone ...
rails db:migrate

It works with sqlite3 database as a (Rails) default. It doesn't come with rspec, you can rely on minitest (Rails default) or choose to install rspec-rails.

It has the event_store and command_bus set up. Both objects are available in all controllers. They are instantiated in the config/application.rb file.

It is ready to work with the aggregate_root gem. The configuration gives the instance to event_store directly (see config/application.rb file).

It comes with the bounded_context gem so a likely next step is to generate a bounded context with:

rails generate bounded_context:bounded_context Sales

The code here is meant to work with Rails autoloading.

About

Cloning this repo is equivalent to "rails new" + the basic setup of RailsEventStore-related tooling, making it an event-driven Rails app scaffolding

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages