21 lines
479 B
Python
21 lines
479 B
Python
#!/usr/bin/env python3
|
|
"""
|
|
Fire Alarm Management Application
|
|
Run this file to start the web server.
|
|
"""
|
|
|
|
from app import create_app
|
|
|
|
app = create_app()
|
|
|
|
if __name__ == '__main__':
|
|
print("\n" + "="*50)
|
|
print("Fire Alarm Management System")
|
|
print("="*50)
|
|
print("\nStarting server...")
|
|
print("Open http://localhost:5000 in your browser")
|
|
print("\nPress Ctrl+C to stop the server")
|
|
print("="*50 + "\n")
|
|
|
|
app.run(debug=True, host='0.0.0.0', port=5000)
|