18 lines
444 B
Python
18 lines
444 B
Python
"""Entrypoint: runs the orders API. Uses src layout (package order_app under src/)."""
|
|
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
# Add src to path so "order_app" is importable from repo root
|
|
_root = Path(__file__).resolve().parent
|
|
_src = _root / "src"
|
|
if str(_src) not in sys.path:
|
|
sys.path.insert(0, str(_src))
|
|
|
|
from order_app.api.orders import create_app
|
|
|
|
app = create_app()
|
|
|
|
if __name__ == "__main__":
|
|
app.run(host="0.0.0.0", port=8000)
|