Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

This example shows how to use FastApi on Vercel with Serverless Functions using the Python Runtime

License

NotificationsYou must be signed in to change notification settings

hebertcisco/deploy-python-fastapi-in-vercel

Repository files navigation

:package: deploy-python-fastapi-in-vercel

📦 deploy-python-fastapi-in-vercel

This example shows how to use FastApi on Vercel with Serverless Functions using the Python Runtime.

IssuesGitHub pull requests
Report BugRequest Feature

Systems on which it has been tested.

UbuntuWindows

Did you like the project? Please, consideratea donation to help improve!

Getting started

Deploy with Vercel

FastApi + Vercel

This example shows how to use FastApi 0.88.0 on Vercel with Serverless Functions using thePython Runtime.

Python testingDocker Image CI

Demo

deploy-python-fastapi-in-vercel.vercel.app

How it Works

This example uses the Web Server Gateway Interface (WSGI) with FastApi to enable handling requests on Vercel with Serverless Functions.

Running Locally

With Docker Compose

docker-compose up

With Docker

# Build the Docker imagedocker build -t deploy-python-fastapi-in-vercel.# Run the Docker containerdocker run -p 8000:8000 deploy-python-fastapi-in-vercel

With uvicorn

Install dependencies

pip install -r requirements.txt
uvicorn main:app --host 0.0.0.0 --port 8000

Your FastApi application is now available athttp://localhost:8000.

One-Click Deploy

Deploy the example usingVercel:

Deploy with Vercel

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to checkissues page.

Show your support

Give a ⭐️ if this project helped you!

Or buy me a coffee 🙌🏾

📝 License

Copyright © 2024Hebert F Barros.
This project isMIT licensed.

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp