- Python >=3.7
- Visual Studio Code
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
pip install --upgrade pip
python -m venv .venv
.\.venv\Scripts\activate
pip install -r requirements.txt
pip install --upgrade pip
- copy and rename the
.env.sample
file to.env
- when you want to crawl data, you have to set the API keys
docker compose -f docker.compose.yml up -d
prisma db push
Open http://localhost:5050/
- Email: [email protected]
- Password: root
Click with the right mouse button on Servers and select Register -> Server.
Connection tab requires to type:
- Host name/address: host.docker.internal
- Port: 5432
- Database: informationretrievaldb
- Username: postgres
- Password: postgres
Open http://localhost:8000/docs
to see the swagger UI
building
docker build --tag tonylukeregistry.azurecr.io/tonylukeregistry/information-retrieval/api:latest .
running container locally
docker run --detach --publish 3100:3100 tonylukeregistry.azurecr.io/tonylukeregistry/information-retrieval/api:latest
change connection string;
postgresql://<dbuser>:<dbpassword>@<dbservername>.postgres.database.azure.com:<port>/<bdname>?schema=public&sslmode=require