callstack / super-app-showcase

Monorepository template for super app development with React Native and Re.Pack
MIT License
382 stars 63 forks source link

feat: add catalog server #21

Closed andrewworld closed 1 year ago

andrewworld commented 1 year ago

Summary

Add Node JS server for storing remote containers URLs in JSON files. Every mini-app that could work as a host has its own endpoint with JSON. JSON files have next structure:

{
    <platform>: {
        <host_app_version>: {
            <remote_container_name>: <remote_container_bundle_url>
        }
    }
}

Since ScriptLocatorResolver is an async function, we could fetch URLs there and use the response in Federated.createURLResolver Host application uses its

Test plan

  1. Run Catalog Server
  2. Run Host app
  3. Open any mini-app