Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Hyperloop Anatomy

Mitch VanDuyn edited this page Jan 22, 2017 · 12 revisions

Stores...

  • are where the state of your App lives.
  • are the same as Flux stores.
  • should be kept simple and synchronous!

Components...

  • are React components written in Ruby!
  • display the state of the Stores!
  • also bind user input events to Actions!

Actions...

  • update the Stores.
  • can connect to external APIs!
  • can be automatically dispatched or ...
  • can execute complex business logic!
  • can run on the client or server!

Models...

  • are ActiveRecord models accessible on client and server.
  • are built on Stores and Actions.
  • like Stores, should be kept simple and sweet!

Policies

  • Protect Remote Actions and Models from unauthorized Access
  • Should be grouped in separate policy files
Clone this wiki locally