MahmudJewel / fastapi-starter-kit

FastAPI is modern and super fast Python framework. As a professional Python developer, I developed the repo for FastAPI in a professional way. If the repo will help you, please give a star and fork it.
27 stars 11 forks source link

Initial startup, create of new user #1

Closed 3DEngelen closed 6 months ago

3DEngelen commented 6 months ago

Hi,

This starting point for fastapi looks promising to me, however i have some questions, maybe the readme could be updated with this information.

  1. Can you give some more details on how users are stored, what is the location of the DB file for example backup purposes?
  2. Everyone can create a user and update the role of users, shouldn't this be only available for admin roles?
  3. The passwords transferred to login are readable?

thx for feedback!

MahmudJewel commented 6 months ago

1- After migrating, database will be created in the root directory called sqlite.db. You can set-up any database in the app/core/database.py file. The bellow command will generate the db. alembic upgrade head

2- For making easy structure, I did not applied RBAC(Role based access control). Anyway for applying RBAC, this repo may help you. https://github.com/MahmudJewel/FastAPI-Role-based-auth

3- Password will be saved as hashed password and you can read the hashed password.

For further query, feel free to ask me.