chore: set up local testing

This commit is contained in:
YuehuCao 2025-08-13 22:23:49 +08:00
parent 6d7c6af8a1
commit 72ba74618b

View File

@ -5,8 +5,11 @@ from backend.models.models import MessageTemplateDoc, EmailSenderDoc, EmailSendS
import os import os
# MongoDB config # MongoDB config
MONGODB_URI = os.getenv('MONGODB_URI', 'mongodb+srv://jetli:8IHKx6dZK8BfugGp@freeleaps2.hanbj.mongodb.net/') # TODO: for non-local environment, use the following config
MONGODB_NAME = os.getenv('MONGODB_NAME', 'freeleaps2') #MONGODB_URI = os.getenv('MONGODB_URI', 'mongodb+srv://jetli:8IHKx6dZK8BfugGp@freeleaps2.hanbj.mongodb.net/')
#MONGODB_NAME = os.getenv('MONGODB_NAME', 'freeleaps2')
MONGODB_URI = os.getenv('MONGODB_URI', 'mongodb://localhost:27017/')
MONGODB_NAME = os.getenv('MONGODB_NAME', 'interview')
# create MongoDB client # create MongoDB client
client = AsyncIOMotorClient( client = AsyncIOMotorClient(