This is a nice basic template for ⚡ FastAPI.
For similar examples, see here and here.
To use this template:
-
Create a new repository for your app. The name is entirely up to you.
-
Update the app/main.py file as desired. For simple changes you can edit the file directly in GitHub. More advanced changes, including the addition of static files, templates, models, and other features, are best done in a local environment and then pushed to your repository. Please see the FastAPI documentation for further details.
-
When you application is working and ready to deploy, type the following in your browser:
https://heroku.com/deploy?template=https://github.com/<your git account>/<your repo>/tree/master
for example, to deploy from this repository you'd type https://heroku.com/deploy?template=https://github.com/apjanco/fastapi_template/tree/master
Please note that you will be prompted to create a Hiroku user account if you do not have one.