Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
習慣的にやりたいことを手助けしてくれるLINEボットを作った話
Search
Shintaro Ikeda
April 18, 2018
Technology
0
51
習慣的にやりたいことを手助けしてくれるLINEボットを作った話
https://github.com/momotaro98/yarana-bot
Shintaro Ikeda
April 18, 2018
Tweet
Share
More Decks by Shintaro Ikeda
See All by Shintaro Ikeda
Difference between Swagger and OpenAPI
momotaro98
0
130
Haskell-Rinko-11
momotaro98
0
35
AlertForViber_20171207
momotaro98
0
170
アウトプット駆動スキルアップ
momotaro98
1
64
マイクロサービスの概要と構築 統合編
momotaro98
0
78
Other Decks in Technology
See All in Technology
ハイテク休憩
sat
PRO
2
140
第3回Snowflake女子会_LT登壇資料(合成データ)_Taro_CCCMK
tarotaro0129
0
180
Oracle Cloud Infrastructure:2024年12月度サービス・アップデート
oracle4engineer
PRO
0
170
マイクロサービスにおける容易なトランザクション管理に向けて
scalar
0
110
Microsoft Azure全冠になってみた ~アレを使い倒した者が試験を制す!?~/Obtained all Microsoft Azure certifications Those who use "that" to the full will win the exam! ?
yuj1osm
2
110
Fanstaの1年を大解剖! 一人SREはどこまでできるのか!?
syossan27
2
160
LINE Developersプロダクト(LIFF/LINE Login)におけるフロントエンド開発
lycorptech_jp
PRO
0
120
2024年にチャレンジしたことを振り返るぞ
mitchan
0
130
DevOps視点でAWS re:invent2024の新サービス・アプデを振り返ってみた
oshanqq
0
180
KubeCon NA 2024 Recap: How to Move from Ingress to Gateway API with Minimal Hassle
ysakotch
0
200
Qiita埋め込み用スライド
naoki_0531
0
2.4k
GitHub Copilot のテクニック集/GitHub Copilot Techniques
rayuron
26
11k
Featured
See All Featured
Designing for humans not robots
tammielis
250
25k
Statistics for Hackers
jakevdp
796
220k
Raft: Consensus for Rubyists
vanstee
137
6.7k
Art, The Web, and Tiny UX
lynnandtonic
298
20k
Building Your Own Lightsaber
phodgson
103
6.1k
Building Adaptive Systems
keathley
38
2.3k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
2
290
Rails Girls Zürich Keynote
gr2m
94
13k
RailsConf 2023
tenderlove
29
940
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
29
2k
The Invisible Side of Design
smashingmag
298
50k
For a Future-Friendly Web
brad_frost
175
9.4k
Transcript
"QSUI ಉظ-5ձ 4IJOUBSP*LFEB श׳తʹΓ͍ͨ͜ͱΛखॿ͚ͯ͘͠ΕΔ-*/&ϘοτΛ࡞ͬͨ
·ͣσϞ
4ZTUFNPWFSWJFX .FTTBHF"1* #PUTFSWFS "1*TFSWFS
-*/&CPUCZ(PMBOHPO%PLLV PO͘͞Βͷ714
͘͞Βͷ714 αʔόΛཱͯΔ ϙʔτΛ։͚Δ ಠࣗυϝΠϯΛඥ͚Δ
%PLLVͱ HerokuޓͷOSSͳPaaS VPSͱ͔ࣗḉͱ͔ʹΠϯετʔϧͨ͠ΒԶͷPaaS HerokuʹσϓϩΠ͍ͯͨ͠ΞϓϦΛͦͷ··ҠߦͰ͖Δ Dockerίϯςφୡ͕ཪͰؤு͍ͬͯΔ Nginxίϯςφ ΞϓϦέʔγϣϯαʔόίϯςφ ศརͳϓϥάΠϯ͕༗ࢤʹͯ࡞͞Ε͍ͯΔ
'MPXGPSVTJOH%PLLV $ wget https://raw.githubusercontent.com/dokku/dokku/v0.11.6/bootstrap.sh $ sudo DOKKU_TAG=v0.11.6 bash bootstrap.sh *OTUBMM%PLLV
$ vi /home/dokku/.ssh/authorized_keys 4FU44)LFZ $SFBUFBQQ $ dokku apps:create myapp %FQMPZGSPNMPDBM1$ $ git remote add dokku
[email protected]
:myapp $ git push dokku master
%PLLVͷ)5514Խͯ͘͠ΕΔϓϥάΠϯ͕/JDF *OTUBMMEPLLVMFUTFODSZQUQMVHJO $ sudo dokku plugin:install https://github.com/dokku/dokku-letsencrypt.git "QQMZUPBQQ $ dokku
config:set --no-restart myapp
[email protected]
$ dokku letsencrypt myapp ͜Ε͚ͩͰ͋ͳͨͷΞϓϦ)5514ରԠ
-*/&ϘοτΛ࡞Δ LINEσϕϩού͕GoΛؚΉෳݴޠͷΫϥΠΞϯτϥΠϒϥ ϦΛఏڙ͍ͯ͠Δ APIͷϨϑΝϨϯε͕͓͠ΌΕͰͪΌΜͱ͍ͯ͠Δ V̋̋erͱେҧ͍ ͔͠͠։ൃ༻ΞΧϯτ50Ϣʔβʔ·Ͱ ຊ൪༻݄3ສԁҎ্͢Δ
ਓ։ൃ͚ͩͲ GitHubʹͯ ϒϥϯν͚ͯϓϧϦΫ ࣗͰϨϏϡʔίϝϯτ&Ϛʔδ ← ͕Ք͛Δʂ ୯ମςετΛ͢Δ DIͯ͠ϞοΫΛ͏ςετ CircleCIΛಋೖͪ͠ΌΜͱCI͔ͯ͠ΒϚʔδ ৄࡉιʔεͰ
https://github.com/momotaro98/yarana-bot
"1*CZ$PO"[VSF'VODUJPOT
"1*αʔό"[VSF'VODUJPOT Azure FunctionsαʔόϨεΞʔΩςΫνϟͷαʔϏε ίετͰεέʔϥϒϧͰEvent DrivenͳΞϓϦΛߏஙͰ͖Δ ֎෦ετϨʔδͱͷ࿈ܞ؆୯ APIఆٛʹSwaggerαϙʔτ
࢝ΊετϨʔδʹ"[VSFͷ/P42-Λ͍ͬͯͨͷ͕ͩ 50Ϩίʔυ͔ͭ110ϦΫΤετ͘Β͍ͩͬͨͷʹ1ϲ݄Ͱ͜ͷ͓ஈ Table StorageʹΓ͑ͨΒମײͦͷ··Ͱ1/50·ͰԼΓ => ΫϥυαʔϏεΛબͿͱ͖ͪΌΜͱۛຯ͠Α͏ʂʂ
'VUVSF Δ͜ͱΛฤूɾআ͢Δ༻ͷWEBը໘ ͬͨཤྺͷϨϙʔτػೳ CUI → GUI → ͦͯ͠VUI..
DPNJOHTPPO