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.
- User requests
/:fragment(red) Nginxroutes the request toShell(red)Shellmakes a remote import call toFragment [A/B](green)Shellexecutes the imported modules fromFragment [A/B]and returns the rendered page- Requests for static assets are routed through
Nginxto the appropriate container (blue)