feat: add WonderQ admin backend

Add FastAPI admin/public API service, database setup, Docker deployment files, docs, and tests.
This commit is contained in:
duanshuwen
2026-06-30 13:56:45 +08:00
parent 90496fd300
commit 75f5a5a48b
34 changed files with 2208 additions and 25 deletions

7
tests/test_auth.py Normal file
View File

@@ -0,0 +1,7 @@
from app.auth import hash_password, verify_password
def test_bcrypt_hash_verifies_password():
password_hash = hash_password("ChangeMe123!", rounds=4)
assert verify_password("ChangeMe123!", password_hash)
assert not verify_password("bad-password", password_hash)