Initial setup of frontend and backend
This commit is contained in:
0
backend/src/app/core/__init__.py
Normal file
0
backend/src/app/core/__init__.py
Normal file
21
backend/src/app/core/config.py
Normal file
21
backend/src/app/core/config.py
Normal file
@@ -0,0 +1,21 @@
|
||||
from pydantic_settings import BaseSettings, SettingsConfigDict
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
model_config = SettingsConfigDict(
|
||||
env_file=".env",
|
||||
env_file_encoding="utf-8",
|
||||
extra="ignore",
|
||||
)
|
||||
|
||||
app_name: str = "Nuzlocke Tracker API"
|
||||
debug: bool = False
|
||||
|
||||
# API settings
|
||||
api_v1_prefix: str = "/api/v1"
|
||||
|
||||
# Database settings (for future use)
|
||||
database_url: str = "sqlite:///./nuzlocke.db"
|
||||
|
||||
|
||||
settings = Settings()
|
||||
Reference in New Issue
Block a user