Let's Checkout... Directus 9

Поділитися
Вставка
  • Опубліковано 9 вер 2024

КОМЕНТАРІ • 78

  • @uenmedia4528
    @uenmedia4528 3 роки тому +4

    Thanks for the video. Really can’t wait to watch other directus 9 videos.

  • @MinhazurSarker
    @MinhazurSarker 3 роки тому +7

    Please make a tutorial series about direct us as like your October cms tutorial series

  • @jatmikoherjati6348
    @jatmikoherjati6348 3 роки тому +2

    Finally, directus gets some love ! Cool

  • @amjadiqbalkhanniazi
    @amjadiqbalkhanniazi 3 роки тому +6

    Happy to see you on directus 9 , can't wait to follow your series on it with next.js

  • @stanleybonhomme7811
    @stanleybonhomme7811 3 роки тому +7

    Directus 9 seems very elegant and pretty good to use. Can't wait to follow your series on it.

  • @Pix3lmate
    @Pix3lmate 3 роки тому +6

    I'm so happy you checked Directus this is my default go to when I need an API, can't wait it to be released officially

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  3 роки тому

      It really is great, I'm glad I tested it, and currently using it for my site.

    • @srujangurram
      @srujangurram 3 роки тому

      Wait !? It's not released ?

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  3 роки тому

      @@srujangurram AFAIK it's still not official, but you can use it. However they are adding new stuff all the time. So if you have production critical project maybe hold of on it for a little while.

  • @joaocason
    @joaocason 3 роки тому +3

    Awesome Demo! can't wait to use in one of my projects, thanks for this excelent content.

  • @vitormelo22
    @vitormelo22 2 роки тому +1

    Directus is amzing, thanks for video.

  • @dmxd
    @dmxd 2 роки тому +1

    Wow, how your English has improved, it's amazing.

  • @makrdev
    @makrdev 3 роки тому +4

    Great one! Looking forward to see a tutorial on deployment with NextJS 😇
    Edit: I would love to learn nextAuth integration as well.

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  3 роки тому +4

      There will be a video about deploying both next and Directus to the same Digital Ocean droplet. I have NextAuth in a backlog for some time now, maybe I will show how to use it with Directus.

    • @makrdev
      @makrdev 3 роки тому

      @@WatchandLearnTutorials Thanks for sharing! I've tried to implement NextAuth yesterday and the main problem is social login. I created a q&a here maybe you can check and help me if you have some time :)
      github.com/directus/directus/discussions/7193

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  3 роки тому +1

      @@makrdev I probably can't help you ATM since I never tried NextAuth. Sorry.

    • @makrdev
      @makrdev 3 роки тому +1

      @@WatchandLearnTutorials It's okay bro :) Please don't make us wait too much for the deployment video :) Thanks again!

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  3 роки тому

      @@makrdev Ok 😀

  • @WIllL651
    @WIllL651 3 роки тому +2

    really nice to see you using directus 9 for backend for your website. Will you kindly make tutorials on directus with Next.js maybe?

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  3 роки тому

      Of course I will, keep an eye on the channel, there will probably be a whole series about it 😀

  • @leanprogrammer
    @leanprogrammer 3 роки тому +4

    Looks really cool🙂 Will you be doing an in depth course on it?

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  3 роки тому +3

      Probably something like Directus 9 + Nextjs, yeah 😀

    • @leanprogrammer
      @leanprogrammer 3 роки тому +1

      @@WatchandLearnTutorials Looking forward to it 😀 Doing the strapi one now

  • @user-pi2cq4dz7w
    @user-pi2cq4dz7w 2 роки тому +1

    Спасибо

  • @blokche_dev
    @blokche_dev 3 роки тому +2

    Do they provide an SDK to deal with the API? Or is it URL based only?
    I read graphQL was possible somewhere in the documentation but didn't really find how to use it. I should consider digging deeper I guess.

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  3 роки тому +1

      They provide SDK (www.npmjs.com/package/@directus/sdk and docs.directus.io/reference/sdk/) and GraphQL. To use GraphQL as far as I understand it (since I didn't try it yet) you just send GraphQL query to the /graphql endpoint, and in the docs all examples contain REST and GraphQL versions (for example: docs.directus.io/reference/api/query/#examples-2). But I will probably make a video about it at some point, because I'm also interested in that and also REST API can get a bit cumbersome with complicated queries so maybe GraphQL will handle this better.

  • @kalib-code
    @kalib-code 3 роки тому +3

    Can you show custom hooks? I wanted to see how you will update other collections using directus 9 hooks

  • @dragon3602010
    @dragon3602010 2 роки тому +1

    Awesome
    And how can we add fields to the junction collections created from a many to many relationship like a date for example

  • @RobertWildling
    @RobertWildling 3 роки тому +2

    Nice intro! Thank you very much!!! And a very beautiful website that you have there! - Would like to know how you handle things like a newsletter subscription field in Directus?. Is the route protected? How to you secure yourself from spam? Can API files be accessed the same way as in Strapi? If so, what has to be done, when such a newsletter transcription requires updating a relational field (e.g. categories)? Any chance to motivate you doing such a video?

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  3 роки тому +1

      I don't have a newsletter and also didn't know Directus has that functionality 😀. But if I were to have a newsletter I would just use Mailchimp or something similar for that. So I would probably not make video about that. Sorry 🙁

    • @RobertWildling
      @RobertWildling 3 роки тому +1

      @@WatchandLearnTutorials The newsletter subscription was just an example. Could be anything else that has a relation that needs update on save or delete. E.g. based on some skills a user is assigned to a group a or b (the user cannot choose the group). So how does the user action call the group action, maybe even do some validation before that? (At least in strapi it needs the proper usage f the before... after lifecycle methods...)
      Simply said: more complex scenarios where scripting is needed would be most welcome. :-)

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  3 роки тому

      @@RobertWildling Ok I will try to do something like that, thanks for the idea 👍

  • @NicoPlyley
    @NicoPlyley 3 роки тому +1

    Please make a video or if you can explain here how you run Directus and Next together for deployment

  • @sergiocastillo8888
    @sergiocastillo8888 3 роки тому +3

    your videos are great, could you make an ecommerce with strapi, next, and with payment gateways like paypal or payu?

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  3 роки тому

      I don't think Strapi is ready to handle E-commerce. So probably not.

    • @sergiocastillo8888
      @sergiocastillo8888 3 роки тому

      ​@@WatchandLearnTutorials What do you think of a cms ecommerce with laravel and next with payu and paypal payment methods?

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  3 роки тому

      @@sergiocastillo8888 I mean if you can create whole e-commerce app with Laravel, then go for it. Laravel is a great framework.

  • @alainbuysse9374
    @alainbuysse9374 3 роки тому +1

    Thank you very much for your great lessons! Can you teach us how to authenticate and authorize posts with directus and next js... that would be awesome.

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  2 роки тому +1

      There will be an episode about that for sure. However, I just moved houses and haven't set up my office yet, so once I set that up I will start making videos again.

  • @adolfusadams4615
    @adolfusadams4615 3 роки тому +1

    Great tutorial! I hope you do more detailed tutorials on Directus 9. Does it support graphql? If yes, could you show Directus outputs data in graphql?

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  3 роки тому +1

      I will probably mostly use GraphQL in upcoming videos since I used REST for Strapi. So, yes, it supports GraphQL 😀

  • @PierreAtman
    @PierreAtman 3 роки тому +2

    Can you host it on vercel ?

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  3 роки тому

      Maybe with SQLite database, but I'm not sure. However if you are using MySQL, Postgres etc. then definitely not.

  • @CodeCoffeeClassics
    @CodeCoffeeClassics 2 роки тому

    Wonderful video, very well explained. You said you are hosting both your backend and frontend on the same droplet, so can you tell me which droplet are you using or how much does it cost you per month?

  • @micheljacquot3214
    @micheljacquot3214 3 роки тому

    Great video, thanks :)
    A question: what is the last example you're showing in the video? (slug.tpx)
    An extension? A custom endpoint?

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  3 роки тому

      It's a [slug].tsx file, that is specific to Next.js. It just means that the route is going to recieve a slug which you can read, and based on that you can filter the specific post from the API, based on the slug you get on your route. nextjs.org/docs/routing/dynamic-routes

    • @micheljacquot3214
      @micheljacquot3214 3 роки тому +1

      Thanks :)

  • @venkatapenumatsa3959
    @venkatapenumatsa3959 3 роки тому +1

    Is GraphQL available for data extraction?

  • @CK-us1zi
    @CK-us1zi 2 роки тому +1

    Could you create an example with translations and next.js locales routing (static or ssr)? 🙂

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  2 роки тому

      Maybe, I'm not sure. Keep an eye on this series: ua-cam.com/play/PLUBR53Dw-Ef9ZRA0QkaSKlcpotqbzQSv0.html , if I'm gonna do it it will be done in that series.

  • @ianmcfall9519
    @ianmcfall9519 2 роки тому

    Thanks for pressing the EASY button!
    Question: how can I get user_created to return the first last name instead of a uuid? 🙏🏻

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  2 роки тому

      Take a look at my current series about Directus 9 and Nextjs. ua-cam.com/play/PLUBR53Dw-Ef9ZRA0QkaSKlcpotqbzQSv0.html . You have an option when creating or editing a field in the interface tab I think, the option to setup display template, and there you would setup to show the name instead of uuid. Anyway checkout my latest series, I think I show this in the first episode and then also again in the third or something like that.

    • @ianmcfall9519
      @ianmcfall9519 2 роки тому

      @@WatchandLearnTutorials Thanks for the response!!! I checked out your other vids: For the directus ui display editing the interface to show "first last" that works fine. However, the json returned from a url query still returns a uuid. I've tried editing both the interface and the display values in the data model, but the url query returns the uuid of a user. Am I missing something?

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  2 роки тому

      @@ianmcfall9519 Honestly I'm confused by your question. What does this mean: "However, the json returned from a url query still returns a uuid"? ... I mean if you are connecting to the API and getting JSON you will get API data, "Display template" is just used for the administration part of Directus, not for the actual API response. If I understand what you are asking.

    • @ianmcfall9519
      @ianmcfall9519 2 роки тому

      @@WatchandLearnTutorials Goooot it. Yes, thanks for laying out the difference between getting JSON through API and the Directus interface. You hit the nail on the head. What I'm asking is if it is possible to get the name of an author returned(and not the uuid) in JSON when I'm connecting to the API?

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  2 роки тому

      @@ianmcfall9519 It is. But since the author is probably connected to your post through relationship you need to define that in your query. If you are using GraphQL that query would be something like:
      posts {
      id
      title
      whatever_else
      user {
      user_id {
      user_name
      user_last_name
      etc...
      }
      }
      }
      Again please watch the videos from ua-cam.com/play/PLUBR53Dw-Ef9ZRA0QkaSKlcpotqbzQSv0.html we are displaying categories that are attached to the post. The same method should be used for displaying the author.

  • @aghilpwilson879
    @aghilpwilson879 2 роки тому

    can you please upload a full series on directus9

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  2 роки тому

      That series is currently ongoing, first two episodes are up: ua-cam.com/play/PLUBR53Dw-Ef9ZRA0QkaSKlcpotqbzQSv0.html

  • @andyterry1953
    @andyterry1953 2 роки тому

    How would i upload this to my shareed hosting on Ionos and use it?

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  2 роки тому

      Don't do that, use something like Digital Ocean, AWS or similar. I tried to do something similar in this video, but it didn't work very well. ua-cam.com/video/ebWJbbUT4TA/v-deo.html

  • @nested9301
    @nested9301 Рік тому

    compared to santiy who is the best option

  • @webexpert8797
    @webexpert8797 3 роки тому +1

    Directus content multilang is not comfortable "_)