Build Modern Next 14 Server Side App with Server Actions, Infinite Scroll & Framer Motion Animations

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ธ.ค. 2024

ความคิดเห็น • 324

  • @javascriptmastery
    @javascriptmastery  ปีที่แล้ว +6

    🌟 Become a top 1% Next.js 14 developer in only one course: jsmastery.pro/next14

  • @rohankaushik7849
    @rohankaushik7849 ปีที่แล้ว +61

    00:03 Server actions are functions that run on the server and can be called like any other JavaScript functions.
    02:44 Server actions in Next.js abstract the process of making API calls from client to server.
    07:43 Server actions allow you to do mutations and perform create, update, and delete actions on top of the typical read operations.
    10:07 Learn about infinite scrolling and server actions
    15:05 Fetch data from the Shikimori API
    17:28 Creating a parameter template string with page, limit, and order
    21:54 Install and use react-intersection-observer package for tracking element visibility
    24:09 Implementing server actions and infinite scroll for loading more data
    28:30 Implement animations using framer motion in a Next.js app
    30:45 Create a motion div component for client-side rendering using Framer Motion.
    35:11 Optimize loading time of items when scrolling far down
    37:15 Using server actions to fetch and return data for animations
    41:36 Learn how to use Next.js like a pro with server actions and deep dive lectures

  • @aayushjajoo332
    @aayushjajoo332 ปีที่แล้ว +25

    This is the kind of video that sorts all of the issues and explains properly. Awesome Project!

  • @davilagotaveira
    @davilagotaveira ปีที่แล้ว +12

    Awesome Project Adrian! I'm 20, Brazilian and starting my career with nextjs on this month, I don't have money for the entire curse yet but I really love to make all this projects with you, I wish I will start my own projects soon, thank you for all! God bless you!

  • @eliasoliveira292
    @eliasoliveira292 9 หลายเดือนก่อน +3

    I was skeptical about the components being on server side after aplying the but they are really in server side, thank you for this tutorial.

    • @Hirijinitus
      @Hirijinitus 8 หลายเดือนก่อน +1

      Me too. I thought use client would be inherited by the children.

    • @emilzonjeronimo8898
      @emilzonjeronimo8898 3 หลายเดือนก่อน

      You're right, to make server side that section it's necessary to receive it in a children prop in the component.

  • @GreenPear-mz4dl
    @GreenPear-mz4dl ปีที่แล้ว +7

    Hi Adrian, know you is a blessing, I am really grateful that you make the NEXTJS14 course on sale again so I could be able to buy it yesterday. I love all of your Video contents, they are free but beyond quality. Thank you again. 💯💯💯

  • @Tapadar.Monsur
    @Tapadar.Monsur ปีที่แล้ว +19

    I'm thoroughly enjoying these concise crash courses that delve into specific topics. Thank you for creating these informative videos. I look forward to more content in the future, and I would particularly appreciate a short tutorial on React Query. Keep up the great work!

  • @tryingtobeproductive
    @tryingtobeproductive ปีที่แล้ว +2

    nobody makes me feel motivated to code than this guy on the leadup to the coding, well done

  • @Lamayoo
    @Lamayoo 4 หลายเดือนก่อน +1

    please do more of these videos they are so helpful and not overwhelming. Thank You for your efforts.

  • @edihasrin7290
    @edihasrin7290 ปีที่แล้ว +4

    prefer like this, under 1 hours, easy to understand, love it ❤❤❤❤

  • @seventyMinus1
    @seventyMinus1 ปีที่แล้ว +4

    The way you explained things is Just Amazing. This video is really a piece of work

  • @vanguox
    @vanguox ปีที่แล้ว +3

    Finally I have something to do for the next two weeks! Thanks JSM.

  • @sobanmustafa4457
    @sobanmustafa4457 ปีที่แล้ว +3

    Awesome video. Yes Please make more content of this type which focuses on a single specific feature. it helps to get more in-depth knowledge of that topic. Thank you so much

  • @Stefoux
    @Stefoux ปีที่แล้ว +4

    Excellent little project with explanation of concepts! I would like to have more content like this to improve frontend concepts ! Thank you Adrian & JSM

  • @alexanderchepkiyeng
    @alexanderchepkiyeng ปีที่แล้ว +24

    2 years later, I am still Here loving the content 🎉❤

    • @javascriptmastery
      @javascriptmastery  ปีที่แล้ว +1

      Thank you so much! ❤️

    • @serxeoworld5773
      @serxeoworld5773 ปีที่แล้ว

      Did you get hired?

    • @alexanderchepkiyeng
      @alexanderchepkiyeng ปีที่แล้ว

      @@serxeoworld5773 Not yet. Been working on getting the capital I Join the Masterclass, passed the interview with flying colours. JSM, Adrian articulates core concepts in a simple clear manner. Provided you have the innate will to learn consistently through practice. Understand, Rinse then Repeat 🔁

    • @franukito
      @franukito ปีที่แล้ว +1

      sir do you live in year 2025?
      salutations from year 2023

    • @Akash_Unreal
      @Akash_Unreal ปีที่แล้ว

      ​@@franukitohe means he's a old sub and still watches the content frankfurt dickson

  • @mariakaravazaki4608
    @mariakaravazaki4608 3 หลายเดือนก่อน +1

    Hi Adrian, that's great content, please make more videos like this, thank you for everything!

  • @nabeelmirza8801
    @nabeelmirza8801 ปีที่แล้ว +3

    Wow, I'm so impressed of your websites!

  • @online_sourcecode1613
    @online_sourcecode1613 ปีที่แล้ว +2

    really helpful, i was struggling with infinite scroll functionality

  • @OPGAMER.
    @OPGAMER. ปีที่แล้ว +2

    As a anime lover, really excited to built this project.

  • @mohammadharish8740
    @mohammadharish8740 ปีที่แล้ว +1

    Love you adrian for putting my suggestion to the video itself 😭😭😭😭❣️

  • @2pacrapempire866
    @2pacrapempire866 11 หลายเดือนก่อน +1

    Thank you so much, need more of this. You explain the concepts in an easy way. Thanks

  • @jooncco
    @jooncco ปีที่แล้ว

    The concept of Server Action became clear thanks to this video. Thanks Adrian 👏🏼👏🏼

  • @magnusbrzenk447
    @magnusbrzenk447 10 หลายเดือนก่อน +1

    “nextJs becoming php” is the perfect summary of my concerns with all the new jazz

    • @academai11
      @academai11 10 หลายเดือนก่อน

      'use php';
      coming soon...

  • @aleksandrgolyk3787
    @aleksandrgolyk3787 ปีที่แล้ว +2

    this is great, simply and very useful class. Very required format nowadays) Show must go on!!! Thank you so much!!

  • @Omi-rn4cg
    @Omi-rn4cg ปีที่แล้ว +2

    G.O.A.T , one love from Nigeria.

  • @dev-akeel
    @dev-akeel ปีที่แล้ว +4

    33:43 Yes but some of the components are rendered client side even without directive.
    So see that it is client side rendered move to the sources tab and see that browser has that AnimeCard component.
    Thanks a lot sir, still great efforts 👌

    • @dev-akeel
      @dev-akeel ปีที่แล้ว

      Sir can you please mark the AnimeCard component with "use server" directive and reply here with what you have, everything working fine or error..?

    • @javascriptmastery
      @javascriptmastery  ปีที่แล้ว +1

      That's a great observation

  • @MuhammadHussain-codr
    @MuhammadHussain-codr ปีที่แล้ว +1

    Great! Please more of this type of videos. Thank You

  • @razeft
    @razeft ปีที่แล้ว +1

    Really good project for explain the concept! I suggest everyone to use something to take note when watch this kind of video, it's nice to do the project, but it's really important to take note when he explain the concept.

  • @ModernMonk0
    @ModernMonk0 5 หลายเดือนก่อน +1

    Yes, Make these simple apps and explain these small concepts

  • @deathdefier45
    @deathdefier45 6 หลายเดือนก่อน

    Love you man this is the absolute best tutorial to get up and running with nextjs 14

  • @vaniad555
    @vaniad555 11 หลายเดือนก่อน

    What a great short project, it works like magik. Hope to see much more.

  • @mahmudulislamrudra5659
    @mahmudulislamrudra5659 ปีที่แล้ว +2

    Thanks man. Thanks a lot. This type of video is very helpful to explain concepts and facts. So, if its possible, then keep making this type of videos and contents...

  • @deviskalo
    @deviskalo ปีที่แล้ว +1

    Wow, amazing! Thanks for this @adrian

  • @ProjectsMastery82
    @ProjectsMastery82 ปีที่แล้ว +1

    Great video 🎉

  • @syndg
    @syndg ปีที่แล้ว +1

    Amazingggg! Was literally waiting for you to upload a video where you use framer motion!

  • @duduzincp
    @duduzincp ปีที่แล้ว +1

    Nice bro, Brazil thanks you

  • @sandrogtz
    @sandrogtz ปีที่แล้ว

    perfect video length packed with valuable knowledge thanks

  • @himel_islam
    @himel_islam ปีที่แล้ว +1

    really helpful!! please do make this types of videos

  • @zhiven7484
    @zhiven7484 ปีที่แล้ว +1

    Very good video!! Looking for more!

  • @manomangaldas
    @manomangaldas ปีที่แล้ว +1

    Crash courses are awesome.. please do more of these concept based videos

  • @Nanashi-rq7lk
    @Nanashi-rq7lk 4 หลายเดือนก่อน +1

    Thanks. Good Tutorial

  • @asrafulislam8948
    @asrafulislam8948 ปีที่แล้ว +1

    Great video as always.

  • @salihbozkaya8465
    @salihbozkaya8465 ปีที่แล้ว +1

    Next.js is just awesome❤

  • @Deus-lo-Vuilt
    @Deus-lo-Vuilt ปีที่แล้ว +2

    Wow
    Next 14 with framer motion ❤

  • @aadarshgurug
    @aadarshgurug ปีที่แล้ว +1

    it's amazing, need more videos like this ?

  • @sportsmanship2024
    @sportsmanship2024 ปีที่แล้ว +1

    Wow! This is a great content. I wish to join the ultimate class. Thank you for the insight Mr.Andrian. We will like to get more insights and contents from you

  • @wildanmaulana1882
    @wildanmaulana1882 ปีที่แล้ว +9

    here is the simple code for framer motion,
    just add this in your map
    const adjustedIndex = index % 20;
    - the number 20 is limit data perpage
    so you dont need to move the map into actions file
    for example, in loadmore component
    data.map((series: SeriesCard, index) => {
    const adjustedIndex = index % 20;
    return (



    );
    })
    sorry my english is bad

  • @Omarwaqar-pt7wf
    @Omarwaqar-pt7wf ปีที่แล้ว +1

    Yes , pls do more of these videos

  • @Imacul77Game
    @Imacul77Game ปีที่แล้ว +1

    Thanks a lot 🎉 Adrian

  • @suryakantasinha
    @suryakantasinha ปีที่แล้ว +1

    Finally😆small project but great🤩

  • @codecure4009
    @codecure4009 11 หลายเดือนก่อน

    Love your way of Explaining

  • @mamitianasolofo723
    @mamitianasolofo723 ปีที่แล้ว +1

    Your videos are amazing

  • @aroundtheworld560
    @aroundtheworld560 ปีที่แล้ว +1

    Boss! Love You.❤

  • @Imacul77Game
    @Imacul77Game ปีที่แล้ว +2

    Thanks 🎉

  • @RIOxICONIC
    @RIOxICONIC หลายเดือนก่อน

    Sir, Please Continue This Series Of Teaching Us NEXT JS Concepts

  • @anujkashyap999
    @anujkashyap999 ปีที่แล้ว +2

    My mentor, ❤ hey there!

  • @apo__tato__sal__ad
    @apo__tato__sal__ad 9 หลายเดือนก่อน

    This was amazing!!

  • @zyncc
    @zyncc ปีที่แล้ว +1

    Its an amazing day when JSM uploads a video 😉

  • @valentinkrajzelman4649
    @valentinkrajzelman4649 ปีที่แล้ว +2

    omg next 14 already jesus

  • @lukaszsl
    @lukaszsl ปีที่แล้ว

    Hi Thanks for the video !
    Info for motion:
    To have a server component inside the client component you need to use children props. Something like that:
    "use client";
    import React from "react";
    import { motion } from "framer-motion";
    type Props = {
    children: React.ReactNode;
    className?: string;
    };
    const variants = {
    hidden: { opacity: 0, y: -50 },
    visible: {
    opacity: 1,
    y: 0
    },
    };
    export const MotionDiv = ({ children, className }: Props) => {
    return (

    {children}

    );
    };
    export default MotionDiv;
    //export const MotionDiv = motion.div;

  • @pep3marquez46
    @pep3marquez46 ปีที่แล้ว +1

    I love it. Thanks, a lot!

  • @irfansaeedkhan7242
    @irfansaeedkhan7242 ปีที่แล้ว

    very helpful , thank you for in detail knowledge

  • @SamarHayatOfficial
    @SamarHayatOfficial ปีที่แล้ว +1

    I'm just waiting for your tutorial 😊

  • @sarhan_104
    @sarhan_104 ปีที่แล้ว

    yes i want that simple apps with more focused on learning

  • @elhaambasheerch7058
    @elhaambasheerch7058 ปีที่แล้ว +1

    These kind of videos are generally more useful

  • @alrazy12
    @alrazy12 ปีที่แล้ว +1

    yes do more tutorials like this one

  • @alexkarpen
    @alexkarpen ปีที่แล้ว +1

    For animation delay use the current page too, it will get smoother. Because the last from the first page is visible after the first of the second. Anyway awesome content thank you once more!

  • @podmixglobal
    @podmixglobal ปีที่แล้ว +1

    Big fan sir ❤

  • @bekizodcancer3657
    @bekizodcancer3657 ปีที่แล้ว +1

    You are out of human species...Thanks man

  • @BillaSaheb786
    @BillaSaheb786 ปีที่แล้ว +1

    great excellent plz make more project on server action

  • @Kokouvi_el_mejor
    @Kokouvi_el_mejor ปีที่แล้ว +1

    Thanks ADRIAN

  • @vOnez212
    @vOnez212 ปีที่แล้ว +1

    Good stuff. Much appreciated! Anything on Payload CMS planned?

  • @syncosota
    @syncosota ปีที่แล้ว

    thank you master ❤

  • @Ekko-d7o
    @Ekko-d7o 11 หลายเดือนก่อน

    thank you so muxh ❤

  • @akindutiredayo3433
    @akindutiredayo3433 20 วันที่ผ่านมา

    Wow It really amazing thanks

  • @lCebolitosl
    @lCebolitosl ปีที่แล้ว +1

    I want the JSM course so bad but I'm broke and unemployed right now. Finished Odin Project and some JSM projects and trying to land a first job so I can invest into this course!

  • @b166er4
    @b166er4 ปีที่แล้ว

    thx for this great tuto,
    i think,
    delay: (index % 8) * 0.1
    can be a good way to handle the stagger(based on limit=8)

  • @mahtabvariyani
    @mahtabvariyani ปีที่แล้ว +1

    perfect as always....

  • @sanketchauhan901
    @sanketchauhan901 7 หลายเดือนก่อน

    Bro casually showed us how to render server side components inside a client side component!

  • @wilsonmela6343
    @wilsonmela6343 ปีที่แล้ว +1

    Thank you so much.

  • @marekgacekdev
    @marekgacekdev หลายเดือนก่อน

    awesome, thx very much!

  • @ahmed01053
    @ahmed01053 ปีที่แล้ว +3

    Your content is very nice , interesting And I love it very much❤️❤️
    I would like it if you could create courses in Angular or projects using it🙏❤️

  • @NhanNguyen-yu3gs
    @NhanNguyen-yu3gs ปีที่แล้ว

    to be honest, i would like you release another video like that to explain more power Next.js features rather than the series which fully practices nextjs project. But btw, i always grant what you did.

  • @Yoria__
    @Yoria__ ปีที่แล้ว +1

    At 12:31, what did you do to correct the errors?

  • @waggadash
    @waggadash ปีที่แล้ว

    Well done!

  • @marvikfr
    @marvikfr ปีที่แล้ว

    Delicious ^^
    Merci !

  • @Nanashi-rq7lk
    @Nanashi-rq7lk 11 หลายเดือนก่อน

    Perfect Tutorial

  • @garou1571
    @garou1571 ปีที่แล้ว

    32:00 can someone explain why didn't he just use "use client" on AnimeCard component?

  • @heruuu6114
    @heruuu6114 ปีที่แล้ว +1

    amazing job!

  • @atmanirbharofficialindiaon2789
    @atmanirbharofficialindiaon2789 ปีที่แล้ว +1

    Pls tell ur vscode theme looks so good

  • @AdamuAnita
    @AdamuAnita 3 หลายเดือนก่อน

    Thank you

  • @BappyTechTips
    @BappyTechTips 11 หลายเดือนก่อน

    Instead of returning the AnimeCard from the server action, a better approach would be to adjust the delay. We can simply do it using the remainder operator like this. delay: (index % 8 ) * 0.25,

  • @pranavanilkumar1246
    @pranavanilkumar1246 ปีที่แล้ว +1

    Top Class

  • @frontend_ko
    @frontend_ko 9 หลายเดือนก่อน

    thanks for nice video!

  • @LuigiNicoletti-c1x
    @LuigiNicoletti-c1x ปีที่แล้ว +1

    what is the theme? thanks for the video

  • @gyanganga8441
    @gyanganga8441 ปีที่แล้ว

    I'm following this channel for a year but never completed any single project as mostly get stuck.
    but this project completing after Next js also did in react js .

  • @yugal8627
    @yugal8627 ปีที่แล้ว +1

    Amazing conten as always..🙂.
    Can someone tell me which file icons and themes Adrian is using.

  • @edvucinic2329
    @edvucinic2329 ปีที่แล้ว

    Hi Adrian, thanks for this video.
    I am getting this error: Unhandled Runtime Error
    Error: Cannot read properties of undefined (reading 'original')
    Source
    components\AnimeCard.tsx (25:51) @ original
    It seems that image data is missing or undefined, the link is broken.

  • @sanjay261982
    @sanjay261982 ปีที่แล้ว +1

    You started with server action but showed react server component (RSC) functionality. Data fetch on server side is based on RSC. Server Actions is completely different and is used for data mutations on server. Try to show a client side component with use client directive directly mutating the DB using a inline function that has a use server directive inside that functions boundary. That will be a good example of react server action.

    • @sujatagunale7079
      @sujatagunale7079 ปีที่แล้ว

      Project shows both the ways of using server action from the client (check LoadMore component) and server components. And in the beginning, it does talk about mutations and stuff through code snippets 👍

    • @javascriptmastery
      @javascriptmastery  ปีที่แล้ว

      Yes! 😊

    • @dev-akeel
      @dev-akeel ปีที่แล้ว

      @@sujatagunale7079 really🤔
      I think you couldn't understand that comment.
      The data is normally fetched from the server it is not server action.
      *But still a great video.* 💖💖

    • @sanjay261982
      @sanjay261982 ปีที่แล้ว +1

      ​@@dev-akeelthankyou

  • @smartycode
    @smartycode ปีที่แล้ว +1

    Live Long Brother.