Can I use hyperstack without activerecord?

94 views Asked by At

I use rethinkdb and nobrainer as my ODM. Will Hyperstack be in sync with my models? i.e. state syncing between the backend db and the frontend?

1

There are 1 answers

4
engineersmnky On BEST ANSWER

As of right now HyperStack/HyperModel has a direct dependency to ActiveRecord so there is no real way to utilize this library without also using ActiveRecord as well.

Excerpt from hyper-model.gemspec

spec.add_dependency 'activerecord', '>= 4.0.0'

This seems to be due to the ActiveRecord API binding: https://hyperstack.org/edge/docs/dsl-isomorphic/models#activerecord-api

Hyperstack uses a subset of the standard ActiveRecord API to give your Isomorphic Components, Operations and Stores access to your server side Models. As much as possible Hyperstack follows the syntax and semantics of ActiveRecord.