Settings
The Settings class manages configuration for your FastAPI app, including MongoDB connection and other environment variables.
Example
Common Environment Variables
MONGO_URI: MongoDB connection string (e.g.,mongodb://localhost:27017/db)APP_ENV: Application environment (e.g.,development,production)BASE_PATH: API base path (e.g.,/api/v1)
Example .env
For a full list of settings, see the Settings class in your config.py file.