Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
165cfbe:
basic_auth/src/apis/api.py
: addfastapi
router for basic auth functionalitiesbasic_auth/src/models/user.py
: addsqlmodel
models for users' managementbasic_auth/src/apis/utils/authenticate.py
: add autenthication utilitybasic_auth/src/apis/utils/security.py
: add utility to hash passwords and get hashed passwordsbasic_auth/src/apis/v1/routes.py
: add/basic/register
and/basic/login
routesbasic_auth/src/crud/user.py
: addsqlmodel
-friendly crud operations (create and get)basic_auth/src/db/session.py
: addget_session
dependencybasic_auth/src/alembic.ini
: modifyprepend_sys_path
config to make modules visible toalembic
(given the project tree structure)basic_auth/src/alembic/script.py.mako
: modify autogenerated script to make itsqlmodel
-compatible andruff
-compliant (wrt py3.10). Cues from https://github.com/tiangolo/full-stack-fastapi-template/blob/master/backend/app/alembic/script.py.mako.basic_auth/src/alembic/env.py
: modifytarget_metadata
config to make itsqlmodel
-compatiblebasic_auth/src/alembic/...
: add scripts for db migrationsconfig.py
: add utility to read environment variables by means ofpydantic-settings
rather than the usualpython-dotenv
orenvirons
docker-compose.yaml
: adddocker-compose
to retrieve apostgresql
image and start an instancepyproject.toml
: updateruff
config, add packages to install864ded9:
.pre-commit-config.yaml
: (temporary change) revert to [poetry run ruff check --fix .
] in lieu of [just ruff-fix
] and to [poetry run ruff format .
] in lieu of [just ruff-format
] because of https://stackoverflow.com/questions/78243419/just-error-justfile-does-not-contain-recipes-when-pre-committing. The strange thing is that such setup used to work in feat: add tooling (pre-commit) flights-scraper-web-app#15 and feat: add justfile, update pre-commit and github actions configs accordingly adventofcode#10basic_auth/src/crud/user.py
: do notawait
when committing and refreshing transactions assqlmodel
does not use an asynchronous session management systemruff
fixes0d49229: merge
'origin/main'
intobasic_auth
28d5f43: (will need a dedicated section in the
docs
- as soon as I add them); the following require, at least, the ownership of self-signed certificatesdocker-compose.yaml
: add configuration to retrieve anginx
image and start an instance; setupvolumes
in such a way to provide SSL/TLS certificates to Nginx for enabling HTTPSnginx/nginx.conf
: add configuration file fornginx
config.py
: add reference to theNGINX_PORT
environment variablefastui
"enable" HTTPS (https://fastapi.tiangolo.com/deployment/https)