Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 859 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 859 Bytes

All you need is Rails Engines

Fork from Julián Pinzón Eslava's demo on modularizing large Ruby on Rails apps using engines.

It also uses automatic_namespaces in attempt to reduce the amount of nested folders, eg.

- packages/teacher_app/app/controllers/teacher_app/home_controller.rb
+ packages/teacher_app/app/controllers/home_controller.rb

Avoid Circular Dependency

In this demo StudentApp depends on TeacherApp so it can easily look up courses. We are avoiding circular dependency on Teacher confirming a student on a course by dispatching a notification using ActiveSupport::Notifications.

Setup & Run

rake db:create db:migrate
rails s

Pack / Packwerk

$ packs check
$ packs validate