Versions Compared

Key

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

The new datafari UI based on react requires a few additional steps and configurations to be built and used within Datafari. This page aims at providing those elements.

...

Build and configure for production

Install the dependencies locally

Before building the project, you need to download all the dependencies locally using npm. To do so run the following command at the root directory of the project:

Code Block
npm install

Build the production ready package

...

This will create a build folder containing the production version of the DatafariUI. By default, this build expects to be reachable on the server using the path any.domain.test/datafariui.

This can be modified by changing content of the following file at the root of the project:

...

I found it best to put it as part of the installation folder, which is by default /opt/datafari.

You can copy the build folder to /opt/datafari/www for exemple:

...

The development server can be configured to be served at any path, the default is the same as the production one, i.e. /datafariui. It can be changed in the file:

...