The following software is required to run the sample:
- Git
- Node.js
- NPM
Clone the repository:
git clone https://github.com/ArtOfMicrofrontends/07-red.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 ejs express
-
Add code for the microfrontend
-
Add HTML fragments into
views
-
Add the required assets (e.g., CSS stylesheets) into
public
-
Run server