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
Turing × atmaCup #18 - 1st Place Solution
hakubishin3
0
490
非機能品質を作り込むための実践アーキテクチャ
knih
5
1.4k
Opcodeを読んでいたら何故かphp-srcを読んでいた話
murashotaro
0
260
2024年にチャレンジしたことを振り返るぞ
mitchan
0
140
終了の危機にあった15年続くWebサービスを全力で存続させる - phpcon2024
yositosi
15
12k
10分で学ぶKubernetesコンテナセキュリティ/10min-k8s-container-sec
mochizuki875
3
350
20241214_WACATE2024冬_テスト設計技法をチョット俯瞰してみよう
kzsuzuki
3
510
.NET 9 のパフォーマンス改善
nenonaninu
0
980
OpenAIの蒸留機能(Model Distillation)を使用して運用中のLLMのコストを削減する取り組み
pharma_x_tech
4
560
How to be an AWS Community Builder | 君もAWS Community Builderになろう!〜2024 冬 CB募集直前対策編?!〜
coosuke
PRO
2
2.8k
GitHub Copilot のテクニック集/GitHub Copilot Techniques
rayuron
36
14k
UI State設計とテスト方針
rmakiyama
2
600
Featured
See All Featured
Building Flexible Design Systems
yeseniaperezcruz
327
38k
Optimising Largest Contentful Paint
csswizardry
33
3k
The Pragmatic Product Professional
lauravandoore
32
6.3k
GraphQLとの向き合い方2022年版
quramy
44
13k
A Modern Web Designer's Workflow
chriscoyier
693
190k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.1k
Reflections from 52 weeks, 52 projects
jeffersonlam
347
20k
KATA
mclloyd
29
14k
Agile that works and the tools we love
rasmusluckow
328
21k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
10
810
Rails Girls Zürich Keynote
gr2m
94
13k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
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