GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - code4mk/azure-function-fastapi: Deploy Python FastAPI serverless application on Azure Functions

BranchesTags
Open more actions menu

Latest commit

 

History

27 Commits
27 Commits

Folders and files

NameName
Last commit message
Last commit date
fastapi_project
fastapi_project
 
 
.funcignore
.funcignore
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
function_app.py
function_app.py
 
 
host.json
host.json
 
 
requirements.txt
requirements.txt
 
 
run_fastapi_project.sh
run_fastapi_project.sh
 
 

Repository files navigation

azure-function-fastapi

Deploy Python FastAPI serverless application on Azure Functions.

  • Good project structure

local development (fastapi)

venv

# create virtual environment
python3 -m venv .azure_function_fastapi_venv

# activate virtual environment
source .azure_function_fastapi_venv/bin/activate

run fast api project

# 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

deploy on production

vscode extension

Screenshot 2024-05-19 at 5 50 24 PM
  • Azure Function Extension

sql project enable

set the environment variable azure (Settings >> Environment variables (app settings))

  • DATABASE_URL
  • LOAD_SQL_PROJECT value will be yes

Project route

http://localhost:8000/api/v1/users
http://localhost:8000/health

About

Deploy Python FastAPI serverless application on Azure Functions

Topics

azureazure-functionsdevopssdeops

Resources

Readme
Activity
Custom properties

Stars

20 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.