https://github.com/jonnytran/fastapi-vercel
https://github.com/jonnytran/fastapi-vercel
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jonnytran/fastapi-vercel
- Owner: JonnyTran
- Created: 2023-09-05T15:55:24.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-05T15:55:29.000Z (over 1 year ago)
- Last Synced: 2024-04-30T09:26:19.678Z (about 1 year ago)
- Language: HTML
- Homepage: https://fastapi-vercel-steel.vercel.app
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FastAPI on Vercel Example
This is a [FastAPI](https://fastapi.tiangolo.com/) example app deployed on [Vercel](https://vercel.com/).
Read more about using Python at Vercel [here](https://vercel.com/docs/concepts/functions/serverless-functions/runtimes/python#)
### Requirements
- Vercel account
- Python 3.9 [Supported version at Vercel](https://vercel.com/docs/concepts/functions/serverless-functions/runtimes/python#python-version)
- Vercel CLI (Optional)### Setup
1. `git clone && cd fastapi-vercel`
1. _(Recommended)_ Create a virtual environment and activate it```bash
python -m venv envsource env/bin/activate
```1. Install dependencies
```bash
pip install -r requirements.txt
```1. Run it!
```bash
uvicorn main:app --reload
```1. Deploy to Vercel
```bash
vercel
# or
git push # on main
```