Build and Deploy a Full Stack Blog NextJs + Sanity.io | JavaScript, React

Sdílet
Vložit
  • čas přidán 1. 06. 2024
  • Every web developer dreams about own blog where he/she will be able to share knowledges, own stories, everything whatever she/he wants. In this video we will create a full stack block on technologies sanity.io and react (next.js). Furthermore at the end of video we will deploy this project with vercel.com.
    🍀 Support the channel: www.donationalerts.com/r/webe...
    ☕️ Buy me a coffee: buy.stripe.com/5kA7sL9574SG7x...
    🥰 Buy my brushes for Procreate: webelart.com/illustration.
    ✍️ My telegram channel: t.me/webelart_en
    🪆 Russian CZcams: @webelart
    💁🏼‍♀️ My instagram: / webelart
    🦄 Company LinkedIn: / webelart
    ❤️ GitHub start project: github.com/liveldi/my_blog_start
    Links:
    😌 Build and Deploy a Modern Full Stack ECommerce React Application with Stripe • Build and Deploy a Mod...
    😌 date-fns: date-fns.org
    😌 React icons: react-icons.github.io/react-i...
    😌 Sanity client: www.npmjs.com/package/@sanity...
    😌 Sanity block content to react: www.npmjs.com/package/@sanity...
    😌 Sanity image-url: www.npmjs.com/package/@sanity...
    😌 Final example in production: mysuperblog.vercel.app
    😌 An useful article about Sanity kittygiraudel.com/2021/07/16/...
    😌 Documentation Sanity www.sanity.io
    😌 Documentation NextJs nextjs.org
    00:00 Intro.
    04:22 Setup NextJs project
    07:55 Setup Sanity.io
    13:10 Start with create schema Post
    16:00 Copy start project
    18:00 Schema for Post: string, text, slug, image, date, block + image
    28:19 Validation.
    31:00 Publish post
    31:50 Groups in schemas
    34:10 Create more posts
    38:40 Prepare client project: copy components, styles and etc.
    42:10 Upload posts and connect with Sanity using getServerSideProps
    46:00 sanityClient + imageUrlBuilder
    51:10 GROQ language
    56:50 Create layouts - cover
    58:20 Fill all components with basic information + snippet rafce
    01:06:15 Work with section cover: Section, Cover, SocialNetworks, BuyMeCoffee + ScreenEgg
    01:16:50 Prepare post layout: Title, PostGrid, Post + Button
    01:29:40 Pagination
    01:40:25 Create layout for opened post.
    01:43:50 getStaticPaths + getStaticProps
    01:50:00 Continue layout for opened post: date-fns, sanity block content to react.
    01:57:50 meta titles in NextJs (Head).
    01:59:35 push to Github + Deploy on Vercel
    🦉 Final Github Link: github.com/liveldi/my_super_blog

