pedrohcrisanto / justonceapp

Grocery List using CQRS & Event Sourcing approach.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 git@github.com: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.


Languages

Language:Ruby 86.7%Language:HTML 8.1%Language:JavaScript 4.3%Language:CSS 0.8%