March 2020
Intermediate to advanced
328 pages
7h 58m
English
We’ll use Presence to track each ShoppingCartChannel and the shopper’s cart item IDs. Each change to a cart will dispatch an update to the CartTracker, and the admin client will automatically receive the changes. Our process for this task will break down into these steps:
First, create the CartTracker module under the sneakers_23_web/channels directory.
| | defmodule Sneakers23Web.CartTracker do |
| | use Phoenix.Presence, ... |
Read now
Unlock full access