Skip to content

Grocery List using CQRS & Event Sourcing approach.

Notifications You must be signed in to change notification settings

pedrofs/justonceapp

Repository files navigation

JustOnce - The ultimate grocery list

You'll never need to get back to the grocery for buying that cleansing product or your kid milk because you forgot it.

About the app

This is a rails application written to improve CQRS and Event Sourcing skills.

It is powered by Rails Event Store to implement the Event Sourcing.

Besides a regular rails application, you'll find app/read_models that implements the read part of CQRS and you'll also find the grocery_list/, used to implement the write side of CQRS.

Setup

Standard rails setup with postgres.

$ git clone [email protected]:pedrofs/justonceapp.git
$ cd justonceapp
$ yarn install
$ bundler
$ rake db:setup
$ rails s

Running specs

We also have specs outside of spec/ folders. For running all specs use --pattern.

$ SIMPLE_COV=true bundle exec rspec  --pattern spec/**/*_spec.rb --pattern grocery_list/**/*_spec.rb

The simple cov option generates html coverage report, without it'll generate the report using lcov format.

About

Grocery List using CQRS & Event Sourcing approach.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published