/07-green

Sample project for the microfrontend of team green in "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-green.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 ejs express
  1. Add code for the microfrontend

  2. Add HTML fragments into views

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

  4. Run server