GitHub - render-examples/fastapi: Template to deploy a simple Python FastAPI project to Render (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Repository files navigation
Deploy FastAPI on Render
Use this repo as a template to deploy a Python FastAPI service on Render.
See https://render.com/docs/deploy-fastapi or follow the steps below:
Manual Steps
- You may use this repository directly or create your own repository from this template if you'd like to customize the code.
- Create a new Web Service on Render.
- Specify the URL to your new repository or this repository.
- Render will automatically detect that you are deploying a Python service and use
pip
to download the dependencies. - Specify the following as the Start Command.
uvicorn main:app --host 0.0.0.0 --port $PORT - Click Create Web Service.
Or simply click:
Thanks
Thanks to Harish for the inspiration to create a FastAPI quickstart for Render and for some sample code!