Skip to content

Latest commit

 

History

History

example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Remote Modules Example App

Getting Started

The example app is setup to run in production mode by default. You can start it by running:

> docker-compose up -d

Then open http://localhost.

You can use the following command to run in development mode:

> docker-compose -f docker-compose.yaml -f docker-compose.development.yaml up -d

The first time you do this will take a little longer since dependencies need to be installed.

That's it! Any of the services listed in the development compose file will watch your local filesystem for changes. Changes you make locally will be reflected on the container, and the remote-modules client will re-fetch on every import call.

High Level Architecture

  • User requests /:fragment (red)
  • Nginx routes the request to Shell (red)
  • Shell makes a remote import call to Fragment [A/B] (green)
  • Shell executes the imported modules from Fragment [A/B] and returns the rendered page
  • Requests for static assets are routed through Nginx to the appropriate container (blue)

Request Flow