Monorepo Lerna Project Setup - React and Node.js Application | Multiple JavaScript Packages

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

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

  • @alexbennett3806
    @alexbennett3806 3 года назад +6

    your videos are awesome, love how simple and clear they are!

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

    This is the best Lerna explaination.
    Thank you

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

    Looking for a short and sweet demo of the lerna workflow and this video did the trick. Thank you!

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

    super easiest way to learn Mono Repo
    Thanks Man

  • @rafaelnunes567
    @rafaelnunes567 3 года назад +5

    Great explanation, simple and direct! Thank you!
    When are you uploading the continuation of this video?

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

    Very well articulated..learnt couple of new things today

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

    This is absolutely very clear explanation & informative. Great job Dipesh!

  • @guillaumetech6044
    @guillaumetech6044 3 года назад +4

    Excellent course, thank you for your work!

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

    Perfectly explained 👌

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

    Very nice explanation Dipesh!

  • @nipunasudha
    @nipunasudha 3 года назад +1

    This was honestly super helpful. Thanks!

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

    @Dipesh Malvia thank you this was what i was looking for how lerna works. Kudos for the great video :)

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

    Still using this content for helping me in 2024. 👏

  • @Noah-vm8id
    @Noah-vm8id 3 года назад

    Pretty much my requirements for my new webapp and I really wanted to run it in a monorepo, thanks

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

    Great explanation!!!

  • @LalitKant-d3t
    @LalitKant-d3t Год назад

    Appreciate your efforts. Thank you!!

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

    Why are you not using nx.json ??? to cache and easy handle dependencies?

  • @licokr
    @licokr 3 года назад +1

    IT'S A GREAT VIDEO! Thank you so much!

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

    Maaan, you are amazing. Thank you.
    Can you make a video on how to use lerna with husky

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

    Thanks for creating this video!

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

    Thanks you for your video

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

    That was pretty useful, thanks!

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

    I have a question. In this architecture so anyone can change any line. Is that right? A frontend developer even has the access to backend code ???

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

    Hello, When I am running the command npx lerna clean -y it is only deleting the node modules from server-api only. Can you help me in that case

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

    Looks like lena does not link dependencies to packages anymore. Did they do it on purpose?

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

    Nice explanation! how does the shared Node_modules manage smape package different versions?

  • @sglee
    @sglee 3 года назад +1

    great tutorial! thx!

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

    This is really helpful. Would be appreciated if you can share your knowledge on learna publishing as well.

    • @DipeshMalvia
      @DipeshMalvia  4 года назад +1

      Sure I will

    • @bon-dijello9021
      @bon-dijello9021 3 года назад

      @@DipeshMalvia Still waiting, this setup tutorial helped me migrate our projects from multirepo to monorepo easily. Thanks. Still waiting on lerna publishing

  • @raphael.portela
    @raphael.portela 2 года назад

    cant u use yarn instead of npm and get rid of package.lock

  • @Atif1702
    @Atif1702 3 года назад +1

    Thank you for such good content.
    I have one question. Now when we are all done with the setup, I want to add an npm package in just web-client. How can I do that?
    If I run yarn add , it creates a node_modules folder in web-client.
    Which command to use here now?
    Thanks

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

      i was also think of something which is kind of similar to your problem, which actually where am i going to install the module? should i install it in its relative folder? or at the root directory where lerna is located to?

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

    Image that our monorepo project is great and we have lots of request and we need to scale up our backend. Can we scale just backend or we need to scale entire repo ?

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

    Can you make a video on webpack configuration and how to build a react project with the help of webpack

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

    great information, thank you!!!

  • @OleksandrDanylchenko2k
    @OleksandrDanylchenko2k 3 года назад +1

    A great video! Will there be a video with the shared package?

  • @jimmyjiang7494
    @jimmyjiang7494 3 года назад +1

    hello sir, just wondering why not choose yarn as the package manager.. thanks for your tutorial by the way

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

      Yarn is in fact fast compared to npm. I usually do mix and match sometimes Yarn sometimes NPM.

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

    Just what I was after, thank you! Do you have an idea of when the common package video will be released?

    • @DipeshMalvia
      @DipeshMalvia  3 года назад +4

      Hey the initial response was not so good for this topic but now I see people are very much interested for Lerna and Monorepo, so I will soon complete the recording for common package video and publish it. Thanks!

    • @scottwager8106
      @scottwager8106 3 года назад +1

      @@DipeshMalvia Wow, thank you so much for the quick reply, subscribed!

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

      Hi Dipesh, still waiting for the common package video and if possible can you make a video on microfrontends?

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

      @@DipeshMalvia Hi, would it still be possible to make this tutorial? Thank you :)

  • @GiriJeedigunta
    @GiriJeedigunta 3 года назад +1

    Thank you for this crisp and clear explanation on lerna. How do we go about adding dependencies in the future? Say I want to add a package for the web-client, do I have to run the install in the root or in the web-api folder? If you can shed some light that would be helpful :)

  • @eveguel-boolean
    @eveguel-boolean Год назад

    The "bootstrap" command was removed by default in v7, and is no longer maintained.

  • @hallexcosta
    @hallexcosta 3 года назад +1

    Bro, could you help me with a problem I'm having?
    I have a monorepo project with the following packages
    packages/
    mobile/
    server/
    index.js -> require('../shared/axios')
    shared/
    axios
    /
    hashGenerator/
    Do you know what I need to do so that my `server` package can access my files from my `shared` package and then send the project to production?

    • @DipeshMalvia
      @DipeshMalvia  3 года назад +1

      Question will be how you are managing your monorepo are you using yarn workspaces or lerna. you need to add the dependency of shared package into your server package.json file then you can give a try.

    • @hallexcosta
      @hallexcosta 3 года назад +1

      @@DipeshMalvia Problem solved, I'm using typescript in my project and forgot it compiles the packages shared, then I chose to use command lerna run build to compile all packages with script build, the build's work now.
      Thanks for helping me :D

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

      @@DipeshMalvia I have another problem with the puppeteer, it's showing an error stranger
      'ReferenceError: _nullishCoalesce is not defined', being that in typescript worked :(

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

    can we have multiple react apps

  • @diegomauricio777
    @diegomauricio777 4 года назад +1

    Great tutorial ^_^

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

    Thank you!

  • @muhammadjaffarrazadar967
    @muhammadjaffarrazadar967 4 года назад +1

    create a video on multi cra with a shared folder also in it and also show us some deployment

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

      Sure I will take a note on this. Thanks!

  • @sametpalitci1273
    @sametpalitci1273 3 года назад +1

    Thank you

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

    great!

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

    Thank you very much! What I was looking for.
    IMHO you could have skipped the details of creating web-client and server-api making the video twice shorter.

    • @DipeshMalvia
      @DipeshMalvia  3 года назад +1

      Yes, I know that but I wanted to keep it simple and cover the as much steps as possible. The Lerna topic is not so common.

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

    great

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

    scope is not working. Could you please help?
    "start": "lerna run start --scope={client}"
    lerna notice filter including "{client}"
    lerna info filter [ '{client}' ]
    lerna ERR! EFILTER No packages remain after filtering [ '{client}' ]

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

    I am creating a react app with nodejs as backend, The structure of application is I have react app as web-client package, server as server-api package and a common package for data validation. Everything is working fine I can use the common package for data validation on both client and server side. Deploying web-client is also not a ploblem as I can run build command by react to build my front end and deploy it anywhere. But for backend if my repository is not hosted anywhere how can I deploy the backend

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

      I think, you should write webpack config and add npm script for backend. That will create build

  • @DuyTran-ss4lu
    @DuyTran-ss4lu 2 года назад

    Cool!

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

    Follow up video?

  • @nyalooo
    @nyalooo 4 года назад +1

    hero!

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

    Still waiting for your next video on lerna

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

    you don't need body-parser in 2021

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

      THis was just an example of any random package

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

    TUTORIAL IS TOO OLD HENCE USELESS. COMMAND WONT EXECUTE AS EXPECTED SPECIALLY THE HOIST COMMAND

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

    outdated

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

      Agree, the video was posted 2 years back.