How to Build Scalable Architecture for your Next.js Project

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

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

  • @mr.random8447
    @mr.random8447 2 года назад +86

    Keep posting, very few people go into this type of depth and your explanations are good!

  • @Warpgatez
    @Warpgatez Год назад +1

    I still refer back to this video. It is very helpful. I mean, you have to look up specifics when following this because versions have changed and this video is old. But its still good to set up a directory correctly for an application.

  • @cowabunga2597
    @cowabunga2597 Год назад +10

    I cannot thank you enough for this. I am a junior software frontend guy and was tasked to start and build a nextjs app for production. This gave me such a great bird's eye view for how to start one. I shall remain forever grateful. Thank you. We need more of your guidance and ways to build rock solid software. Thank you for spending time and teaching us beginners.

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

    never been happier with a tutorial

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

    I had to switch from Django to Nextjs for this project and you just saved me weeks of research. RUclips doesn't deserve you.

  • @1791lukas
    @1791lukas 2 года назад +1

    The best explanation that I have seen on the setup of a project.

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

    The BEST setup of Nextjs project video I have ever seen on RUclips. Thank you.

  • @govindkarthikeyan
    @govindkarthikeyan Год назад +1

    Phew ! WOW ! One and half hours I can't move anywhere ! This is out of the world ! Thanks for sharing this great content, please keep sharing stuff like this !

  • @Crevulus
    @Crevulus 2 года назад +38

    Great stuff. Really useful for someone who is at an intermediate level and wants to start looking at the architecture around code, rather than just the code.
    Tip for next time: please zoom in at least one stage. The typeface is a little small, and unreadable on mobile.

  • @Denys-g2w
    @Denys-g2w Год назад

    High-end content on this topic. No doubts.

  • @joaopedrosouzarolemberg418
    @joaopedrosouzarolemberg418 11 месяцев назад

    I watched 10 minutes and you just tell me a ton of things that i must config or change in my project. Thank you

  • @klutch4198
    @klutch4198 2 года назад +7

    Hell yeah, your videos rock dude. I'll be keeping up on your new releases!

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

    watch this video after 2-3 beginner projects and then you will feel like a pro developer immediately looking at your base setup. thanks man, this is huge.

  • @henryjeffers4979
    @henryjeffers4979 2 года назад +24

    0:00 Introduction
    1:52 Project Initialization
    5:04 Engine Locking
    8:03 Git Setup
    10:28 ESLint
    16:21 Prettier
    19:12 Git Hooks (Husky)
    29:52 VS Code Config
    37:37 Directory Structure
    39:52 Storybook
    53:35 Creating a component template
    1:03:27 Using the component template
    1:13:25 Layouts
    1:23:45 Deployment

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

      Oh wow, thank you very much! Added to the description. Cheers friend.

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

      @@AlexEagleson No worries at all! Thank you for the excellent tutorial

  • @brandonsayers9521
    @brandonsayers9521 Год назад +5

    I don't know that I've ever posted a comment on a RUclips video, but this has to be, hands-down, one of the greatest tutorials I've ever seen. The thorough explanations really speak to your industry expertise. This is exactly what I've been searching for as a developer will no industry expertise who wants to be able to scale project teams. Fantastic work, Alex! Hope to see more from you soon.

  • @vonghesjonovan
    @vonghesjonovan 4 месяца назад +1

    thank you for this amazing video!

  • @mr.artist486
    @mr.artist486 Год назад +1

    Wow!! just wow! thanks a lot for this tutorial, I learnt many things! Thank you so much!

  • @adityadubey4578
    @adityadubey4578 Год назад +3

    I have rarely found a video and a teacher of your calibre sir, please continue doing this great work, thank you so much

  • @surjeetsingh5821
    @surjeetsingh5821 Год назад +1

    packed with information, i think this is the must have information for the beginner. Everything is described in easy language

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

    Fantastic tutorial. Underrated, this deserves a lot more.

  • @Mark00oo
    @Mark00oo Год назад +1

    Oh my god! Finally, I found something useful on this topic. I really like how you explain everything in depth. Please keep posting.
    Thanks a lot!

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

    This video is a miracle from heaven.
    I wanted to start a project on Next.js but I wanted to avoid technical debt as much as possible.
    And I came across your video that explains everything cleanly in an hour and a half.
    I followed along and everything is well explained, perfect English and not too fast so cool for foreigners.
    Merci beaucoup, from France

  • @danieljayne8623
    @danieljayne8623 2 года назад +13

    This content is absolutely golden, you've really taken this seriously, it's very impressive.

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

    I don't leave many comments but had to stop by. Thank you very much for this tutorial. It was amazing in terms of explanation, tempo, and content.
    I've left the layout and sidebar to do myself as practice. I've already done a deploy so I know how to do that part.
    Learned a lot thank you one more time.

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

    Thank you so much! Creating startup project following your tutorial. Waiting for new ones

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

    Hey man time in prob 20 years of living and watching yt. For someone loving to learn in life, you are a real good teachers. Far better than all the profs and phds i experienced. Real gj keep going, i will stick to learn cs with your channel and content! Greetings from Freiburg/Germany

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

    keep posting advanced Next topics. cuz these are HOT

  • @27sosite73
    @27sosite73 Год назад +1

    this is awesome, mate!

  • @MrBox4soumendu
    @MrBox4soumendu 2 года назад +7

    Please keep posting. I have never ever found real production stuff like this level in my path of learning. It is going to be a huge support for my new job. Thank you very much 👍👏✨😊

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

    learned a lot in this video, had no idea about commitlint

  • @CoFloCipher
    @CoFloCipher Год назад +3

    This was such a refreshing tutorial to watch. Most people do not go into this level of depth for the project setup without a bunch of camera cuts or just saying 'clone this starter repo' with no explanation of why. Very well done. I noticed you havent posted anything new in about 7 months. Are you still planning to make more content on this channel?

  • @facinorousgrim8883
    @facinorousgrim8883 Год назад +3

    More tutorials please! I love your style. So down to earth, and explain things so nicely. Need more guides like this online for sure.

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

    I just finished this video! How cool it would be if you continue these really practical tutorials! Looking forward to more videos from you. Thank You

  • @k.m.jiaulislamjibon1443
    @k.m.jiaulislamjibon1443 2 года назад +1

    hell of a single video to learn a lot of thing on production level Practice. Thank you so much. It rare to find this kind of video in one place. Keep it up

  • @layer7io
    @layer7io 2 года назад +4

    I don't generally comment on RUclips videos, but I found this video a HUGE help. Absolutely incredible, great depth, pace, text version available, repo available...
    I am looking forward to get started on the next video.
    Honestly, this should be required viewing for anyone starting out with Next.js in production.
    Keep up the great work!

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

    Great tutorial! Looking forward to all the things you mention at the end of the video!

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

    Really want to thank you for this incredible tutorial, it's massively improved the setup I was using before!

  • @wassimbelhadjrhouma2805
    @wassimbelhadjrhouma2805 Год назад +2

    Oii this was brilliant. great content with good explanation. Keep posting 👏

  • @edmorel134
    @edmorel134 Год назад +1

    Thank you for this detailed explanation! Fantastic content.

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

    Wow, just amazing. This is the kind of content we NEED! ❤🙏

  • @mabruratiqi2263
    @mabruratiqi2263 Год назад +1

    great tutorial, it will help to structure a professional application. 👍

  • @thehomeschooldev6126
    @thehomeschooldev6126 Год назад +1

    Thank you , helpful indeed.

  • @allex204
    @allex204 2 года назад +9

    These tutorials are amazing, please keep posting them, really helps us who are still learning! Thank you so much.

  • @andrewberezin2978
    @andrewberezin2978 2 года назад +7

    Amazing tutorial. Thanks so much for this, Alex!!! It would be nice to see some more topics for the new project - state management, logging, error boundaries, CSS themes, maybe using existing design system for the components, fetching library suggestion, caching, branching and CI/CD strategy, testing.

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

    This video is perfect and it helped me a lot creating new big projects the right way!
    The only thing that's missing is the the timestamps for chapters just like your newest video on creating a full stack app.
    Thank you!

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

      Great idea, I should def add those, thanks!

  • @youtalky_com
    @youtalky_com Год назад +1

    This. Is. Superb. Please do more.

  • @juneroyd.quinimon495
    @juneroyd.quinimon495 2 года назад +1

    Thank you so much sir! it really helps me a lot, keep posting please.

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

    Man am I lucky to find your channel?
    this is quality content at it's highest!
    please do keep up with the good work by all means!!!

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

    Instant subscribe. Thank you for teaching more advanced configs

  • @27sosite73
    @27sosite73 Год назад +1

    i am back. and I will tell for the second time that this video is awesome!

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

    this is by far the best channel on this genre
    keep the good work!

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

    This tutorial goes above and beyond. Thank you, it really was helpful.

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

    This helped me improve my Eslint rules. Thanks for sharing Alex.

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

      Also found your advice on setting up prettier and husky. Great stuff 👌

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

      Really digging the project environment tips such as CI and directory structure. I use pnpm and wanted to avoid NPM npx command. The line in the husky file I needed was pnpm -s dlx commitlint --color --edit $1. Works great and keeps my commit messages on form.

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

    Another fantastic video, can't wait for the next one!
    Thanks for covering topics so thoroughly and with super modern tools and practices.

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

      You're welcome! Thanks for watching

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

    Can't wait for the Prisma & Supabase, as well as the i18n and mono repo modules :)

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

    я не англичан и не француз, но ролик оказался полезным для меня, спасибо, узнал действительно для себя много нового

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

    This was fantastic. I've built more than a few Next.js applications, big projects with many developers, and I learned a ton from this video! I will share this with my team, looking forward to more!

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

    Really helped me, thanks! And for anyone experiencing the ‘hostname "i.pravatar.cc" is not configured under images in your `next.config.js’ error, make sure to downgrade your next dependency within the package.json to version 12.1.4
    There is a bug in version 12.1.5 that makes it not play well with Storybook.

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

      i tried to downgrade next version in package.json to 12.1.4 it works in storybook but now I have a problem with typescript instead :(

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

      @@piyawatmahattanasawat196 I had the same issue as well. I set my @types/node to version 17.0.31, @types/react to version 18.0.0 and version @types/react-dom to 18.0.3. This seemed to do the trick for me

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

      THANK YOU THANK YOU THANK YOU! I have spent almost 2 days on and off trying to figure this out it was driving me nuts.

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

      in tthe CatCard create two variables >>>
      const CatCard: React.FC = ({ tag, title, body, author, time }) => {
      const srcGuy = `i.pravatar.cc/40?img=3`;
      const srcCat = '/time-cat.jpg';
      return (........
      then pass it through a "Loader"
      srcCat}
      src={srcCat}
      height={400}
      width={600}
      alt="card__image"
      unoptimized={true}
      />
      srcGuy}
      src={srcGuy}
      width={40}
      height={40}
      alt="user__image"
      unoptimized={true}
      className={styles.user__image}
      />
      I hope that make sense :)

  • @benjaminhoppe334
    @benjaminhoppe334 Год назад +1

    Exactly what I needed! Thank you very much

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

    Great video! Love the section on husky. It’s a great tool!

  • @Manish-pt4tn
    @Manish-pt4tn 2 года назад +1

    Thank you for making this tutorial.

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

    pure gold this video.. thanks for taking your time to explain us!! Greetings from Peru!

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

    Thanks for this amazing tutorial! Hope you continue the series. Love from Brazil!

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

    Thank you very much. From France 🇫🇷 :)

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

    Really nice overview that is hard to find anywhere else!

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

    This video was awesome! You really taught us how to set a proffessional configuration. I hope to see the backend courses with next. Thank you!

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

    thx for this. alot of tuts adays are just greenfield toy apps so this is refreshing to see.

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

      That's great feedback, thanks! Most of my do's and don'ts that I recommend have come straight from mistakes and things I've used using this stack and similar in production with other devs, so the goal is definitely to share as much of that experience as possible.

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

    Finally, got the quality content. Thank you brother. ❤️

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

    pure gold pls i know its alot to ask but can you keep posting , thanks from argentina

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

    thank you for sharing your wisdom with us

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

    Amazing work, thank to share your knowledge!

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

    You are really great keep creating videos You are some of the few people who create so great videos !! keep it up

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

    This was amazing. Everything explained slowly and in great detail

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

    Jeez. I don’t comment a lot but I must say: This is awesome. I’m on my phone right now just following this at 5AM and I stay fascinated, will be rewatching it tomorrow to actually implement it into a new project I’m planning onto. Was planning a solo project but why not just make it future proof? great stuff to learn as an intermediate developer to up your game. Such awesome stuff to keep things clean and efficient. You’re awesome and do a great job at explaining.
    Indeed the text could be a bit bigger but you already got that from the other comments. It wasn’t too bad as you explained it all well and I was able to understand what you were typing/pasting anyways

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

      Thanks for the kind words! Cheers.

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

    Great Video! The type of depth your going into is incredible. Helped me out a lot. Keep it up!

  • @nawti2371
    @nawti2371 11 месяцев назад

    We really need more of this type of tutorials instead of all the other tutorials where they only go over the most basic stuff and then you get into a company and you realize you know nothing and all those videos were useless for a company environment.

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

    Video code and blog rock, great work dude!

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

    Very helpful and nice done... calm, on point and a bunch of useful knowledge... thank you so much!

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

    SUCH A VALUABLE CONTENT :* I'm sure people here just like are certainly interested in buying your course on Udemy or something. I would love to learn a lot and not just react other things you know.

  • @shakapaker
    @shakapaker Год назад +1

    I want more videos from you, it's just amazing 💎

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

    I learned alot from this tutorial. I couldn't stop myself to comment and appreciate your efforts to explain all steps in detail. Liked it Loved it . Hoping to see more stuff with Nextjs 13.

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

    One of the best videos I have seen, keep it going 👍

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

    Your content is amazing! Already learned a lot watching for 15 minutes. Thank you very much, your work is highly appreciated.

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

    Watched the whole thing. Learned a lot and thanks to you I've setup the environment for the refactor of my app. Thanks a bunch, I subbed 🙏

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

      Glad to hear! Good luck with your app!

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

      @@AlexEagleson For my app I'm going to use Strapi (headless Node.js CMS) as my back-end. Are the best practices you proposed also applicable to Node.js? I would love to see a video where you do the same thing, but then with a back-end project.

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

      @@Badadodadoop Yes absolutely. I also use Node and Express for a couple of my other projects. The concepts are the same. I think there's even a plugin to use Express middleware in Next.js.
      My rule of thumb is that if my front-end and back-end are totally coupled, as if the backend is ONLY use by my Next front end then Next APi routes are more than enough
      If my backend is going to be consumed by any other services then Node/Express is a better choice to separate it
      One other thing you might want to consider if dealing with high traffic and using Vercel, is that deploys API routes on lambda functions, which is great for speed and availability, but might end up costing a lot more than simply hosting your own Node server. All depends on your needs in that area.
      Ultimately in terms of best practices, I like to follow the same kind of patterns described in this video:
      ruclips.net/video/oNlMrpnUSFE/видео.html

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

    Thanks for the video

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

    Alex, this was amazing!! I just started with React and am definitely not familiar with TS at all, but overall this is exactly what I was looking for! Super awesome and thanks a million!

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

    This is an amazing tutorial, really loved it!

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

    Cant express how great these videos are

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

    This is amazing. Please make a video using NextJS & Dockerfile too.

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

    Thanks for the tutorial!

  • @sandeep-jaiswar
    @sandeep-jaiswar 2 года назад +1

    great explaination ! thanks man !

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

    Thank you I have learn a lot with this I hope to see more in the future

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

    Hei! Thank you for this amazing, unique type of tutorial.

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

    That was amazing, thank you man

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

    Thanks for this! More content like this please! I think a more zoomed in look at the code would help as well.
    Q: Has anyone attempted this with pnpm? I'm going to and I'm curious about any pitfalls, if any.

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

      PNPM should make no difference here. It is just a package manager... However, from my experience PNPM is not worth it... Many things are harder: GitLab/GitHub Actions example, finding resolution for common issues, Cloud service support... All for what? Less 30s installing your packages?
      After using PNPM on multiple projects over the last year, I just went it good old regular NPM and I am not looking back.

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

    This is just amazing, AWESOME!!!

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

    This is an amazing tutorial. Can't wait to see more from you. Thank you very much!

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

    Super helpful info. Thanks

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

    Amazing video, thanks for sharing.

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

    Amazing Detailed guide, thank you