-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
32 lines (25 loc) · 765 Bytes
/
main.py
File metadata and controls
32 lines (25 loc) · 765 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
"""
CodeBase Intelligence Hub - Main Entry Point
Run the FastAPI server with: python main.py
The frontend UI will be available at: http://localhost:8000
"""
def main() -> None:
"""Start the FastAPI server."""
import uvicorn
from api.main import app
print("\n" + "=" * 60)
print("🚀 Starting CodeBase Intelligence Hub")
print("=" * 60)
print("\n📖 Frontend: http://localhost:8000")
print("📚 API Docs: http://localhost:8000/docs")
print("🔌 Playground: http://localhost:8000/rag/playground")
print("\nPress Ctrl+C to stop the server\n")
uvicorn.run(
app,
host="0.0.0.0",
port=8000,
reload=True,
log_level="info",
)
if __name__ == "__main__":
main()