| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This example demonstrates how to federate both components and routes between two servers.
The app1 has an express route called /api/user, this route consumes an federated/exposed function from app2, then it calls the function passing the request and response objects, and finally it returns the response. This app also consumes a federated/exposed component from app2, called Content, the component receives a dynamic prop that can be modified by typing in the input field, this shows the component reactivity.
The app2 is used to expose a component called Content and a route called userRoute.
Run yarn to install the dependencies.
Run yarn start this will build and start all applications.
Bellow you can see the port mapping:
| Back | FazBrowse Home | New Git URL |