WUT_Computer_Science/ai_front_connector
2024-05-12 14:39:49 +02:00
..
init_scripts little cleanup + endpoint for sending info about movies 2024-05-12 14:39:49 +02:00
mock_db prototype connector 2024-05-11 14:21:32 +02:00
docker-compose.yml postgres baza 2024-05-12 12:10:38 +02:00
Dockerfile postgres baza 2024-05-12 12:10:38 +02:00
frontend_AI_connector.py little cleanup + endpoint for sending info about movies 2024-05-12 14:39:49 +02:00
README.md little cleanup + endpoint for sending info about movies 2024-05-12 14:39:49 +02:00
requirements.txt little cleanup + endpoint for sending info about movies 2024-05-12 14:39:49 +02:00

instalacja:

pip install -r requirements.txt

budowanie i uruchamianie obrazu z bazą danych:

cd ai_front_connector docker compose up (ewentualnie można też z GUI)

uruchomienie:

(Z directory macierzystego) python3 ai_front_connector/frontend_AI_connector.py

gadanie z endpointami

GET http://localhost:8080/ - testowy domowy

GET http://localhost:8080//api/v3/get/string:username - info o userach

POST http://localhost:8080/api/v3/add/string:oauth_ID/string:username - dodawanie usera

GET http://localhost:8080/api/v3/ai/string:oauth_ID - wyciąganie rekomendacji od AI