Blog with Next.js and and Strapi CMS

Поделиться
HTML-код
  • Опубликовано: 26 ноя 2024

Комментарии • 75

  • @Ctrl_Alt_Elite
    @Ctrl_Alt_Elite 2 года назад +20

    NOTE: June 6th 2022 --> Strapi endpoint to view JSON response is now prefixed with /api/
    So to access posts append --> /api/posts

    • @davidbayoo
      @davidbayoo 2 года назад

      this should be pinned

    • @Cosmic_Chimp
      @Cosmic_Chimp Год назад

      thanks bro

    • @stephenasiedu76
      @stephenasiedu76 Год назад

      What about the description if you style some of the elements it appears in an object form,I Don’t know how to display it

  • @flojj
    @flojj 2 года назад +12

    Okay I'm sharing just in case some people are following the tutorial as of now (end of 2022), around 42:00 here are some updates:
    As some people have already mentionned in the comments, the new endpoint to access to strapi data is /api/posts
    But the new thing is that the request is now also different: one should ask the data object which contains the attributes object which contain our strapi data (title, description, content). Which means:
    in the getServerSideProps() function, one should:
    return {
    props: {
    posts: postRes.data.data
    }
    }
    }
    and in the Home() function:
    {post[0].attributes.title}
    And everything should be fine :)

    • @houssincarnelian9562
      @houssincarnelian9562 Год назад

      hey flo can you please tell me how to make email verification after user register in strapi

    • @stephenasiedu76
      @stephenasiedu76 Год назад

      What about the description if you style some of the elements it appears in an object form,I Don’t know how to display it

  • @maxmcleod6817
    @maxmcleod6817 2 года назад +5

    I've been struggling to make a start on my own blog post, I would constantly get lost on what I needed to do next. This video has helped me tremendously! Not only have I learnt some new technologies, but you've helped me get a better idea on how to approach future projects! I'll be building off of your tutorial as a template to create my own blog page to add to my portfolio. Thank you very much for all the help!

  • @goldenknowledge5914
    @goldenknowledge5914 Год назад

    29:50 is the reason why his teaching style is so good. subbed.

  • @ihsen
    @ihsen 2 года назад

    What a gem! I have been using Nextjs for months, but never understood it as I did in this Tutorial. Thank you!

  • @illhebi
    @illhebi 2 года назад +3

    This has to be one of the best tutorials I've experienced on RUclips. Thank you so much for the clear explanations and walkthrough :)

  • @Neon1024
    @Neon1024 2 года назад

    A great tutorial for just making an actual project. Reading about 'Jamstack' it all gets a bit too confusing what tools to use, but here, with Strapi and Nextjs it seems to slot together really well. Good job

  • @lucascubilla869
    @lucascubilla869 2 года назад

    Thanks for this!, the explanation about the three types of renderings where so clear, for everyone that's struggling to understand watch from 28:30

  • @st1tch204
    @st1tch204 2 года назад

    This must be one of the best tutorials I've ever seen, thanks!

  • @fullmastrinio
    @fullmastrinio 2 года назад

    Great vide, thanks for explaining. I looked at other videos and no one touched on the stuff you covered so keep up the good work!

  • @waifufx
    @waifufx 2 года назад

    Thank you very much sir, very good explanation of getStaticPaths and suing SASS was even better.

  • @SamuOrdieres
    @SamuOrdieres 2 года назад

    Really nice project and video. Very usefull. Thank you for sharing!

  • @ddld3873
    @ddld3873 2 года назад +1

    Great video ! You explain everything so clearly thank you !

  • @kidstoysdiversao6553
    @kidstoysdiversao6553 2 года назад

    Thank you so much for this video. You’re an amazing teacher!

  • @DIN_A8
    @DIN_A8 3 года назад

    Thank you so much! This tutorial was really really good and based on what i learned here, i start creating my Portfolio / Personal Web Page. New follower earned

  • @_isaac_muniz_
    @_isaac_muniz_ 3 года назад +2

    Thank you so much!
    It would be nice if you had included some SEO tips in the tutorial, cause is the main reason I wanna learn Next.js.

  • @rezazimohamedabdessamed5465
    @rezazimohamedabdessamed5465 2 года назад

    Clean explanation thanks! just in the minute 43:00, when you talked about getStaticProps, yes it executes only once on the build step and deliver the HTML and json on the user request. But in development period it executes on user request as there's no build.

  • @slavavisuals
    @slavavisuals 3 года назад

    Great detailed video! Thank you so much!

  • @MaxProgramming
    @MaxProgramming 3 года назад

    Wow! We have NextJS video out!

  • @MohamedEzzZeeda
    @MohamedEzzZeeda 3 года назад

    Great Tutorial that make a good value to me, thanks very mutch.

  • @abdu1wahid105
    @abdu1wahid105 Год назад

    Very good tutorial. Liked.. subscribed.
    I think I'll try adapting it to use tags and slugUrls instead of ID's as that is more performant for the SEO which NextJS is optimised for. Cheers

  • @makhshafzaidi7964
    @makhshafzaidi7964 2 года назад

    Good Video. Helped a lot.

  • @gauthamvijayan
    @gauthamvijayan 2 года назад

    Superb video thanks.

  • @paullazcano2077
    @paullazcano2077 2 года назад

    What a nice video! thanks

  • @VigneshPT
    @VigneshPT 2 года назад

    Thanks a lot, watched the entire video. The link to the repo is broken, so I would really appreciate if you could update the link with the right repo link.

  • @marijnstollenga1601
    @marijnstollenga1601 2 года назад

    Really informative!

  • @chucrutdr
    @chucrutdr 2 года назад +3

    16:58 my problem is with all that config, i cannot still see anything, 404 not fonud D:

    • @chucrutdr
      @chucrutdr 2 года назад +6

      solved, new versions includes sub route /api/posts

    • @tupac0199
      @tupac0199 2 года назад +1

      @@chucrutdr thanks bro

    • @ArjunKocher
      @ArjunKocher 2 года назад

      Were you able to finish the tutorial? I am facing the TypeError: Cannot read properties of undefined (reading 'title') 41:45

    • @djpe4ka
      @djpe4ka 2 года назад +6

      @@chucrutdr and another structure of response. posts = postsRes.data.data. {posts[1].attributes.title}

    • @Ctrl_Alt_Elite
      @Ctrl_Alt_Elite 2 года назад

      @@djpe4ka Thank you ❤ saved me from a headache lol

  • @erickwillian5341
    @erickwillian5341 2 года назад

    Mando muito, very good explanation!

  • @carinvid
    @carinvid 2 года назад

    love it!!!!!!!!!!!

  • @zergzerg4844
    @zergzerg4844 10 месяцев назад

    I didn't get it. If I execute npm run build will I get an app with dynamic pages which will be generate a new content added in strapi dashboard , or not?

  • @maxjohnson7623
    @maxjohnson7623 2 года назад

    Thank you so much!

  • @jacobroling2287
    @jacobroling2287 3 года назад

    Awesome video!

  • @Deepsouthbro
    @Deepsouthbro 3 года назад +2

    This video is great! Any chance you could give us a walkthrough on how to deploy?

    • @imankit12feb89
      @imankit12feb89 3 года назад

      make repo on github.. then upload on vercel

    • @SarmadGardezi
      @SarmadGardezi 3 года назад

      @@imankit12feb89 How to upload on standard hosting ?

    • @matthewchukwu1306
      @matthewchukwu1306 3 года назад

      @@imankit12feb89 Backend deploy. How to deploy Strapi and postgres

  • @tejender_kumar
    @tejender_kumar 2 года назад

    How we are gonna deploy this on vercel?

  • @blvckpvnk4498
    @blvckpvnk4498 3 года назад

    great video dude!

  • @pratt_p1
    @pratt_p1 2 года назад

    I don't know if I'll get an answer but I'll still ask, What's the alternative to render that `htmlContent` inside a or a aside from the danger way `` ?

  • @marcodev3375
    @marcodev3375 3 года назад

    How straps handle media content like images & videos? Where the location actually stored?

  • @candyman3537
    @candyman3537 Год назад

    My next app has different structure. I even don't have a pages folder. Instead, I have a pages.tsx and layout.tsx. But I can't add blog page like what you did.

  • @kamalchoudhary8364
    @kamalchoudhary8364 3 года назад

    Thank for the amazing video.
    I have a question that is little beyond this project but relevant. If you could help me, I will be very thankful to you.
    I am using Cloudinary for media storage. If I upload an image to Strapi, it gets uploaded to Cloudinary correctly. But I receive only that image in Strapi Media Library. I mean I don't get its other versions inside Strapi i.e. thumbnail, small, medium, etc... However, I can see that those images are generated on Cloudinary.
    On the local version, I am not using Cloudinary and I can see the 3,4 versions of every image in the media library.

  • @imApodro
    @imApodro 2 года назад

    Hi, it appears that the Git is in 404. What version of Strapi is used ? V3 or v4 ? Thanks!

  • @blazi_0
    @blazi_0 2 года назад

    What about deployment ? I mean we are fetching from local host right?

  • @wouteroomen7318
    @wouteroomen7318 2 года назад

    Is this all doable with the Community Plan from Strapi?

    • @Devistry
      @Devistry  2 года назад +1

      AFAIK completely doable.

  • @cryptodev2615
    @cryptodev2615 2 года назад

    How do we upload our strapi backend to heroku?

  • @CamiloDominguezH
    @CamiloDominguezH 3 года назад

    When you import the css modules react will create a unique name to the class to avoid name clashing.

    • @Devistry
      @Devistry  3 года назад

      Yeah I noticed that. That's nice to have scoped styling. Rather not do it through js objects though.

    • @ayandak47
      @ayandak47 2 года назад

      @@Devistry the github link you put doesn't work??

  • @Gigabyteserviceofficial
    @Gigabyteserviceofficial 3 года назад

    how to create our own OAuth server in strapi, so that other sites or apps can use our server as login with our site. just like login with facebook

  • @gabrielballester8390
    @gabrielballester8390 Год назад

    Hi, do you still have the github code repo?

  • @nekoneko9135
    @nekoneko9135 Год назад

    anyone have the source code? i cant access it, it seems to be deleted or something...

  • @devilonstudio7587
    @devilonstudio7587 2 года назад

    Please, how can I use slug instead of id

  • @masrenda
    @masrenda Год назад

    How to deploy this project Mr

  • @jmoon6048
    @jmoon6048 2 года назад

    at 41:54 - TypeError: Cannot read property 'titles' of undefined. Can someone please help! will pay for your time!

    • @i-001
      @i-001 2 года назад

      I'm having the same issue. Were you able to fix it?

    • @jmoon6048
      @jmoon6048 2 года назад

      ​@@i-001 This video was made more than a year ago. Your best bet is to try determine the exact versions of the node packages used and follow the tutorial with that. I know Strapi has changed quite a bit within the last year and I have had to make minor changes using updated documentation for similar projects in order to get desired results. Would be nice if Devistry would go the extra mile and help us out!

    • @GabrielMilanezMartinsdaSilva
      @GabrielMilanezMartinsdaSilva 2 года назад

      @@jmoon6048 @i I solved the problem after watching this video: ruclips.net/video/VAbnujyXWp0/видео.html

    • @liborzdimal7189
      @liborzdimal7189 2 года назад +2

      Strapi JSON structure is different now. Simply use
      props: {
      posts: postsRes.data.data,
      },
      instead of
      props: {
      posts: postsRes.data,
      },
      and
      {posts[0].attributes.title}
      instead of
      {posts[0].title}

    • @i-001
      @i-001 2 года назад

      @@liborzdimal7189 thank you! I should have looked at the documentation

  • @GoutamReddydazz
    @GoutamReddydazz 2 года назад

    discord link is invalid now

  •  Год назад

    code url dead

  • @hamidhashemi616
    @hamidhashemi616 2 года назад +1

    what is ur english accent?its hard to understand what are u saying.even youtube subtitle generator has problem with ur accent

  • @laura-lea-the-person
    @laura-lea-the-person 2 года назад

    Great Video. The Code isn't available and the discord link isn't working.
    And how can I get the posts from the date descending. The newest first.
    Greetings from Germany