-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_backend_dev.py
More file actions
32 lines (27 loc) · 854 Bytes
/
run_backend_dev.py
File metadata and controls
32 lines (27 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
"""
Development Backend Runner - Runs without Neo4j for testing
"""
import sys
import os
print("=" * 80)
print("IntelliNet Orchestrator - Development Mode")
print("=" * 80)
print()
print("⚠️ WARNING: This will attempt to start the backend.")
print(" Neo4j connection is required for full functionality.")
print()
print("Options:")
print(" 1. Start Docker Desktop and run: docker-compose up -d")
print(" 2. Install Neo4j locally and configure .env")
print(" 3. Continue anyway (will fail on Neo4j connection)")
print()
choice = input("Continue? (y/n): ")
if choice.lower() != 'y':
print("Exiting...")
sys.exit(0)
print("\nStarting backend server...")
print("API will be available at: http://localhost:8000")
print("API Docs will be at: http://localhost:8000/api/docs")
print()
# Run the main application
os.system("python main.py")