Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Azure functions+typescript

1,248 views

Published on

2018/4/14 第二十一回 Azureもくもく会 @ 品川

Published in: Software
  • Ich kann eine Website empfehlen. Er hat mir wirklich geholfen. ⇒ www.WritersHilfe.com ⇐ Zufrieden und beeindruckt.
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

Azure functions+typescript

  1. 1. Copyright 2017 Hiroyuki Onaka Azure Functions+TypeScript 2018/4/14第二十一回 Azureもくもく会 @ 品川 大中浩行(@setoazusa)
  2. 2. Copyright 2017 Hiroyuki Onaka こんにちわ! • 大中浩行 / setoazusa(せとあず) • 開発とインフラの二刀流 • Javaの方から来ました • 4/22 技術書典4 か-16「ふぃーるどのーつ」 & くー35「錬金術MeetUp」
  3. 3. Copyright 2017 Hiroyuki Onaka 今日やったこと Azure Fucntions上でTypeScriptで書いたバッ チ処理を動かす
  4. 4. Copyright 2017 Hiroyuki Onaka やること • JavaScriptの Functionをつくる • TypeScriptでスクリプトを書く • GitレポジトリーとFunctionsを連携する • デプロイ時にtscコマンドによるコンパイル が走るようにする
  5. 5. Copyright 2017 Hiroyuki Onaka JavaScriptのFunctionをつくる Azure CLI で初めての関数を作成する ( https://docs.microsoft.com/ja- jp/azure/azure-functions/functions-create- first-azure-function-azure-cli )にしたがって 関数を作成した後、index.jsを削除してindex.ts を作成する。
  6. 6. Copyright 2017 Hiroyuki Onaka TypeScriptでスクリプトを書く(tsconfig.jsonの抜粋)
  7. 7. Copyright 2017 Hiroyuki Onaka GitレポジトリーとFunctionを連携 Azure Portal上でGithub/Bitbucketと連携を設 定することで、Gitのリモートレポジトリーに pushするとAzure Functionsにコードがデプロ イされます。
  8. 8. Copyright 2017 Hiroyuki Onaka デプロイ時にtscコマンドによるコンパイルが走る ようにする • Azureにデプロイ時にnpm installが実行され る • npm installの処理時にtscコマンドによるコ ンパイルが実行されるようにする
  9. 9. Copyright 2017 Hiroyuki Onaka package.jsonのpostinstallの処理で記述
  10. 10. Copyright 2017 Hiroyuki Onaka Azure FunctionsのtimeTriggerの注意点 ここは「秒」
  11. 11. Copyright 2017 Hiroyuki Onaka 作ったもの • 技術書典のサークル被チェック数を取得して、サー バー監視サービスのMackerelにメトリックを投稿す るもの • https://github.com/azusa/circlecheck-mackerel • ベースはerukitiさんの https://github.com/erukiti/techbookfest-circle- bot
  12. 12. Copyright 2017 Hiroyuki Onaka コード(1)
  13. 13. Copyright 2017 Hiroyuki Onaka コード(2)
  14. 14. Copyright 2017 Hiroyuki Onaka 作成されるグラフ
  15. 15. Copyright 2017 Hiroyuki Onaka ありがとうございました! • 大中浩行(Onaka,Hiroyuki) • @setoazusa • グロースエクスパートナーズ株式会社 アーキテクチャソリューション部 テクニカルリード • http://hiroyuki.fieldnotes.jp/

×