Repository navigation
FastAPI in Production: From main.py to a Public URL #12
julia-kafarska
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Full tutorial with screenshots: https://blog.light-cloud.com/tutorials/deploy-a-fastapi-app
Deploy a FastAPI app to Light Cloud without a Dockerfile: requirements.txt and main.py are enough, uvicorn is started on the right port, and the Swagger docs at /docs are live in about 90 seconds.
Level: Beginner · Time: about 15 minutes · Plan: Free · Stack: Python, FastAPI, Pydantic, uvicorn
Steps
Source code: https://github.com/light-cloud-com/tutorial-fastapi-api
Questions, problems with a step, or a screen that no longer matches the console? Reply here. Every tutorial is re-run on the live platform before it is published, and this thread is where fixes get discussed.
All reactions