Files
KintoneAppBuilder/backend/readme.md
2025-01-24 17:00:18 +09:00

40 lines
1.0 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

### 1: Pythonインストール
https://www.python.org/downloads/
### 2. venv設定
```
#仮想環境を設定する
python -m venv env
#仮想環境をアクティベート
.\env\Scripts\activate
```
### 4FastAPIとUvicornのインストール
仮想環境にFastAPIとUvicornASGIサーバーをインストールします。
1. fastapi
```bash
pip install fastapi
```
2. Uvicornをインストールします
```bash
pip install uvicorn
```
3. すべて依頼をインストール
```bash
pip install -r requirements.txt
```
4. backend 起動
```bash
uvicorn app.main:app --reload
```
# ZCC対応
1. ENV環境中Pythone現在使用している証明書(cacert.pem)のパス確認
```
python -m certifi
# C:\Projects\AI-IOT\AppBuilderforkintone\backend\env\Scripts\python.exe: No module named certifi
```
2. 上記のコマンドを実行すると、証明書までのパスが出てくるので、どこかにメモしてください。次のコマンドで使います。