WUT_Computer_Science/Programming/ERSMS-project
Krzysztof kuhy Rudnicki 8798105aa1 Grade against 3.14 too, not just run on it
The pre-commit workflow already installs `python-version: "3.x"`, but ruff was
still grading the archive against py310 -- so it kept withholding the pyupgrade
and type-checking fixes that only become safe at the newer target.
`pin_ci_python.py` rewrites the knob.

The 17 findings that appeared are what the stale target was hiding:
`datetime.timezone.utc` where `datetime.UTC` is now correct (UP017), and 14
imports used only in annotations that belong under `TYPE_CHECKING` (TC002,
TC003) -- safe here precisely because 3.14's PEP 649 defers annotation
evaluation, which is the same reason ruff would not offer them at py310.

`ruff check` and `ruff format --check` are clean again, so the zero-findings
state this repo reached earlier today holds at the new target.

Still contradictory and deliberately untouched: the four
`Programming/ERSMS-project/*/Dockerfile` files say `FROM python:3.10-slim`.
They build an archived coursework service against its own era's pinned
dependencies, and nothing in this repo runs them; bumping the base image would
be a rewrite of that project, not a lint-target change.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SfnJmxxsZ534AKk16rC2Gr
2026-08-29 11:55:43 +02:00
..
analytics ERSMS-project: zero findings, and the SQL is parameterised now 2026-08-29 08:30:01 +02:00
backend The six mypy errors are gone: four were fixable, two are scoped 2026-08-29 11:00:28 +02:00
connector Grade against 3.14 too, not just run on it 2026-08-29 11:55:43 +02:00
database Add 'Programming/ERSMS-project/' from commit 'd060e8285ad6f3dddde51a842f2c8498138afb0b' 2026-02-06 22:14:41 +01:00
docs Run all 33 safe courses; fix what that broke 2026-08-28 18:52:31 +02:00
frontend Add 'Programming/ERSMS-project/' from commit 'd060e8285ad6f3dddde51a842f2c8498138afb0b' 2026-02-06 22:14:41 +01:00
movie_recommendations ERSMS-project: zero findings, and the SQL is parameterised now 2026-08-29 08:30:01 +02:00
nginx Add pre-commit and fix everything it found 2026-08-28 18:21:22 +02:00
test_scripts Add 'Programming/ERSMS-project/' from commit 'd060e8285ad6f3dddde51a842f2c8498138afb0b' 2026-02-06 22:14:41 +01:00
.gitignore Add 'Programming/ERSMS-project/' from commit 'd060e8285ad6f3dddde51a842f2c8498138afb0b' 2026-02-06 22:14:41 +01:00
docker-compose.yml ERSMS-project: zero findings, and the SQL is parameterised now 2026-08-29 08:30:01 +02:00
Dockerfile Add 'Programming/ERSMS-project/' from commit 'd060e8285ad6f3dddde51a842f2c8498138afb0b' 2026-02-06 22:14:41 +01:00
README.md Add 'Programming/ERSMS-project/' from commit 'd060e8285ad6f3dddde51a842f2c8498138afb0b' 2026-02-06 22:14:41 +01:00
run.sh Add a run.sh to every course, and fix the code that would not build 2026-08-28 18:37:55 +02:00

Projekt z ERSMS

Backend

budowanie i uruchamianie obrazu z bazą danych oraz serwerem:

docker compose up

w przypadku zmian w bazie danych, usunąć kontener oraz dołączone do niego volumy

stronka administracyjna do bazy danych

Najpierw wpisujemy w przeglądarce http://localhost:8080/ Przy logowaniu wpisujemy:

Po zalogowaniu się poraz pierwszy od zbudowania obrazu, widzimy stronę główną. Klikamy na niej duży przycisk "Add New Server" i pojawia się okienko z menu dodawania serwera.

W nazwie można napisać cokolwiek, jednak w zakładce "Connection" piszemy następujące rzeczy:

  • host name - db
  • login - root
  • password - root

Reszta pozostaje jak była. Po zapisaniu ustawień, mamy już dostęp do narzędzi administratora dla naszej bazy danych.

gadanie z endpointami

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

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

GET http://localhost:8090//api/v3/get_movie/int:movie_ID - info o filmie

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

POST http://localhost:8090/api/v3/add/string:oauth_ID/string:movie_ID/int:rating - dodawanie oceny do filmu przez usera

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