Skip to content

lilpacy/github-trend-public

github-trend

開発手順

npm install
npx clasp login
# 編集
npm run deploy
# webuiから動作確認

gcpのプロジェクトを作成してcreds設定すればローカル実行もできるが
aside(clasp)使うオーバーヘッドが大きくなってしまうのでwebuiから動作確認するようにする

デプロイ

npm run deploy
# 必要ならwebuiからスケジュール設定

設計

$ tree -I 'node_modules'
.
├── dist
│   ├── appsscript.json
│   └── index.js # デプロイ対象
├── src
│   ├── adapters # インフラ層でgasの知識とか全部こっち
│   │   ├── entities
│   │   │   ├── embed.ts
│   │   │   └── repository.ts
│   │   ├── translate.ts
│   │   └── usecases
│   │       └── notify.ts
│   ├── domain # ドメインとロジックはこっち
│   │   ├── entities
│   │   │   ├── embed.ts
│   │   │   ├── language.ts
│   │   │   └── repository.ts
│   │   └── usecases
│   │       └── notify.ts
│   ├── index.ts # controllerに当たるメイン関数を配置
│   └── utils
│       └── array.ts
└── test
    └── index.test.ts

テンプレートメソッド必要ない場合は、インターフェースを
テンプレートメソッド必要な場合は、抽象クラスをそれぞれdomain配下に配置

implementsは全部adaptersに対応するフォルダ作って置く

filter部分とかadapterじゃなくてdomainにもっとおいても良かったかも

About

No description, website, or topics provided.

Resources

License

Apache-2.0 and 2 other licenses found

Licenses found

Apache-2.0
LICENSE
Unknown
license-config.json
Unknown
license-header.txt

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors