FastAPI
You can deploy a FastAPI application on Deta very easily in a few steps.
The guide assumes you have already signed up for Deta and have the Deta CLI installed.
Create a directory
fastapi-app
and change the current directory to it.Create a
main.py
file with a simple fastapi application.Create a
requirements.txt
file specifyingfastapi
as a dependecy.Deploy your application with
deta new
.
We now have a FastAPI application deployed.
If you visit the endpoint
shown in the output (your endpoint will be different from this one) in your browser, you should see a Hello World!
response.