Home
About
Corporate Site
About
Dialogflow
TypeScript
Dialogflow
Clean Archittecture
2020年5月30日
InversifyJSを使ってフロントエンドのTypeScriptでDIを実装してみた
クリーンアーキテクチャをTypeScriptで実装する際のDIをInversifyJSを使ってみた * Firebase & Firestore & Hosting * Nuxt.js & TypeScript を使い、サービスを実装する際にクリーンアーキテクチャを採用した。 その際のDIライブラリとしてInverstifyJSを選定 InversifyJSInversifyJS is a lightweight inversion of control (IoC) container for TypeScript and JavaScript apps.http://inversify.io/Remo H. Jansen [https://inversify.io/] 想定サービス レストランの一覧を取得するもの Firestore とりあえず今回はPublicなRestaurantデータを取得するものを作成、 データモデルはこんな感じ Clean Architecture 有名な図 これをもとにフロント側を実装 Inverstify JS GitHub -
GCP
GoogleHome
Cloud Build
2019年12月23日
GCPを使い、GoogleHomeを受付としてSlackに通知する
受付がチャイムである Anti-Pattern Inc.の受付は11月に引っ越したばかりということもあり、ベルの音で来客の有無を把握していた。 →GoogleHomeを受付にしてSlackに飛ばし、また、SlackからGoogleHomeを喋らし、双方向の会話を可能にしよう! 今回はGoogleHomeからSlack通知までをCloud Functionsなどを使い実装する。 ※Slack→GoogleHomeは別の機会に執筆する 使うもの * Dialogflow * Actions on Googl [https://developers.google.com/assistant]e (The developer platform for the Google Assistant.) * Cloud Shell (開発用) * Cloud Function * Cloud Build * Cloud Source Repositories こんな流れで処理をする。 まず、Actions on GoogleでDevelopから Add Action bu