An open API service indexing awesome lists of open source software.

https://github.com/elixirschool/live-view-chat

A chat app built with Phoenix LiveView, PubSub and Presence
https://github.com/elixirschool/live-view-chat

Last synced: 10 months ago
JSON representation

A chat app built with Phoenix LiveView, PubSub and Presence

Awesome Lists containing this project

README

          

# Phat

A chat app that leverages Phoenix LiveView, PubSub and Presence. Learn all about it by [reading this blog post](https://elixirschool.com/blog/live-view-with-presence/).

To start your Phoenix server:

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

Now you can visit `localhost:4000/sessions/new` to log in as one of the user's described in `priv/repo/seeds.exs`. Then click the link to the visit the chat room we created via the database seed.