21 lines
571 B
Python
21 lines
571 B
Python
#!/usr/bin/env python3
|
|
# Copyright 2026 Umbra Tools (umbratools.com)
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
"""Start the UmbraFormat web server."""
|
|
|
|
import os, sys
|
|
|
|
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
|
|
|
from umbraformat.app import app
|
|
|
|
if __name__ == "__main__":
|
|
print("=" * 60)
|
|
print(" UmbraFormat - B.D. Murphy Book Formatting Specification")
|
|
print("=" * 60)
|
|
print(f" Open: http://localhost:5001")
|
|
print(f" API: http://localhost:5001/api/analyze")
|
|
print("=" * 60)
|
|
app.run(debug=True, host="0.0.0.0", port=5001)
|