From 598859c21c284aeeca1751649c8afc8341666682 Mon Sep 17 00:00:00 2001 From: Federico Busetti <729029+febus982@users.noreply.github.com> Date: Sun, 23 Feb 2025 16:02:47 +0000 Subject: [PATCH 1/3] Backport improvements --- .gitignore | 1 + .idea/dataSources.xml | 31 ++--- .idea/runConfigurations/Dev_Dependencies.xml | 18 +++ .idea/runConfigurations/FastAPI_app.xml | 13 +- .idea/runConfigurations/Socket_io_app.xml | 11 +- Makefile | 17 ++- README.md | 14 ++- alembic.ini | 4 + credentials.env.template | 3 + docker-compose.yaml | 72 +++++++++-- local.env => docker.env | 6 + pyproject.toml | 2 +- src/alembic.ini | 6 + src/common/bootstrap.py | 18 ++- src/common/config.py | 15 +-- src/http_app/__init__.py | 19 ++- src/migrations/env.py | 10 +- ...-52b1246eda46_initialize_fixture_tables.py | 8 +- tests/conftest.py | 5 +- tests/http_app/conftest.py | 13 +- uv.lock | 116 +++++++++++------- 21 files changed, 268 insertions(+), 134 deletions(-) create mode 100644 .idea/runConfigurations/Dev_Dependencies.xml create mode 100644 credentials.env.template rename local.env => docker.env (55%) diff --git a/.gitignore b/.gitignore index 57c7c40..d3b3a6e 100644 --- a/.gitignore +++ b/.gitignore @@ -284,3 +284,4 @@ dmypy.json cython_debug/ credentials.env +volumes/ diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml index 4a94487..286b5ab 100644 --- a/.idea/dataSources.xml +++ b/.idea/dataSources.xml @@ -1,35 +1,18 @@ - - sqlite.xerial + + mariadb true - org.sqlite.JDBC - jdbc:sqlite:$PROJECT_DIR$/src/sqlite.db + org.mariadb.jdbc.Driver + jdbc:mariadb://localhost:3306/backend + + + $ProjectFileDir$ - - - file://$APPLICATION_CONFIG_DIR$/jdbc-drivers/Xerial SQLiteJDBC/3.39.2/sqlite-jdbc-3.39.2.jar - - - - - sqlite.xerial - true - org.sqlite.JDBC - jdbc:sqlite:$PROJECT_DIR$/auth_volumes/kratos/db.sqlite - - - - $ProjectFileDir$ - - - file://$APPLICATION_CONFIG_DIR$/jdbc-drivers/Xerial SQLiteJDBC/3.39.2/sqlite-jdbc-3.39.2.jar - - \ No newline at end of file diff --git a/.idea/runConfigurations/Dev_Dependencies.xml b/.idea/runConfigurations/Dev_Dependencies.xml new file mode 100644 index 0000000..70d88f3 --- /dev/null +++ b/.idea/runConfigurations/Dev_Dependencies.xml @@ -0,0 +1,18 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/FastAPI_app.xml b/.idea/runConfigurations/FastAPI_app.xml index 48f3cf2..87d93e6 100644 --- a/.idea/runConfigurations/FastAPI_app.xml +++ b/.idea/runConfigurations/FastAPI_app.xml @@ -1,11 +1,18 @@ - \ No newline at end of file diff --git a/.idea/runConfigurations/Socket_io_app.xml b/.idea/runConfigurations/Socket_io_app.xml index 7262f6e..4c41dbd 100644 --- a/.idea/runConfigurations/Socket_io_app.xml +++ b/.idea/runConfigurations/Socket_io_app.xml @@ -5,7 +5,14 @@