micro-frontends | A sample app to demo micro frontends in action | Frontend Framework library
kandi X-RAY | micro-frontends Summary
kandi X-RAY | micro-frontends Summary
A sample app to demo micro frontends in action
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of micro-frontends
micro-frontends Key Features
micro-frontends Examples and Code Snippets
Community Discussions
Trending Discussions on micro-frontends
QUESTION
The stack is way too complicated to recreate it, so forgive me in advance and ask me for further information.
The Angular app has the following structure:
...ANSWER
Answered 2021-Jun-03 at 22:14The issue was the way I did the bootstrap for the Angular application
Wrong approach:
QUESTION
I am investigating Micro-Frontend possibilities with Angular. I am looking into the feasibility of having independently the different parts of the UI served by their own HTTP server process but composed dynamically on the main UI; which is merely a UI template with placeholders to be replaced by these dynamically loaded Micro-Frontends.
Currently we are using iframes for this and it works great apart from the extra resources required on the client browser and of course the not so dynamic and limited approach.
My question is if it is possible to have a component in an Angular App implementing a shared and well-known component interface, be loaded dynamically from another URL; subdomain in our case?
For example, we have the following domains:
- domain.com
- sub1.domain.com
- sub2.domain.com
and we have the following component available from sub1.domain.com:
...ANSWER
Answered 2021-Mar-01 at 15:26When it comes to Angular - I've seen this done in a few different ways, each one with it's own different pitfalls and personally I didn't like neither of the options for one reason - they've made development and / or deployment more complicated instead of simplifying it. And for me it defeated the purpose of micro frontends.
If you have something that's "good enough" personally I would stick to it until Webpack Module Federation gets polished out. In short - module federation allows easy referencing of modules that are not known at the compile time, which should perfectly cover your case.
Below is a bunch of resources on the topic (including examples, Angular included):
QUESTION
I'm trying to figured out if it's possible share LESS variables among different React projects. I'm using Single-SPA to build a micro-frontends architecture. My micro-frontends are using some shared components like the react-microfrontend example does with react-mf/styleguide. Beside that, I also need to share some LESS variables (e.g. colors or typography) so I can just define them once into my styleguide project alike and then reference them in every micro-frontends I will define. Is that possible ? If yes, can you suggest to me a way to do that ? I guess the solution is to use webpack but I can't find the right way to do it.
...ANSWER
Answered 2021-Feb-25 at 19:51I found two possible solutions:
CDN
QUESTION
Recently our team has decided to implement micro front end architecture in our legacy product. It has been developed using Asp.Net aspx pages along with javascript/jquery.
Last year we started using angular in our application for some of the views. To load angular we are placing the prod build files in .net project and we are loading the component in aspx master page.
We are planning to migrate our rest pending older views to angular using micro front end architecture.
So I did a small poc for the same and was able to achieve the architecture to somewhere close to it.
I followed this url for implementation and ran it on port 4400.
And in my existing angular project i am loading this using customElements
...ANSWER
Answered 2020-Mar-02 at 15:20For those who might have requirement like this.
I did lot of research and went through lot of articles and came out with a solution.
So I created a separate application using Angular elements and generated single bundle using cmd;
QUESTION
I am doing some research into the possibility of code splitting a huge monolith SPA (AngularJS) into multiple repositories. Whether we should do it or not? The benefits and pitfalls.
The Idea:
The application consists of multiple features (user management, analytics, event management) which are made as individual angular.module
.
The idea was to split these different modules into their own repository and have some kind of master repository which would put all the pieces together before deploying.
The reason
Our application is huge now and will only get bigger. Also, the number of developers working on it is increasing.
Other reasons:
- More manageable and maintainable - only feature specific files available
- Easier to update to newer version of angular - one repo at a time
Findings
I have read that micro frontend architecture is becoming a more and more popular way of structuring big applications.
On the other hand, this will scatter files making it more difficult when fx. refactoring shared modules. It also appears that fx. Facebook and Google have mono repo.
After several days of research, I'm still torn. I see advantages with both, mono repository and multiple repositories.
I have also looked into git submodule
as a way to "import" the features into the main repository. This is my least favorite options though. Also, I've never heard of git submodule
before now so if anybody has some experience in that area please feel free to jump in.
Finally, the most important question: Is it even possible to have one AngularJS application split into multiple repositories?
Additional information: Microservices: Mono repo vs. multiple repositories
...ANSWER
Answered 2018-Jul-12 at 13:48Handling Monolith Code Bases
I have had the same issue the internal conflict that comes with it. The best answer I have found is this. "You and your team are the best people to answer this question." I know this goes against the hype of things like Micro FrontEnds will rule the world but it is the truth. This explains why some people use monoliths and are really successful like Facebook and others have the opposite outcome go with Micro Frontends and then become successful.
The only real problem in managing large amounts of code is a human problem not a technical problem. So this is a social issue. Sure, technical things change with this decision but in the end of the day you are just changing the human interaction between programmers and this code base.
So why is your team the most qualified to make this decision. You know the social dynamics of your team and corporate culture better then the rest of us.
I asked myself these types of questions when I was making this decision.
How does the team work together?
How is your team trained?
How flexible is your team?
How clear and open is the communication between teams and team members?
I would answer these types of questions and continue using case studies like Facebook which proved size of the team on a monolith does not really matter but how you work together on that monolith does and make the decision based on that.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install micro-frontends
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page