The following software is required to run the sample:
- Git
- Node.js
- NPM
Clone the repository:
git clone https://github.com/ArtOfMicrofrontends/07-gateway.git
Go to the repository's directory and run NPM install:
npm install
Now start the application:
npm start
Follow these steps to implement the same from scratch.
- Initialize the repository
npm init -y
- Install the dependencies
npm i axios cheerio express nodesi ejs
-
Add code for gateway
-
Add (default) template into
views
-
Add the required assets (e.g., CSS stylesheets) into
public
-
Run server
-
Start microfrontends (blue, green, red)