イベント一覧用のデータをfunctionsでfirestoreに保存する
Kesin11 opened this issue · comments
Kenta Kase commented
flutterでイベント一覧を表示するための情報はfirestoreから取得します。
firestoreに情報を入れるのはCloud Functionsで行います。
とりあえずはconnpassのAPIの結果をfirestoreのevents/{random_id_generate_by_firestore}
パスに入れる感じ。
ただし、将来的にconnpass以外のイベントを扱う可能性があるので、connpass固有のフィールドなどがあれば必要に応じて削除。
snake_caseはflutter/TypeScriptどちらかも扱いづらいのでcamelCaseに直しておく。
connpass API叩くのはfirebase functionsに最近入ったcron宣言できる機能を使えば良さそう。