daggerhashimoto / trd-web-backend

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

Home Page:https://www.youtube.com/watch?v=r5VfItbTAt8

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

: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.

Issues GitHub pull requests
Report Bug Request Feature

Systems on which it has been tested.

Ubuntu Windows

Did you like the project? Please, considerate a 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 the Python Runtime.

Python testing

Demo

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

How it Works

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

Install dependencies

pip install -r requirements.txt

Running Locally

npm i -g vercel
vercel dev

or

uvicorn main:app --host 0.0.0.0 --port 3000

Your FastApi application is now available at http://localhost:3000.

One-Click Deploy

Deploy the example using Vercel:

Deploy with Vercel

🀝 Contributing

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

Show your support

Give a ⭐️ if this project helped you!

Or buy me a coffee πŸ™ŒπŸΎ

πŸ“ License

Copyright Β© 2023 Hebert F Barros.
This project is MIT licensed.

About

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

https://www.youtube.com/watch?v=r5VfItbTAt8


Languages

Language:Python 100.0%