Phoenix pubsub adapter using EventStore. See the latest published hex package for more information.
This library can be used to provide Phoenix PubSub over EventStore.
Add Phoenix.PubSub to your supervision tree by specifying Phoenix.PubSub.EventStore as an adapter and passing your event store in the :eventstore option.
{Phoenix.PubSub,
[name: MyApp.PubSub,
adapter: Phoenix.PubSub.EventStore,
eventstore: MyApp.EventStore]
}You should have MyApp.EventStore configured separately. Consult the EventStore documentation for hints. Make sure that MyApp.EventStore is started before the PubSub.
Requires PostgreSQL running locally with a postgres superuser.
Create and initialize the EventStore database for the test environment:
MIX_ENV=test mix event_store.create + event_store.initThen run tests:
mix test