Guide on build and installation of a dhis2 custom web app

I have developed a dhis2 web app using d2. Now i want to build and deploy it in the app hub in my local instance. I am looking for procedures to implement this process. Thank you.

Hi @BernardMasache

Welcome back to the community. Good news! You can easily test the app in a local instance by following the instructions on this page: Creating a DHIS2 Web app | DHIS2 Developer Portal :slight_smile::+1:

Thanks!

1 Like

Thank you for the feedback.
But what I’m looking for is to compile it so that I can upload it to the app hub or manual installation in my instance.

1 Like

Hi @BernardMasache, great to hear you want to submit to the App Hub!

You can find a lot of resources here about that, does that answer your question?

Once submitted, let me know and I’ll make sure to review it quickly! And if you have any further questions, let me know as well!

1 Like

yes, i follow the document, and will let you know.

1 Like

Hi @BernardMasache
did you develop it in react ?

Thanks

1 Like

Hie @sami12111
Yes i used the d2 react app template found from the developer portal

Hi @BernardMasache
First open the new terminal and then type the command “npm run build” if you are using npm as package manager or run the command “yarn run build” if you are using yarn as a package manager.
It will give you the final build, simply upload that build in App Hub of your DHIS-2 Instance.

you can find the final build in the build/bundle directory.

Thanks

3 Likes

Thank you @sami12111
Deployed in my local instance. working perfectly.

2 Likes