fastapi-best-practices icon indicating copy to clipboard operation
fastapi-best-practices copied to clipboard

Could you recommend an actual project that employs this project structure?

Open yejue opened this issue 11 months ago • 0 comments

I'm eager to explore the overall arrangement in practical application. Primarily, I'm interested in examining the logical separation of dependencies and services. For instance, while working on the login functionality, I placed JWT within utils and encapsulated user-related operations within a service class, such as get_current_user. However, later on, I realized that this might be categorized as dependencies. I'm familiar with Django but not particularly well-versed in FastAPI's dependencies.

thx

yejue avatar Mar 28 '24 02:03 yejue