E-commerce with

  Рет қаралды 3,763

Watch and Learn

Watch and Learn

Күн бұрын

In this episode we are going to start implementing add to cart functionality. I say start because this is a pretty big functionality so I’m going to split it into two parts.
In this first part we are going to create add to cart button, and instead of using something like Redux we are actually going to try to use Directus and React Query for our state management.
Directus is going to be used to persist the data in the user session collection that we are going to create. There we will temporarily save the users order and persist the data that way.
So we are going to start adding our products to temporary order object in this episode.
And in the next episode we are going to finish this functionality by implementing user cart. And display current order that way.
Code used in this video
bit.ly/3InwJt4
You can support my work on Patreon
/ watchlearn
Follow me on Social Media
Github: github.com/iva...
Twitter: / ivan_doric
Instagram: / watchlearntuts
Facebook: / watchlearntutorials

Пікірлер: 14
@stefan9599
@stefan9599 2 жыл бұрын
Great video again Ivan!
@WatchandLearnTutorials
@WatchandLearnTutorials 2 жыл бұрын
Thanks Stefan 😀 👍
@zakur0hako
@zakur0hako 2 жыл бұрын
Thank you very useful video
@undercontr
@undercontr 8 ай бұрын
quantity and price string? why not integer and decimal? why handling with parsing
@Civilizer1976
@Civilizer1976 10 ай бұрын
When opening the product in a new window or reloading the current browser window, the session is re-created in "Directus", although the same session remains in the browser 🤔
@Civilizer1976
@Civilizer1976 10 ай бұрын
This problem will be fixed in the next video ['11']
@mahsamiiiir
@mahsamiiiir 2 жыл бұрын
Hello there! it will be great if you tutorial how can we deploy directus to Cpanel with nodejs feature! thanks
@WatchandLearnTutorials
@WatchandLearnTutorials 2 жыл бұрын
I will not make that video, sorry. Node apps just don't work very well on shared hosting. You can technically do it, but it will not work very well. I have a video about that and even in the video I had problems, and was using Strapi which is very similar to Directus: kzbin.info/www/bejne/m5O6e5WYirlniqM
@mahsamiiiir
@mahsamiiiir 2 жыл бұрын
@@WatchandLearnTutorials Which server do you advice to deploy any NodeJs apps?
@WatchandLearnTutorials
@WatchandLearnTutorials 2 жыл бұрын
@@mahsamiiiir You should use something like Digital Ocean, AWS, Vultr... etc.
@mahsamiiiir
@mahsamiiiir 2 жыл бұрын
@@WatchandLearnTutorials Thanks for reply but can I use any cloud servers also?
@WatchandLearnTutorials
@WatchandLearnTutorials 2 жыл бұрын
@@mahsamiiiir Well, yes. Digital Ocean, AWS etc. provide cloud servers, with them you create your own cloud server on which you can deploy your apps.
@irenestokes211
@irenestokes211 2 жыл бұрын
Pᵣₒmₒˢᵐ 💋
E-commerce with #Directus and #Nextjs - [11] - Mini Cart and #Zustand
25:51
E-commerce with #Directus and #Nextjs - [04] - Products and Categories
32:31
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
Next JS Tailwind ECommerce Tutorial 2022 [Part 5: Handle Add to Cart]
15:24
Coding with Basir
Рет қаралды 3,4 М.
11 Reasons You Should NOT Buy Directus
6:21
Directus
Рет қаралды 4 М.
Next.js Server Actions...  5 awesome things you can do
7:51
Beyond Fireship
Рет қаралды 290 М.
Add to Cart Without Login | Next JS
1:12:11
Full Stack Niraj
Рет қаралды 1,2 М.
Amazon Clone Shopping Cart For Beginners By Next.js 13.4 [2023]
1:24:58
Coding with Basir
Рет қаралды 10 М.
E-commerce with #Directus and #Nextjs - [09] - Display Product Options
16:32
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН