https://denny.one/DevJam-TW-2025

Denny Huang

Todo List

Design generate by Stitch

Environment

Account

  • GitHub Account
  • Google Account with Google Cloud Credit

Environment

Editor

Extensions

Environment

Python

Package and project manager

Web framework

Initialization

uv init

Install FastAPI

uv add "fastapi[standard]"

Create a virtual environment

uv venv

Activate the virtual environment

. .venv/bin/activate

GitHub Copilot

GitHub Copilot Settings

Get Gemini API Key

Google AI Studio

幫我寫一個 FastAPI 的 todo list backend app,需要可以對待辦事項進行 CRUD 的操作,並且將待辦事項存入到一個 .json 檔案為資料庫,註解要用英文寫清楚讓 FastAPI 能夠產生文件

Run the server in development mode

uv run fastapi dev

Run the server in production mode

uv run fastapi run

Deploy to Google Cloud Run

Deploy to Cloud Run from a git repository

CI / CD

Create requirements.txt

uv export --format requirements.txt > requirements.txt

Fork the repo

denny0223/todo-for-devjam

Create a Cloud Run service

  • Connect to repo
  • Set up with Cloud Build
  • Manage connected repositories
  • Branch name
  • Build Type

Entrypoint

fastapi run --port $PORT

Clean up

Cloud Run

  • Services

Cloud Build

  • Triggers

Thanks for listening



本投影片採用

創用 CC「姓名標示-相同方式分享 4.0 國際」授權條款釋出
Marp 製作

Google tag (gtag.js)