Initial commit for resumeformatter project
This commit is contained in:
25
backend/app/core/config.py
Normal file
25
backend/app/core/config.py
Normal file
@@ -0,0 +1,25 @@
|
||||
from typing import Optional, List
|
||||
import os
|
||||
from dotenv import load_dotenv
|
||||
|
||||
# Load environment variables
|
||||
load_dotenv()
|
||||
|
||||
# Simple settings class without using BaseSettings
|
||||
class Settings:
|
||||
"""
|
||||
Application settings
|
||||
"""
|
||||
APP_NAME: str = os.getenv("APP_NAME", "ResumeFormatter")
|
||||
API_V1_STR: str = f"/{APP_NAME}/api"
|
||||
PROJECT_NAME: str = "Profile Linker API"
|
||||
|
||||
# CORS settings
|
||||
BACKEND_CORS_ORIGINS: List[str] = ["*"]
|
||||
|
||||
# Database settings - using in-memory database by default
|
||||
# In a production environment, you would use a real database connection string
|
||||
DATABASE_URL: Optional[str] = None
|
||||
|
||||
|
||||
settings = Settings()
|
||||
Reference in New Issue
Block a user