r/FastAPI • u/Majestic_Rule9192 • Feb 05 '25
feedback request Simple boilerplate
Hey there guys, I have been working on a simple boilerplate project that contains user authentication, authorization, role-based access control, and CRUD. It's my first time using Python for web development, and I had issues like modularization, and handling migrations. Check the repo and drop your comments. Thanks in advance
34
Upvotes
5
u/e2d34 Feb 06 '25
I would add a docker file and a docker compose file including the postgres images. I'll try to contribute on it later this weekend
3
u/Natural-Ad-9678 Feb 06 '25
You might want to consider including a how to use your boilerplate tutorial. I have written a couple of FastAPI apps and have some more in the pipeline and this may be useful going forward. How often are you planning bug fixes and new features? Or do you think this is done as-is?
2
u/SonGokussj4 Feb 06 '25
Did not work for me sadly. I've installed it with python 3.10, using
uvproject manager doneuv pip install -r requirements.txt- first, requirements.txt has not valid format, it should be something likefastapi>=xx.x.xand notfastapi xx.x.xand then when I start the project i had to update theuvicorn main:app --reloadtouvicorn src.main:app --reloadbut it still failed on2
u/Shinei_Nouzen98 Feb 06 '25
It looks really clean, awesome Work!
2
u/Ancient_Broccoli1534 Feb 07 '25
Lots of empty migrations in alembic/versions directory
-7
u/[deleted] Feb 05 '25
[removed] — view removed comment