Back to Vercel

FastAPI Starter

examples/fastapi/README.md

16.1.21.2 KB
Original Source

FastAPI Starter

Deploy your FastAPI project to Vercel with zero configuration.

Live Example: https://vercel-plus-fastapi.vercel.app/

Visit the FastAPI documentation to learn more.

Getting Started

Install the required dependencies:

bash
python -m venv .venv
source .venv/bin/activate
pip install .

Or, if using uv:

bash
uv sync

Running Locally

Start the development server on http://0.0.0.0:5001

bash
python main.py
# using uv:
uv run main.py

When you make changes to your project, the server will automatically reload.

Deploying to Vercel

Deploy your project to Vercel with the following command:

bash
npm install -g vercel
vercel --prod

Or git push to your repository with our git integration.

To view the source code for this template, visit the example repository.