fastapi-vercel
fastapi-vercel copied to clipboard
A FastAPI example app deployed on Vercel
FastAPI on Vercel Example
This is a FastAPI example app deployed on Vercel. Read more about using Python at Vercel here
Requirements
- Vercel account
- Python 3.9 Supported version at Vercel
- Vercel CLI (Optional)
Setup
-
git clone && cd fastapi-vercel
- (Recommended) Create a virtual environment and activate it
python -m venv env
source env/bin/activate
- Install dependencies
pip install -r requirements.txt
- Run it!
uvicorn main:app --reload
- Deploy to Vercel
vercel
# or
git push # on main