phoenix_pubsub_postgres alternatives and similar packages
Based on the "Framework Components" category.
Alternatively, view phoenix_pubsub_postgres alternatives based on common mentions on social networks and blogs.
-
dayron
A repository `similar` to Ecto.Repo that maps to an underlying http client, sending requests to an external rest api instead of a database -
phoenix_token_auth
Token authentication solution for Phoenix. Useful for APIs for e.g. single page apps. -
rummage_phoenix
Full Phoenix Support for Rummage. It can be used for searching, sorting and paginating collections in phoenix. -
access pass
provides a full user authentication experience for an API. Includes login,logout,register,forgot password, forgot username, confirmation email and all that other good stuff. Includes plug for checking for authenticated users and macro for generating the required routes. -
Votex
Implements vote / like / follow functionality for Ecto models in Elixir. Inspired from Acts as Votable gem in Ruby on Rails -
plug_canonical_host
PlugCanonicalHost ensures that all requests are served by a single canonical host. -
trailing_format_plug
An elixir plug to support legacy APIs that use a rails-like trailing format: http://api.dev/resources.json
CodeRabbit: AI Code Reviews for Developers
Do you think we are missing an alternative of phoenix_pubsub_postgres or a related project?
README
PhoenixPubSubPostgres
This package provides postgres adapater for Phoenix's Pub/Sub channels.
Demo
Open pgchat.opendrops.com in two different browsers windows and start sending some messages. The message passing is handled by postgres's built-in pubsub support
Demo app source
Source code of the demo app is available at http://github.com/opendrops/pgchat-demo-app
-
How to use
Add phoenix_pubsub_postgres to your mix deps
defp deps do
[{:phoenix, github: "phoenixframework/phoenix", override: true},
{:phoenix_pubsub_postgres, "~> 0.0.2"},
{:postgrex, ">= 0.0.0"},
{:cowboy, "~> 1.0"}]
end
To use Postgres as your PubSub adapter, simply add it to your Endpoint's config and modify it as needed.
config :my_app, MyApp.Endpiont,
...
pubsub: [name: MyApp.PubSub,
adapter: PhoenixPubSubPostgres,
hostname: "localhost",
database: "myapp_db_env",
username: "postgres",
password: "postgres"]