Downloading The Code
To download the code follow the steps:
Clone the code the repository for the Enterprise Search
...
|
git clone https://source.digital.accenture.com/projects/ST/repos/search-stack |
Enter the folder of the repository just cloned
Tip |
---|
The default branch is master, if you want to submit code, please create a branch or do a pull request to develop |
Initialize the submodules
...
|
git submodule update --init --recursive |
Install the server dependencies
...
Note |
---|
In MacOs there is a know issue when executing npm install Code Block |
---|
language | text |
---|
theme | FadeToGrey |
---|
| gyp: No Xcode or CLT version detected! |
to solve this issue please follow the instructions from this link |
Install the user interface dependencies
...
...
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
...
...
This can also be done from the root folder
Executing the Enterprise Search
...
In version 3.0.0 the command is |
...
...
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
...
...
**************************************************************************************
_____ _ _ ____ _
| ____|_ __ | |_ ___ _ __ _ __ _ __(_)___ ___/ ___| ___ __ _ _ __ ___| |__
| _| | '_ \| __/ _ \ '__| '_ \| '__| / __|/ _ \___ \ / _ \/ _` | '__/ __| '_ \
| |___| | | | || __/ | | |_) | | | \__ \ __/___) | __/ (_| | | | (__| | | |
|_____|_| |_|\__\___|_| | .__/|_| |_|___/\___|____/ \___|\__,_|_| \___|_| |_|
|_|
Mode: development
PID: 3024
Protocol: http
Port: 3000
Authentication: none
NodeJS: 14.15.1
**************************************************************************************
Tip |
---|
Both command can be execute from the root or the ui folder |
...