The project uses environment variables to manage configuration settings. Ensure you have a .env file in your project directory. You can create this file by copying and adapting the provided .env.docker.example file:
cp .env.docker.example .env.dockerAfter copying and adapting the file, open it and add your desired values for configuration.
To run the project within Docker, you need to have Docker installed on your system. Follow the instructions below to set up Docker:
-
Install Docker:
- Download and install Docker Desktop from the official website.
-
Verify Docker Installation:
-
Open a terminal and run the following command to verify Docker is installed correctly:
docker --version
-
This should print the Docker version installed on your machine.
-
If you prefer to run the project without Docker, ensure you have Python and Pipenv installed on your system. Follow these steps for the setup:
-
Install Python:
- Download and install Python 3.11 or higher from the official website.
-
Install Pipenv:
- Pipenv is used for creating virtual environments and managing packages. Install Pipenv by running:
pip install pipenv
- Pipenv is used for creating virtual environments and managing packages. Install Pipenv by running:
-
Install Project Dependencies:
- Navigate to your project directory and install the required packages using Pipenv:
pipenv install
- If you are using
pytestandmypy, install the development dependencies:pipenv install --dev
- Navigate to your project directory and install the required packages using Pipenv:
-
Activate Virtual Environment:
- Enter the virtual environment shell:
pipenv shell
- If you prefer not to enter the shell, you can run commands directly using:
pipenv run <command>
- Enter the virtual environment shell:
The project relies on the Ollama API for generating AI-powered recommendations. Follow these steps to set up Ollama when running without Docker:
-
Install Ollama:
- Download and install Ollama from the official website.
-
Configure Ollama URL:
- Ensure the correct URL for the Ollama API is set in your
.envfile:OLLAMA_URL=http://localhost:11434
- Ensure the correct URL for the Ollama API is set in your
-
Download Ollama Models:
- Download the required Ollama models by running the following command:
ollama pull <model-name>
- Replace
<model-name>with the name of the model you want to download. You can find available models on OLLAMA's Library page.
- Download the required Ollama models by running the following command:
Depending on your preference, you can choose to run the project using Docker or locally.
- Prerequisites: Docker installed on your system.
- Setup: Copy and adapt the
.env.docker.examplefile. - Installation: Follow the Docker Installation guide for further setup.
- Prerequisites: Python and Pipenv installed on your system.
- Environment Setup: Copy and adapt the
.env.docker.examplefile. - Installation: Follow the Local Development Installation guide for further setup.