Both of the cases this year require that our React applications use
the DHIS2 app platform and app runtime. The easiest way to get started
it to use the
d2 command line to initialize our app as shown below.
Initializing an app using the command line
d2 CLI provides a simple way of initializing a new app. Let us
navigate (in the terminal emulator) to the where we want to create our
project. This command requires
to be installed on our machine.
d2 app scripts init <app-name>
<app-name> must be replaced with whatever you want to call your new
We can now navigate into the newly created folder and start our development server.
A web-browser window should have popped up greeting you with a login dialog (as shown below).
Entering our login credentials and signing in gives us the following screen.