23 Sept - 15:00 - Building Custom Web Apps with the App Platform Q&A

In this discussion thread, feel free to ask questions related to the Building Custom Web Apps with the App Platform session of the 2020 DHIS2 Digital Annual Conference. You can post your questions ahead of, during, or after the session. The panellists will check this thread for questions, and select some for responding to in the session, or follow up after the session has ended. Feel free to respond to other questions or add to them if you have something to follow up with.

1 Like

How does one publish a completed custom app to a local DHIS2 instance? Can one use the App Management app to upload?

How much code of @dhis2/app_runtime is reusable in react native?

Does the CLI support Typescript. If not , is there any plan to support it?

The app-runtime as presented does it support all Web API resources or at at least all the commonly used ones?

Thanks for the great presentation @austin (@Simona, et. al.)
You mentioned that the Dashboards App had been migrated to the App Platform.

This migration is clear when looking at the package.json file, but it looks like data is being fetched using d2 and managed using Redux (e.g. https://github.com/dhis2/dashboards-app/blob/master/src/api/dashboards.js). So it looks like the app has been migrated but doesn’t, say, use the hooks exposed by @dhis2/app-runtime

My question is: do you have plans to “migrate” the core apps to use App Platform’s runtime, ui, etc., in the longer term? Or are the apps going to still use a mix of various approaches?

There are situations when you might need to edit the webpack config file. Does the d2 cli support ejecting or are there tools that can help me accomplish that.

Thanks for the great question Tom! Yes, we are progressively migrating data access (@dhis2/app-runtime) and UI components (@dhis2/ui) as well as migrating to the platfrom wrapper (@dhis2/cli-app-scripts)

The dashboard app uses many UI components but does not yet use the app runtime, but we plan to continue that migration in the next development phase before 2.36.

1 Like

Hi @carapai - currently the app platform does not support custom WebPack configuration. This is intentional. The vast majority of use-cases should be solvable with the out-of-the-box configuration or a custom Babel transform. Do you have a specific use-case in mind that would require a custom webpack configuration?