This is FastAPI example app deployed on Vercel.
Uses Python Fastapi framework
- Vercel account
- Vercel CLI
-
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
-
Deploy to Vercel
vercel
pipenv install -r requirements.txt
thenpipenv shell
- Run server
uvicorn app:app --reload
- Visit
http://localhost:8000/prompt/
2023-04-23 Problems setting up virtual env (venv, pipenv) on windows
- try stripping requirements, make sure python version in pipfile matches
python -v