mockapi/main.py
2026-03-16 14:51:51 +00:00

27 lines
No EOL
681 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env python3
"""
Development entry point for the Mock API application.
For production WSGI deployment, use wsgi.py instead.
"""
import logging
from app.core.app import create_app
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
# Create the FastAPI application instance
app = create_app()
if __name__ == "__main__":
# Development entry point: run uvicorn with autoreload
import uvicorn
logger.info("Starting development server on http://0.0.0.0:8000")
uvicorn.run(
"main:app", # Use import string for reload support
host="0.0.0.0",
port=8000,
reload=True,
log_level="info"
)