I have started working through Programming Phoenix Liveview
These are my notes.
Currently working on the setup. Given that I had already got phoenix installed it is useful to add the following:
mix archive.install hex phx_new
docker run -d -e POSTGRES_PASSWORD=postgres -p 5432:5432 postgres:11
These bring the generator upto date and gets a minimal version of postgres running locally.
Don’t use these settings in production, but it will make making quick examples easier.
Expoloring the liveview socket.
iex> Phoenix.LiveView.Socket.__struct__ |> Map.keys
[:__struct__, :assigns, :endpoint, :fingerprints, :host_uri, :id, :parent_pid,
:private, :redirected, :root_pid, :router, :transport_pid, :view]