Skip to content

saxxi/all_you_need_is_rails_engines

 
 

Repository files navigation

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

About

Fork with automatic_namespaces

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 77.1%
  • HTML 13.1%
  • JavaScript 6.3%
  • CSS 3.5%