| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Deploy Python FastAPI serverless application on Azure Functions.
# create virtual environment
python3 -m venv .azure_function_fastapi_venv
# activate virtual environment
source .azure_function_fastapi_venv/bin/activate# install packages
pip3 install -r requirements.txt
# run project with uvicorn
uvicorn "fastapi_project.main:app" --reload --port=8000
# or, run bash with shell
./run_fastapi_project.sh
set the environment variable azure (Settings >> Environment variables (app settings))
http://localhost:8000/api/v1/users
http://localhost:8000/health| Back | FazBrowse Home | New Git URL |