init CRUD

This commit is contained in:
Awen Lelu
2025-12-18 17:16:26 +01:00
parent 61433bca35
commit d7bea8e188
30 changed files with 1251 additions and 0 deletions

0
back/src/__init__.py Normal file
View File

Binary file not shown.

Binary file not shown.

0
back/src/import.py Normal file
View File

8
back/src/mongo.py Normal file
View File

@@ -0,0 +1,8 @@
from pymongo import MongoClient
def getMongo(uri: str = "localhost:27017"):
uri = uri
client = MongoClient(uri)
collection = client["netflux"]
return collection, client