An open API service indexing awesome lists of open source software.

https://github.com/louis70109/linebot-gemini-fastapi-example

LINE Bot communication example with Gemini, memory by Firebase.
https://github.com/louis70109/linebot-gemini-fastapi-example

Last synced: 2 months ago
JSON representation

LINE Bot communication example with Gemini, memory by Firebase.

Awesome Lists containing this project

README

        

# FastAPI 佈署到 Cloud Run 範例

本範例展示了如何使用 Google Cloud Run 快速佈署 FastAPI 應用程式。這個範例將引導您完成以下步驟:

- 使用 Dockerfile 建立一個 Docker 映像檔。
- 使用 gcloud CLI 在 Cloud Run 上啟動映像檔與佈署。
- 測試在 Cloud Run 上執行的 FastAPI 應用程式。

## 前置要求

在開始之前,您需要具備以下要求:

- 一個 Google Cloud Platform 帳戶
- 安裝了 gcloud CLI 工具
- 已經安裝 Docker 在本地端環境中
- Firebase's realtime DB URL
- Gemini API Key

## 使用方式

[![Run on Google Cloud](https://deploy.cloud.run/button.svg)](https://deploy.cloud.run)

```
git clone https://github.com/louis70109/linebot-gemini-fastapi-example.git

cd linebot-gemini-fastapi-example/

gcloud run deploy my-fastapi-example --source .
```

## 授權

MIT