Backend totalmente hecho con mongodb, añadida la funcionalidad de usuarios con historial

This commit is contained in:
Mireya Cueto Garrido
2026-03-27 11:16:44 +01:00
parent 57b64b4f1e
commit e19e971cd6
15 changed files with 252 additions and 89 deletions
+9
View File
@@ -0,0 +1,9 @@
from motor.motor_asyncio import AsyncIOMotorClient
MONGO_URL = "mongodb://mongo:27017"
DB_NAME = "deckofcards"
client = AsyncIOMotorClient(MONGO_URL)
db = client[DB_NAME]
users_collection = db["users"]