/micro-frontend-basic

A basic implementation of micro-frontends using NextJs zones and federated Apollo GraphQL

Primary LanguageJavaScriptMIT LicenseMIT

micro-frontend-basic

A basic implementation of micro-frontends using NextJs zones and federated Apollo GraphQL

All client and server applications need to be running in order to see the applciation working. To do this:

[1] Start the GraphQL servers by running the following commands from separate terminals:

cd gateway-server

then run:

yarn run start-services

and:

yarn run start-gateway

You should now see a working Apollo gateway on http://localhost:4000

[2] Start the clients. To do this for the home-app in a new terminal:

cd home-app/client

then run:

yarn && yarn dev

for the product-app in a new terminal:

cd product-app/client/product

then run:

yarn && yarn dev

For the account-app in a new terminal:

cd account-app/client/account

then run:

yarn && yarn dev

Tou should now find a NextJs application working on http://localhost:3000