
- Set up project structure with FastAPI app - Implement items CRUD API endpoints - Configure SQLite database with SQLAlchemy - Set up Alembic migrations - Add health check endpoint - Enable CORS middleware - Create README with documentation
13 lines
347 B
Python
13 lines
347 B
Python
from pydantic_settings import BaseSettings
|
|
|
|
class Settings(BaseSettings):
|
|
API_V1_STR: str = "/api/v1"
|
|
PROJECT_NAME: str = "Quick API Service"
|
|
|
|
# Set environment variables if needed
|
|
# DATABASE_URL: str = os.environ.get("DATABASE_URL", "sqlite:///./app.db")
|
|
|
|
class Config:
|
|
env_file = ".env"
|
|
|
|
settings = Settings() |