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

  • This is where the state of your App lives.
  • These are the same as Flux stores.
  • Keep Stores simple!

Components

  • These are React components written in Ruby
  • They display the state of the store
  • They also bind user input events to Actions

Actions

  • Actions update stores
  • Connect to external APIs
  • Can be automatically dispatched or execute complex business logic
  • Can run on the client or server

Models

  • Are ActiveRecord models accessible synced between client and server
  • Combine Stores and Actions
  • Like Stores they 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