Password-protected intranet for managing fiber internet customers: - Customer table (company, address, speed, price) - Click row to view full details (contact & billing info) - Add, edit, delete customers - Search and sortable columns - Total billing summary - PHP + vanilla JS + JSON storage Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
22 lines
471 B
Python
22 lines
471 B
Python
#!/usr/bin/env python3
|
|
import subprocess
|
|
import sys
|
|
|
|
PORT = 3001
|
|
|
|
def main():
|
|
print(f"CuituNet Intra käynnistyy osoitteessa http://localhost:{PORT}")
|
|
try:
|
|
subprocess.run(
|
|
["php", "-S", f"localhost:{PORT}"],
|
|
check=True
|
|
)
|
|
except KeyboardInterrupt:
|
|
print("\nSammutettiin.")
|
|
except FileNotFoundError:
|
|
print("PHP ei löydy. Asenna PHP ensin.")
|
|
sys.exit(1)
|
|
|
|
if __name__ == "__main__":
|
|
main()
|