Komentáře • 47

  • @adnanamin3666
    @adnanamin3666 Před rokem +2

    What I loved the most is how you incorporate docs to teach. It really shows how to read docs and incorporate them in the project. Keep up the good work and good luck.
    Awesome. Inspired. Happy.

  • @imakethesites3048
    @imakethesites3048 Před rokem +2

    Thanks so much, this is a lot better than the blog sanity produced to make a next/sanity blog!

  • @KozaKrisz
    @KozaKrisz Před rokem +1

    Thank you Elena! It was very inspiring and informative!

  • @emmanuelomonzebaguan726

    What an excellent way of teaching, make refrerrance to documentation that was superb, Kudos

  • @alexzahrai4703
    @alexzahrai4703 Před 6 měsíci

    Fantastic walkthrough!

  • @MotivateSphereOfficials

    Thanks sweetHeart ❤❤❤
    this is a very helpful lesson

  • @imakethesites3048
    @imakethesites3048 Před rokem +4

    For anyone who is stuck at the deployment because "title is undefined on [slug]", it might be if you're using getStaticPaths and fallback: true, but haven't set values to show when you run build. I changed true to 'blocking' and the build finally worked.

    • @webelart_en
      @webelart_en  Před rokem +1

      👍 Thank you for the comment and helping.

  • @aselemidivine8759
    @aselemidivine8759 Před rokem

    Thanks so much for this video, it's so engaging and educating.

  • @tamalefrank5830
    @tamalefrank5830 Před rokem +1

    She deserves way more subscriptions......

  • @mdshowrov1661
    @mdshowrov1661 Před rokem

    Love from Bangladesh 🇧🇩🇧🇩🇧🇩

  • @dvkerns
    @dvkerns Před rokem

    Thanks for making this. Is this based on the latest version of Sanity Studio? I know they recently pushed a big update.

    • @webelart_en
      @webelart_en  Před rokem

      I used sanity studio which was available on the moment of record video :)

  • @haian_
    @haian_ Před rokem

    Mantap keren

  • @RizwanAli-xj1wk
    @RizwanAli-xj1wk Před rokem

    nice keep it up

    • @webelart_en
      @webelart_en  Před rokem

      Yep!! Will do! 💪 Thank you!!! ❤️‍🔥

    • @RizwanAli-xj1wk
      @RizwanAli-xj1wk Před rokem

      @@webelart_en add some modern functionality like beautiful Ui and function for code...

    • @webelart_en
      @webelart_en  Před rokem +1

      @@RizwanAli-xj1wk What do you mean?

  • @dr.margulis7773
    @dr.margulis7773 Před rokem

    Awesome tutorial. 👍👍👍
    Many thanks, dear Helena. 👏

  • @sophieroche7869
    @sophieroche7869 Před rokem +1

    Hi Elena! Loved your tutorial (also love to watch women teach code ❤). I was just wondering, what about sanity for deployment? Is it already hosted as soon as you create a project with them?

  • @romanmed9035
    @romanmed9035 Před rokem

    You livecoding is well. i understand it speaking (listening).

  • @ToadyEN
    @ToadyEN Před rokem

    Great video :) very informative
    Also; peace to the people of Ukraine and Russia

  • @josecardons6221
    @josecardons6221 Před 10 měsíci

    once it´s deployed you can create new posts?

  • @user-ts7cj7rj7j
    @user-ts7cj7rj7j Před rokem

    amazing! if I follow it well, seo things will work well?

    • @webelart_en
      @webelart_en  Před rokem +1

      Thank you! I didn't work a lot with SEO part, I mean I didn't add headers, titles and etc. I think that just added title, but you can do this as a homework. :)

    • @user-ts7cj7rj7j
      @user-ts7cj7rj7j Před rokem

      @@webelart_en thank you!

  • @itsyourboyt4683
    @itsyourboyt4683 Před rokem +1

    I love you

  • @neelpatel8309
    @neelpatel8309 Před rokem

    can i use react js instead of nextjs in this tutorial, that will work right ?

    • @webelart_en
      @webelart_en  Před rokem

      With nextjs we also deployed project. You can use, of course, react js, but you will not be able to repeat everything in this lesson. Also you will need to create additional server for reactjs (nodejs).

  • @aaliraza4004
    @aaliraza4004 Před rokem

    hi can you make a video on navigation schema in sanity with drop-down menu thankyou

    • @webelart_en
      @webelart_en  Před rokem

      Maybe in the future, but not now :) Thank you for watching. ❤

  • @josecardons6221
    @josecardons6221 Před 10 měsíci

    how can I delete posts? from sanity panel

  • @uutbudiarto114
    @uutbudiarto114 Před rokem

    R U from Indonesia? 😊

    • @webelart_en
      @webelart_en  Před rokem +1

      No, from Russia :)

    • @uutbudiarto114
      @uutbudiarto114 Před rokem

      oh sorry, because I see some examples of titles using Indonesian. thank you your video is very cool 👍

  • @manindrasammanathegreat8253

    🤍🤍🤍

  • @saikrishnamuntha62
    @saikrishnamuntha62 Před rokem

    Hi Elena do tutorial on Nextjs + Typescript + Redux toolkit on crud application

  • @khaliqqureshi6465
    @khaliqqureshi6465 Před rokem +1

    How are you waiting for my Janjab to Do? Allah Hafiz will be online after a month. To all of you friends and public of Anssa No Fakbok all over the world. May Allah bless you all. Amen. Zindabad Forum Abdul Khaliq Qureshi Government Service