Building Modular Angular Apps with the Nx Standalone Project Setup

  Рет қаралды 38,270

Nx - Smart Monorepos - Fast CI

Nx - Smart Monorepos - Fast CI

Күн бұрын

Пікірлер: 47
@nxdevtools
@nxdevtools Жыл бұрын
Further useful infos: Tutorial: nx.dev/tutorials/angular-standalone-tutorial Final result repo: github.com/nrwl/nx-recipes/tree/main/standalone-angular-app Slack Community: go.nrwl.io/join-slack
@EdemSeitnebiiev
@EdemSeitnebiiev Ай бұрын
even as not english native speaker I got everything u have say, it is the best explain of NX, thank u!
@OussamaDinia
@OussamaDinia Жыл бұрын
This is a game changer for us developers, to start using nx and also well structuring our angular apps for progressing towards monorepo only if necessary. it is also a good way to become more familiar with many nx commands. really cool :)
@Nabulio85
@Nabulio85 7 ай бұрын
Really great. Thank you for your explanations. I've been working with Angular for five years and I'm just launching it with Nx.
@carlosabud
@carlosabud Жыл бұрын
Great video man, keep it up!
@Supaship6000
@Supaship6000 Жыл бұрын
💯Juri rocks!!
@AgustinCampon
@AgustinCampon 10 ай бұрын
On my next project Im gonna try nx ! Looks really solid
@jairusshole8622
@jairusshole8622 9 ай бұрын
I never understood why one would need to use a monorepo until now! Thank you sir!
@nxdevtools
@nxdevtools 9 ай бұрын
You're welcome - Juri
@muhamedkarajic
@muhamedkarajic Жыл бұрын
We want for the CI also a video :)
@PackAndGoFamily
@PackAndGoFamily 9 ай бұрын
Nice, would be very nice also. Give some example scenarios how to Setup a CI as you said. I know i can be done you many ways, but maybe try to select the most common scenarios. Thanks for the video.
@dryphresque7113
@dryphresque7113 8 ай бұрын
Thank you for the video, a understand a lot 👍
@fieryscorpion
@fieryscorpion Жыл бұрын
Great video. This is quite interesting! Do you have the next video out yet? Thanks!
@KiffinGish
@KiffinGish Жыл бұрын
Great video, thanks. You create a shared ui component, but what would one use this for? What about shared header and footer components, would they be placed in here also. What about a shared material library?
@tm-tk8ez
@tm-tk8ez Жыл бұрын
literally my question! I was so curious how he would use the ui lib. I've came across this video while looking for a help: I'd like to have one common library that would provide material-based components. @nx/angular:library generates a standalone component by default and I'd imagine such library would be a module which would provide multiple non-standalone components. From brief look, feels like nx generators does not support such approach, or am I wrong?
@Santon-Motho
@Santon-Motho Жыл бұрын
OMG I finally SEE the value of Nx! This was a gem of a video. I might be assuming too much right now, but I'm excited to explore Nx a lot more now. Please keep uploading such videos
@nxdevtools
@nxdevtools Жыл бұрын
💙 we will 💪 - Juri
@fieryscorpion
@fieryscorpion Жыл бұрын
Q: Why is @nx/angular a dependency and not a dev dependency? Can you please explain? Thanks!
@sambio2122
@sambio2122 Жыл бұрын
Bravo ❤ 🎉!!!
@igorr4682
@igorr4682 Жыл бұрын
Regrettably, possessing programming knowledge and familiarity with the topic does not automatically translate to being an effective teacher. Alongside technical expertise, proper communication skills and clear pronunciation are imperative to ensure that your audience is on the same page and fully engaged in the learning process
@juristr
@juristr Жыл бұрын
Hey, sorry you feel that you didn’t find it useful for learning more about the topic. Any particular parts you didn’t like? Or want me (us) to improve on?
@valikonen
@valikonen Жыл бұрын
I really don't understand why you don't create many projects to use the shared modules. Your scenario can be done simpler with angular cli and don't need an extra layer like NX. I miss something?
@sivuyilemagutywa5286
@sivuyilemagutywa5286 Жыл бұрын
Try adding an IONIC app in an Angular CLI Workspace, Angular Workspace is good for simple projects, but with NX, it can save a lot of time. For I don't see a reason to ever use Angular CLI Workspace, even for small apps. Nx is more than just a Workspace.
@HarveyDaclan
@HarveyDaclan Жыл бұрын
Hi Juri, thanks for this tutorial. I usually have a shared theme in my projects. How do I share scss files from one library to another? Is this possible in both standalone and monorepo projects?
@Supaship6000
@Supaship6000 Жыл бұрын
scss is a weirder piece to work with for Nx. You can do stuff like make a project for it to "bucket" it into it's own space, but usually the way I handle things with styles is to create a lib (or multiple libs) with shared components that use the styles in question. (I also tend to go for tailwind though!! lol)
@MartinPultz
@MartinPultz Жыл бұрын
I noticed that their were some merges around eslint v8 to v9. I thought maybe running the migration from 16.5 to 16.6 might perform that update. Is that something that hasn't quite made it's way into an Nx release, but eventually would self update or do I need to perform that update myself? Feels like the answer is yes it will update, but wasn't sure after my last nx migrate. Cheers! Reply
@0brooo
@0brooo 19 күн бұрын
I am running multiple angular websites and their build time and package time is taking up 6 gb of ram. I’ve done everything from caching to using run-many. I tried esbuild but no success. Any ideas?
@ankushkalia6982
@ankushkalia6982 Жыл бұрын
Can i convert a standalone app to monorepo setup in future?
@valikonen
@valikonen Жыл бұрын
At least with module federation, yes.
@Supaship6000
@Supaship6000 Жыл бұрын
This is one of the more requested features we've seen. I don't believe we have a generator for this yet to automate the process, but it can be done manually by moving around files!
@foreignworkers2006
@foreignworkers2006 Жыл бұрын
Kudos
@leonardocamargo5412
@leonardocamargo5412 Жыл бұрын
If I need to create a small module within the application. For example: Customer module, which has only the following components: Registration form page; Edit form page; Page of the table with the list of customers. NX will create a local library of clients. As this is a small module, won't separating it into a local library make the project too big and cumbersome? Besides, as a local library will be, instead of installing its own dependencies, is it okay if I use the dependencies globally in the application?
@punplatuna
@punplatuna Жыл бұрын
Hi, I'm new to NX console and I've been trying to follow this tutorial I have a few questions: Regarding the shared/ui directory, should I place shared UI components like a navbar or footer there? like shared/ui/src/lib/ui-navbar right ? If I want to create a UI for a feature, what steps should I follow?
@juristr
@juristr Жыл бұрын
Hey! Yeah you can. The structure I show in the video is really just one possible way of structuring. But yeah, usually you structure the folders based on the domain area, meaning if you have shared things that can be used across the entire app you'd place them there. That's mostly just for developers as a help to orientate. A structure could be modules/
@alessandrocolinucci3315
@alessandrocolinucci3315 Жыл бұрын
@@juristr Great answer and structure! I have a small question I hope you can help me with it because this drives me crazy: let's suppose we have the use case of the video, different "orders" and "products" domains, with linting for bounding rules. In this case, I have NgRx installed, and in the "orders" domain I want to show the top 10 products to make an upsell. I can achieve this with an NgRx selector that is declared in a "data-access" lib of the "products" domain. How can I use this selector inside a lib in the "orders" domain without breaking the linting rules for boundaries?
@Supaship6000
@Supaship6000 Жыл бұрын
@@alessandrocolinucci3315 NgRx makes for an interesting case when it comes to creating out a separate data-access lib. Here's an older video where I address that issue exactly: kzbin.info/www/bejne/rpjUeWSNjLeBnqMm30s
@alessandrocolinucci3315
@alessandrocolinucci3315 Жыл бұрын
​@@Supaship6000 That's a great tip! Thank you
@Supaship6000
@Supaship6000 Жыл бұрын
@@alessandrocolinucci3315 glad it helped!
@iliasdinia6475
@iliasdinia6475 11 ай бұрын
About the lazy loaded routes, when you type .then and use the onfulfilled function. Did you create that function somewhere ? Could you please explain how and why are you using it ? It did not work for me , i did plenty of research. In the end I just decided to remove it and use a lazy loaded route without the onfulfilled thing
@BobMazzo
@BobMazzo 8 ай бұрын
Interesting how changing the port num in project.json and e2e\cypress.config.ts is NOT recognized. Cache related I imagine..
@Matheus_1582
@Matheus_1582 Жыл бұрын
Como introduzir isso no IONIC...???
@nemanjazivaljevic1656
@nemanjazivaljevic1656 Жыл бұрын
Can someone help me with this? I have multiple angular apps that use UI components from libs file. The problem is that nx doesn't tree shake them, it bundle everithing.
@Supaship6000
@Supaship6000 Жыл бұрын
You can use Nx to create multiple libs to section your components better, but iirc, we don't run our own "nx bundler" for Angular apps - we just use Angular's builder for this - and tree-shaking should be happening at that level. I wonder though if it's possible that you are referencing the unused components somehow so that they wouldn't get tree-shaken? 🤔
@aram5642
@aram5642 6 ай бұрын
Why does a new library always have to create a component? Couldn't there be a flag to disable this behavior?
@aritrobiswas1731
@aritrobiswas1731 Жыл бұрын
nx graph is showing static load instead of dynamic. In browser page is lazy loading , anyone facing the same issue ?
@ernstdettbarn3822
@ernstdettbarn3822 Жыл бұрын
Nice nice nice
@iliasdinia6475
@iliasdinia6475 11 ай бұрын
Great video! However you do everything way too fast. That makes it a struggle for less experienced developers
Angular v19 is out!... and it changed my apps (significantly)
3:52
Joshua Morony
Рет қаралды 21 М.
Cypress Testing with React - Simple Tutorial
12:43
Cosden Solutions
Рет қаралды 62 М.
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
Building Modular React Apps with the Nx Standalone Project Setup
30:09
Nx - Smart Monorepos - Fast CI
Рет қаралды 17 М.
Nx Tutorial: Migrate Multiple Angular CLI apps into a Single Nx Monorepo
35:03
Nx - Smart Monorepos - Fast CI
Рет қаралды 19 М.
Nx vs Angular CLI - The Showdown
43:02
Nx - Smart Monorepos - Fast CI
Рет қаралды 9 М.
How to structure a JS/TS monorepo | From Zero to Turbo - Part 1
11:58
Modern Python logging
21:32
mCoding
Рет қаралды 220 М.
Mastering NX Angular Monorepo: Simplify Development and Boost Productivity
11:46
Monsterlessons Academy
Рет қаралды 23 М.
Angular Microfrontends with NX and Module Federation
25:44
Sebastian Persson
Рет қаралды 19 М.
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.