Skip to content

Commit 3bdeb3f

Browse files
committed
Initial commit
Created from https://vercel.com/new
0 parents  commit 3bdeb3f

File tree

6 files changed

+420
-0
lines changed

6 files changed

+420
-0
lines changed

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.vercel/
2+
.venv/
3+
venv/
4+
__pycache__/
5+
*.pyc
6+
*.pyo
7+
*.pyd
8+
.Python
9+
.DS_Store
10+
.env*

README.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# FastAPI Starter
2+
3+
Deploy your [FastAPI](https://fastapi.tiangolo.com/) project to Vercel with zero configuration.
4+
5+
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/vercel/vercel/tree/main/examples/fastapi&template=fastapi)
6+
7+
_Live Example: https://vercel-plus-fastapi.vercel.app/_
8+
9+
Visit the [FastAPI documentation](https://fastapi.tiangolo.com/) to learn more.
10+
11+
## Getting Started
12+
13+
Install the required dependencies:
14+
15+
```bash
16+
python -m venv .venv
17+
source .venv/bin/activate
18+
pip install .
19+
```
20+
21+
Or, if using [uv](https://docs.astral.sh/uv/):
22+
23+
```bash
24+
uv sync
25+
```
26+
27+
28+
## Running Locally
29+
30+
Start the development server on http://0.0.0.0:5001
31+
32+
```bash
33+
python main.py
34+
# using uv:
35+
uv run main.py
36+
```
37+
38+
When you make changes to your project, the server will automatically reload.
39+
40+
## Deploying to Vercel
41+
42+
Deploy your project to Vercel with the following command:
43+
44+
```bash
45+
npm install -g vercel
46+
vercel --prod
47+
```
48+
49+
Or `git push` to your repository with our [git integration](https://vercel.com/docs/deployments/git).
50+
51+
To view the source code for this template, [visit the example repository](https://github.com/vercel/vercel/tree/main/examples/fastapi).

0 commit comments

Comments
 (0)