An Introduction to Nx Workspaces - Understanding Nx & Monorepos #1

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

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

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

    Thank you, I have been learning react and I have created many applications. I questioned myself how I could keep every app in one git repo than in many. This is how I came to this video. Migrating many react apps to one git repo and one working repo could be a good idea if not realized already. Keep it up, ex googlers.

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

    Nice intro, thank you. Migrating an existing Angular/Ionic application to Nx, would certainly be very interesting.

  • @harryknorrer7557
    @harryknorrer7557 3 года назад +8

    Hi Josh,
    thanks for the introduction.
    At the moment I am trying to migrate several Ionic / Cordova projects to a new MonoRepo. For this reason, this topic would be interesting for me. Especially the various options such as creating a new monorepo and integrating the other projects including Git history. Or convert an existing project into a monorepo.

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

    Really impressed with your way of teaching. Please ahead with more videos

  • @incrediblepatri
    @incrediblepatri 3 года назад +7

    Please continue videos particularly with how scopes, types and classifiers,CI/CD (all features :) ) work

  • @shane-porter
    @shane-porter Год назад +1

    Nice video. This really is the icing on the cache for large projects. Sorry - cake. Cake.

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

    Nice job, straight to the point. Covered so much in 11 minutes. We are currently migrating an AngularJS app into Angular 14, with the mandate of being 100% extensible. The micro-frontend architechture seems to be the best direction for this, however Nx seems to check more of the boxes, but the monorepo could be an obstacle. Giving access to some of the libs would be okay, but we don't what to give 3rd party devs access to core libs and app. Would like to see how you would approach extensibility with the custom plugins?

  • @David-iq1kd
    @David-iq1kd 2 года назад +2

    Would be really interested in seeing how NX Workspaces can be used to handle one application - but the different builds for an Android, iOS, Desktop, and Web app might look. Would be especially interested to see another video about using xPlat with Nativescript or Capacitor in NX.

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

    Really great video. Is there an updated one, as the steps described seem to no longer produce the same result... for example when you first open the project in vscode, there is no lib folder, there is no angular.json etc. etc..

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

    so touching for an excellent video

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

    Thanks mate, I got clarity why I shouldn’t be using monorepo for my use case

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

    Good one josh! very clear... good talking speed... a lot of content :)

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

    You can create package for npm/nexus etc and solve problem with share code or to create angular workspace and use module federation

  • @SunnyVakil
    @SunnyVakil 3 года назад +3

    Creating Libraries and using it in app, would be great idea.

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

    I’ve gone all in on this approach. I’m surprised I’ve not come across nx before

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

    That helped alot. Thank you for that video!

  • @kartik-unfolded
    @kartik-unfolded 2 года назад +1

    Need understanding of deployments of multiple apps using NX

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

    8:36 why usefull having one package.json for all projects ? why its not important which to which project belongs to ?

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

    hello,
    do you know if it possibole to execute this command in dry-run mode?
    npx nx run-many --target=docker --action=link

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

    Thanks @Joshua, well explained. could you please put more light into Nx-style monorepo workspace

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

    Awesome Josh 👋🙌🎉

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

    excellent video

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

    hello joshua , any ideas for integrating an existing react app in the NX workspace contains angular app ?

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

    I have no commands available in NX console (VS code). What might I be doing incorrectly?

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

    Hi Josh, how does NX handle release cycles for individual apps and can separate CI/CD pipelines be attached?

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

      Hey - you might find one of the other videos I released on this helpful: ruclips.net/video/1eHlaVoeDfU/видео.html - in short you can use the "nx deploy" command for any app in your repo, and if necessary you can do whatever kind of customisation you need to that command for your deploy process.

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

      @@JoshuaMorony Thanks josh, that helped!
      Do you have a video on advantages of Nx Monorepo vs using shared code via npm packages or local repos using npm link?
      Thanks again!

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

      @@adi_sekar I don't have a video, but this book is a great overview of the philosophy/benefits of Nx if you want to check it out: go.nrwl.io/angular-enterprise-monorepo-patterns-new-book - just from my own point of view though I would say, 1: You don't have to worry about publishing to npm or linking, it's all just right there in the repo, 2: For the more advanced use cases, Nx has ways to enforce certain rules around what can use what, so it gives you more control over governing how your libraries can be used. That is some stuff specific to differences between publishing to npm/linking, but then of course you also have the generic advantages of monorepos/Nx in general as well.

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

      @@JoshuaMorony thanks Josh, appreciate it. You earned a sub!

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

      @@JoshuaMorony Hi Josh, does Monorepo mean all the git history for individual apps be merged together into monorepo main branch? If so, does this trigger CI CD for all apps!
      Maybe use git sub modules?

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

    thanks for the video

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

    I see out of box support for Angular and React. Wondering when and how for Vue3, especially with say NUXT + VITE...any video about that would be great for at least myself! Also, can you please show if I can create commonly used .ts files as part of lib with some folder structure? A bit confused if liib is for a specific component like angular or react or it can host a collection of various typescript interfaces?

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

    what about ts, if we want react in tS

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

    are you on zsh? what plugin allows you to list the current working directory like that?

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

      You mean the working directory down the bottom? I usually use iTerm/OhMyZsh but for Hyper (which I'm using in the video) I have the following plugins: "hyper-relaxed", "hyper-statusline", "hypercwd", "hyperterm-tabs", "hyper-search", "hyper-quit", "hyperterm-dibdabs" (I assume the plugin for the working directory would be "hypercwd").

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

    my man really created an angular project in 2021...

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

    Build Commands and migration of existing apps to Nx

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

    Is it normal that the Initial Build/Run still takes too long?

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

    Please make microservices app with Frontend, docker and services taking to each other

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

    very interesting

  • @boot-strapper
    @boot-strapper 3 года назад +2

    "Kaysheeng"

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

    NX vs Teamcenter

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

    My head aches when I think about different angular apps living under different angular version from v4 to v13

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

      I think the benefits of having all your orgs apps in a single Nx workspace is a worthwhile goal, but it wouldn't be an easy thing to pull off (Google does it at massive scale, but they are also Google). At a more casual level, I think most people (myself included) use a "workspace per project" sort of approach, where most of the time you just have the frontend and the backend living in the same workspace.
      And to be clear, with the (recommended) Nx workspace approach, all Angular apps in the repo would always be on the same version because they share the same dependencies. If you update for one you update for all of them.

  • @UyenTran-kp4wi
    @UyenTran-kp4wi 3 года назад

    the video image is too poor, you need to fix it more

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

    Caysh

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

    Can you help me - what can I change?
    npx create-nx-workspace@latest
    cd [MyProjectName]
    nx g @nrwl/angular:host ==remotes=admin,customer,supplier,base
    nx run host -- devRemotes=base,admin,customer,supplier
    Console Browser Error SyntaxError: Cannot use 'import.meta' outside a module