Enterprise Search is available as the source code directly a production bundle can be build, but we don't provide one, since it is almost certain that every distribution will have a certain level of customization (at code level), and the production bundle doesn't allow that, but you can build a production bundle once you have your custom instance ready.

To have access to the code of the Enterprise Search, Git must be installed, if you haven't done it yet, please refer to Prerequisites - Install Git

Downloading The Code

To download the code follow the steps:

  1. Clone the code the repository for the Enterprise Search

    git clone https://source.digital.accenture.com/projects/ST/repos/search-stack
  2. Enter the folder of the repository just cloned

    The default branch  is master, if you want to submit code, please create a branch or do a pull request to develop

  3. Initialize the submodules

    git submodule update --init --recursive
  4. Install the server dependencies 

    npm install

    In MacOs there is a know issue when executing npm install

    gyp: No Xcode or CLT version detected!

    to solve this issue please follow the instructions from this link

  5. Install the user interface dependencies

    cd ui
    npm install

Building the Enterprise Search

Must of the code in Enterprise Search is interpreted, only the user interface code needs to be compiled, for this we got 2 options:

For development

The command below will build the use interface and create a folder dist, which is the actual code the server will for the ui, this code will be human readable making it ideal for debugging process. but slow for loading

npm run build:dev

In version 3.0.0 the command is 

npm run build-dev

For production

Same as above but this code will be minified and uglyfied making it almost impossible to debug, but perfect to reduce size and loading time

npm run build

Both command can be execute from the root or the ui folder

  • No labels