fastapi_production_template icon indicating copy to clipboard operation
fastapi_production_template copied to clipboard

FastAPI Project Example with Docker, Postgres & Redis

Results 8 fastapi_production_template issues
Sort by recently updated
recently updated
newest added

The `client` test fixture returns a `TestClient()` instance as `client` which is also the name of the fixture. Rename function name to `client_fixture` for clarity while keeping fixture name as...

Followed the readme with first time only After running docker compose, the app container exists with just this one line in the log 2024-05-03 15:18:43 /usr/bin/env: ‘bash\r’: No such file...

In the `conftest.py` the event loop is being replaced with a new one. This is no longer supported with `pytest_asyncio` and results in this warning: ``` Replacing the event_loop fixture...

Makemigrations use the corresponding script now. Black added as dev dep for makemigrations not to error. Added down and test-watch to justfile, including pytest-watch in dev deps.

``` app | pydantic_core._pydantic_core.ValidationError: 1 validation error for PublicAPIsResponse app | Invalid JSON: expected value at line 1 column 1 [type=json_invalid, input_value=b'You have reached maximum request limit.', input_type=bytes] app |...

How come when using Authorize from the Docs page we sent data in bytes? But when using the '''auth/users/tokens'' endpoint form the data comes in a dict. ![image](https://github.com/zhanymkanov/fastapi_production_template/assets/39302216/3416e8fa-3948-401a-8f3f-47ac649dcc1b)

hello,sir. i wtite a log.ini,pass it for the para of log_config in uvicorn.run('main:app', host="127.0.0.1", port=8051, log_config="log.ini"). besides, i initializes class of logger by:self._logger = logging.getLogger(__name__) in some file. i found...

can you please explain a bit about the commit_after flag? Furthermore, how do I deal with rollbacks in case an exception occurs in the service layer? ```async def _execute_query( query:...