mirror of
https://github.com/PlatypusPus/MushroomEmpire.git
synced 2026-02-07 22:18:59 +00:00
ref:Cleaned the Structure
This commit is contained in:
21
start_api.py
Normal file
21
start_api.py
Normal file
@@ -0,0 +1,21 @@
|
||||
"""
|
||||
Start the FastAPI server
|
||||
Run: python start_api.py
|
||||
"""
|
||||
|
||||
import uvicorn
|
||||
|
||||
if __name__ == "__main__":
|
||||
print("🚀 Starting Nordic Privacy AI API Server...")
|
||||
print("📍 API will be available at: http://localhost:8000")
|
||||
print("📖 Interactive docs at: http://localhost:8000/docs")
|
||||
print("🔗 Frontend should run at: http://localhost:3000")
|
||||
print("\nPress CTRL+C to stop\n")
|
||||
|
||||
uvicorn.run(
|
||||
"api.main:app",
|
||||
host="0.0.0.0",
|
||||
port=8000,
|
||||
reload=True, # Auto-reload on code changes
|
||||
log_level="info"
|
||||
)
|
||||
Reference in New Issue
Block a user