Next JS Project Structure: Patterns and Techniques for Success

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

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

  • @victorferri5451
    @victorferri5451 9 месяцев назад +5

    I has been studying english language, and you helps me so much, because your pronounce is so good to understand

    • @coderyan
      @coderyan  9 месяцев назад

      Happy to help!

  • @MrFiggleberry
    @MrFiggleberry 8 месяцев назад +2

    I'm currently merging two projects into one, and this video helped me understand the file structure to merge them. Thanks!

  • @scientificshiv
    @scientificshiv 4 месяца назад

    To me its the most important as a beginner, and I don't see this information anywhere. Good job.

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

      Happy this helped!

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

    ong you're the best keep going🐐❤️👑

  • @rumble1925
    @rumble1925 10 месяцев назад +8

    I really dont understand the reason they stopped using the pages folder.

    • @malcolmn.5222
      @malcolmn.5222 5 месяцев назад +4

      Creating layouts is MUCH easier with the app router

  • @igorr4682
    @igorr4682 6 месяцев назад +1

    for Module Path Aliases you need to set baseUrl first
    "baseUrl": ".",
    "paths": {
    "@/*": ["./*"],
    "@/components/*": ["components/*"],
    "@/styles/*": ["styles/*"],
    "@/lib/*": ["lib/*"]
    }

  • @ammarhaidar5995
    @ammarhaidar5995 Год назад +6

    Awesome video 💪💪💪

  • @curioustoy
    @curioustoy Месяц назад

    I usually have route components and lib folders, then under app have shared components and lib folders (components and util functions used across the different routes)

  • @Firststep0310
    @Firststep0310 Месяц назад

    Hey Ryan👋🏻, great video! I'm currently working on a Next.js project where I have separate frontend and backend directories. I'm curious if there's a recommended way to integrate both frontend and backend within the same project directory? As a beginner learning Next.js, I'd appreciate any insights you might have on consolidating project structure. Thanks for your help! 🚀

  • @timmyfrank3
    @timmyfrank3 4 месяца назад

    helpful video, thanks

    • @coderyan
      @coderyan  4 месяца назад

      You’re welcome

  • @EmblazNOR
    @EmblazNOR 3 месяца назад +1

    The thing I find most annoying as a beginner when it comes to structure is that whenever I run npm install xxx a lot of folders and files are made. Often also duplicates like node_modules and package.json files.
    Can I merge these duplicates or is there a way to make them merge during installments?
    Does it matter if there are duplicates? If so, can I move them around to organize my folders?

    • @coderyan
      @coderyan  3 месяца назад

      Are you talking about duplicates within your node_modules folder? There probably shouldn’t be multiple package.json files, especially in the same folder

    • @EmblazNOR
      @EmblazNOR 3 месяца назад

      @@coderyan im talking about duplicate files, but not within the same folder. Two node_modules folders with many of the same files. Multiple package.json files but not within the same folders

    • @coderyan
      @coderyan  3 месяца назад +1

      Typically, you would just have those files within the root folder of your project. If you run npm install though in a folder that’s not your root folder, then you might see some of the duplication issues

  • @Kim-by5uy
    @Kim-by5uy Год назад +1

    this was super hepful. thanks

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

      Happy to hear it. You’re welcome!

  • @pemawangchuk2024
    @pemawangchuk2024 5 месяцев назад

    Thanks for simplifying...

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

    amazing video brother

  • @asidelnik
    @asidelnik 10 месяцев назад +1

    Thank you :)

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

      You’re welcome

  • @PedroAkaki
    @PedroAkaki 6 месяцев назад

    Thanks for your opinion, i'm wondering if you still use The same structure.

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

    Bro u have a cute doggo btw

  • @konraddissake800
    @konraddissake800 5 месяцев назад

    Thank you very much sir

    • @coderyan
      @coderyan  5 месяцев назад

      You’re welcome

  • @subhammondal9288
    @subhammondal9288 7 месяцев назад

    I am using page router. I guess it does not support colocation. Please let me know if I am wrong.

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

    Is this the official docs?

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

    "colocate" is too fancy.
    Goes on to use the same word through the entire video, lol
    great video though

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

      lol fair point

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

      he kept the same context whilst going through the docs lol, gitgud and stfu :D always someone who complains about anything, this isnt reddit bruh

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

    bro the tvideo was really cool, please change the thumbnails. im lucky that i didn't skip this video after seeing thumbnails.

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

    Thank you

  • @meyuskamureed
    @meyuskamureed 4 месяца назад

    i had to low my volume your voice is so deep

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

    love u bro lol