Download and install Python, currently version 3.11.2, except for windows which currently can manage 3.9.X due to a C compilation issue with a dependency
The new backend of the Enterprise Search is built in Python, using Fast API, which allow us to maintain a structure like ExpressJs, but with a better understanding and on-the-fly documentation with Swagger UI and Redoc
You can see more about the features of Fast API here
Windows currently has issues with xmlsec library, And it only supports Python 3.9.x
Connection to Accenture's VPN is required
Clone the project from the repository
git clone https://source.digital.accenture.com/scm/st/search-api.git
Verify the current brach executing the command below, it should be main
git branch
If the branch wasn't main, checkout the main branch:
git checkout main
Create a branch to work on, using the branch folder assigned <branch_folder>/develop (we recommend using develop as your working branch)
git checkout -b <branch_folder>/develop
We recommend the creation of a virtual environment to prevent python dependencies conflicts, is also helpful if you have multiple versions of python in the same machine
python -m venv {name_of_your_venv}
or
`python3 -m venv {name_of_your_venv}
If you want to name you virtual environment test then the command would look like this