| import uvicorn | |
| from fastapi import FastAPI | |
| from datetime import datetime | |
| app = FastAPI() | |
| async def read_root(): | |
| """ | |
| A simple health check endpoint to confirm the server is running. | |
| """ | |
| return { | |
| "status": "Running successfully!", | |
| "message": "This is a simple test app.", | |
| "timestamp": datetime.now().isoformat() | |
| } | |
| if __name__ == "__main__": | |
| uvicorn.run(app, host="0.0.0.0", port=7860) |