Inject content/widget/component into application using ESI inlcude

Requirements

  • Python3
  • Node

Run customer app

Simple html css page

$ cd customer
$ python -m http.server 8000

OR

Laravel App will run on port 8000

$ cd customerApp
$ composer install
$ npm install
$ npm run dev
$ php artisan serve

Run server with components

$ cd components

Simple HTTP Server

$ python -m http.server 8050

OR

Simple HTTP Server with CORS enabled, will run on port 8050

$ python simple-cors-http-server.py

Run proxy server

$ cd proxy
$ npm install
$ node server.js

Open

http://localhost:3000/