Skip to content

sakaritoru/gemmini-ai-custom-function

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

スプレッドシートカスタム関数(GEMINI)

get started

1. Dockerのイメージをビルドする

docker-compose build

2. Dockerを起動する

docker-compose up -d

3. 必要なモジュールをインストールする

docker exec -it gemmini-ai-custom-function yarn initenv

4. claspにログインする

  1. コンテナに入る
docker exec -it gemmini-ai-custom-function bash
  1. 以下のコマンドを実行します。
clasp login
  1. コマンド実行後に表示されたURLにアクセスしgoogleログインします。
  2. ログイン後、リダイレクトされたURLをコピーします。
  3. 別のターミナルでコンテナの中に入り、curlコマンドでリダイレクトされたURLにアクセスします。
curl http://localhost:xxxx/?code=xxx

5. clasp.jsonを生成する

clasp create --type sheets

6. .clasp.jsonのrootDirの値を以下に書き換える

/usr/src/app/dist

7. コードをビルドする

yarn build

8. Google App script に push する

yarn deploy

About

Geminiを利用したカスタム関数です。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors