bnchrch / pub_sub_demo

πŸ§žβ€β™‚οΈ Send out notifications in < 100 lines of Elixir

Home Page:https://medium.com/@bnchrch/get-notified-of-user-signups-and-plan-changes-automatically-using-postgres-phoenix-pubsub-e67d061b04bc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pub Sub Demo

A demo meant to show how you can send out notification based directly on changes to your database using Phoenix PubSub and Postgrex.

Blog post here: https://medium.com/@bnchrch/get-notified-of-user-signups-and-plan-changes-automatically-using-postgres-phoenix-pubsub-e67d061b04bc

Running

To start your Phoenix server:

  • Install dependencies with mix deps.get
  • Create and migrate your database with mix ecto.create && mix ecto.migrate
  • Install Node.js dependencies with cd assets && npm install
  • Start Phoenix endpoint with mix phx.server

Now you can visit localhost:4000 from your browser.

Ready to run in production? Please check our deployment guides.

Learn more

About

πŸ§žβ€β™‚οΈ Send out notifications in < 100 lines of Elixir

https://medium.com/@bnchrch/get-notified-of-user-signups-and-plan-changes-automatically-using-postgres-phoenix-pubsub-e67d061b04bc


Languages

Language:Elixir 85.0%Language:JavaScript 10.0%Language:HTML 4.9%Language:CSS 0.1%