Back to Vercel

Starlette Starter

examples/starlette/README.md

16.1.21.5 KB
Original Source

Starlette Starter

Deploy your Starlette project to Vercel with zero configuration.

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

Visit the Starlette 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.