
- Set up project structure with FastAPI and SQLite - Created database models for users, categories, suppliers, items, and stock transactions - Implemented Alembic for database migrations with proper absolute paths - Built comprehensive CRUD operations for all entities - Added JWT-based authentication and authorization system - Created RESTful API endpoints for all inventory operations - Implemented search, filtering, and low stock alerts - Added health check endpoint and base URL response - Configured CORS for all origins - Set up Ruff for code linting and formatting - Updated README with comprehensive documentation and usage examples The system provides complete inventory management functionality for small businesses including product tracking, supplier management, stock transactions, and reporting. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
27 lines
640 B
Python
27 lines
640 B
Python
from decouple import config
|
|
|
|
|
|
class Settings:
|
|
PROJECT_NAME: str = "Small Business Inventory Management System"
|
|
PROJECT_VERSION: str = "1.0.0"
|
|
|
|
SECRET_KEY: str = config(
|
|
"SECRET_KEY", default="your-secret-key-change-this-in-production"
|
|
)
|
|
ALGORITHM: str = "HS256"
|
|
ACCESS_TOKEN_EXPIRE_MINUTES: int = 30
|
|
|
|
# Admin user
|
|
FIRST_SUPERUSER_EMAIL: str = config(
|
|
"FIRST_SUPERUSER_EMAIL", default="admin@inventory.com"
|
|
)
|
|
FIRST_SUPERUSER_PASSWORD: str = config(
|
|
"FIRST_SUPERUSER_PASSWORD", default="admin123"
|
|
)
|
|
|
|
# CORS
|
|
BACKEND_CORS_ORIGINS: list = ["*"]
|
|
|
|
|
|
settings = Settings()
|