A FastAPI service served by Uvicorn, ready to deploy on Light Cloud.
- FastAPI 0.115 with automatic OpenAPI docs
- Uvicorn ASGI server
- Binds
0.0.0.0so the container is reachable - Binds
$PORT, defaulting to 8000
| Method | Endpoint | Description |
|---|---|---|
| GET | / |
Welcome message |
| GET | /docs |
Interactive OpenAPI documentation |
# Install dependencies
pip install -r requirements.txt
# Run the server
python main.py
# Or run with reload
uvicorn main:app --reloadThe API will be available at http://localhost:8000
Visit console.light-cloud.com and sign up with GitHub or Google.
- Click "New Application" in the dashboard
- Select "Container" as the deployment type
- Choose "FastAPI" as the framework
- Option A: Fork this repository and connect it via GitHub
- Option B: Push this code to your own GitHub repository and connect it
Light Cloud will auto-detect your settings, but you can verify:
| Setting | Value |
|---|---|
| Port | 8000 |
| Start Command | python main.py |
Click "Deploy" and your API will be live in minutes!
Your API will be available at https://your-app.light-cloud.io
Website • Documentation • Console
Made with ☁️ by Light Cloud
