Content-Length: 293644 | pFad | http://github.com/blacksmithop/fastapi-vercel-serverless

33 GitHub - blacksmithop/fastapi-vercel-serverless: FastApi on Vercel with Serverless Functions
Skip to content

blacksmithop/fastapi-vercel-serverless

 
 

Repository files navigation

FastApi Vercel Serverless

Live demo

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

# Build the Docker image
docker build -t deploy-python-fastapi-in-vercel .

# Run the Docker container
docker 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 at http://localhost:8000

One-Click Deploy

Deploy the example using Vercel:

Deploy with Vercel

About

FastApi on Vercel with Serverless Functions

Topics

Resources

Stars

Watchers

Forks

Languages

  • Python 68.8%
  • HTML 27.8%
  • Dockerfile 3.4%








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/blacksmithop/fastapi-vercel-serverless

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy