/07-gateway

Sample project for the gateway of "server-side composition" of ch. 7.

Primary LanguageJavaScript

Chapter 07

Prerequisites

The following software is required to run the sample:

  • Git
  • Node.js
  • NPM

Running

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

Steps

Follow these steps to implement the same from scratch.

  1. Initialize the repository
npm init -y
  1. Install the dependencies
npm i axios cheerio express nodesi ejs
  1. Add code for gateway

  2. Add (default) template into views

  3. Add the required assets (e.g., CSS stylesheets) into public

  4. Run server

  5. Start microfrontends (blue, green, red)