- Implemented SvelteKit frontend with authentication callback handling. - Created demo routes and paraglide localization functionality. - Added health check and entrypoint scripts for backend services. - Established PostgreSQL and Keycloak initialization scripts with health checks. - Introduced models for database schema using SQLAlchemy. - Configured Vite and SvelteKit for development and testing environments. - Added health check script to verify service statuses and resource usage. - Created Docker entrypoint scripts for seamless service startup.
35 lines
632 B
Python
35 lines
632 B
Python
"""
|
|
Core module - Configuración y utilidades centrales de la aplicación
|
|
"""
|
|
from .config import settings
|
|
from .database import (
|
|
Base,
|
|
get_core_db,
|
|
get_async_core_db,
|
|
get_tenant_db,
|
|
init_db,
|
|
init_async_db
|
|
)
|
|
from .security import (
|
|
verify_token,
|
|
get_current_user,
|
|
get_current_active_user,
|
|
has_role,
|
|
get_tenant_from_token
|
|
)
|
|
|
|
__all__ = [
|
|
"settings",
|
|
"Base",
|
|
"get_core_db",
|
|
"get_async_core_db",
|
|
"get_tenant_db",
|
|
"init_db",
|
|
"init_async_db",
|
|
"verify_token",
|
|
"get_current_user",
|
|
"get_current_active_user",
|
|
"has_role",
|
|
"get_tenant_from_token",
|
|
]
|