
- Add user authentication with JWT tokens - Implement task CRUD operations with status and priority - Set up SQLite database with SQLAlchemy ORM - Create Alembic migrations for database schema - Add comprehensive API documentation - Include health check endpoint and CORS configuration - Structure codebase with proper separation of concerns
17 lines
356 B
Python
17 lines
356 B
Python
import os
|
|
from pydantic import BaseSettings
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
secret_key: str = os.getenv("SECRET_KEY", "your-secret-key-here")
|
|
algorithm: str = "HS256"
|
|
access_token_expire_minutes: int = 30
|
|
app_name: str = "Task Manager API"
|
|
app_version: str = "1.0.0"
|
|
|
|
class Config:
|
|
env_file = ".env"
|
|
|
|
|
|
settings = Settings()
|