Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

So do a git clone of the project to download the source code.

Info

Note: the actual project is on our gitlab (and is publicly available as well: https://gitlab.datafari.com/datafari-community/DatafariUI ), the github version is a mirror, so you can use either.

Install Node

To build the UI you will need node and npm. Install the latest LTS version of node from their website: https://nodejs.org/en/ (packet managers are often quite behind and older versions might not work as intended).

...

Code Block
PUBLIC_URL=/otherfolder/testdatafariui

The Then open the src/index.js file, we you must change the window.datafariBaseURLto match the URL of our your Datafari instance (my datafari instance is hosted at 192.168.1.20 with the default settings resulting in the address https://192.168.1.20/Datafari to access it):

...

The application is now ready to be built.

3- Building the app and copying the required files

...

DatafariUI is bootstrapped using create-react-app. The app is using the webpack runtime with the default configuration. If your application does the same, there will be a clash of names and only one application will be able to load on the page at any given time. To fix that, follow the information of this blog post: https://medium.jonasbandi.net/hosting-multiple-react-applications-on-the-same-document-c887df1a1fcd to redefine the name of the webpack runtime for one of the application and you should be good to go.