Connecting front end with back end to create a cart, add to a cart, update, remove

Hello. In the ultimate Django series , we covered the backend logic for creating a cart and making all sorts of operations with it.

In the frontend, some implementation don’t use the cart in the database to store the data and then delete it. They store the cart in the local storage or the browser.

Is there a course where Mosh or else show how to use in the frontend the API built in the back end for the cart to store it on the database?

Also which approach is recommended:store the cart in the database with a session customer or store it in the browser local storage or cookies…?