E-commerce with

In this episode we are going to create a product display page for our shop.
The goal for this episode would be to create a single product page for our products, so that when the user clicks on a product in our Next.js app it would take him to the product display page. To get the correct page, I'm going to show you how to filter products by slug from our Directus API.
Also we are going to refactor our query methods a bit, so that we end up with only one method for all of our queries, which will make our code look much nicer and more performant.
Code used in this tutorial
bit.ly/3HZYOG9
You can support my work on Patreon
/ watchlearn
Follow me on Social Media
Github: github.com/ivandoric
Twitter: / ivan_doric
Instagram: / watchlearntuts
Facebook: / watchlearntutorials

Пікірлер: 9

  • @alsherifkhalaf7385
    @alsherifkhalaf73852 жыл бұрын

    Your channel is the best 👌 Thanks for your great tutorials ❤️

  • @WatchandLearnTutorials

    @WatchandLearnTutorials

    2 жыл бұрын

    Thanks man. Glad you like them and thanks for watching. 😀

  • @nicholascheung4336
    @nicholascheung43362 жыл бұрын

    Hi, I am new to graphQL and Directus. I have been following the tutorial but failed to get the product page by the slug. Tried to mock the fetching in GQLPlayground and it turns out saying "Expect Name, Found $" when I initialise the variable in the GQL query. Any thought?

  • @user-cr3nm6gs8d
    @user-cr3nm6gs8d Жыл бұрын

    Hello, great channel. Can you do a three level master detail page with directus 9 and nextjs?

  • @mdferdous2764
    @mdferdous27642 жыл бұрын

    Thanks bro, your chanel just awesome.... Can i deploy it heroku? If i can than please make video.

  • @WatchandLearnTutorials

    @WatchandLearnTutorials

    2 жыл бұрын

    You can, at least you can deploy Next.js app. I'm not so sure about the Directus part since it requires a database. I don't have plans to make a video about Heroku Deployment. We will deploy it on Digital Ocean.

  • @techstack1042
    @techstack10422 жыл бұрын

    It would be very helpful if u show how to add custom api endpoint and custom api hook completely...

  • @WatchandLearnTutorials

    @WatchandLearnTutorials

    2 жыл бұрын

    There will probably be episode about that.

  • @mediacreatif
    @mediacreatif2 жыл бұрын

    you changed the font btw lol