Upgrade to Pro — share decks privately, control downloads, hide ads and more …

#今日の食神 #dentoolt / today's shokujinjp

#今日の食神 #dentoolt / today's shokujinjp

talked by Dentoo.LT #25 https://dentoolt.connpass.com/event/210884/

Original: https://www.slideshare.net/whywaita/dentoolt-todays-shokujinjp

This slide is re-upload by the author.

whywaita

June 06, 2021
Tweet

More Decks by whywaita

Other Decks in Technology

Transcript

  1. whywaita ✓ ٦ ࿨൘ (Tachibana waita) ✓ ిؾ௨৴େֶ 13ֶ෦ೖֶ 19େֶӃଔ

    ✓ Dentoo.LT 2୅໨ओ࠵ ✓ ࢓ࣄ: αʔόͱ஥ྑͨ͘͠Γ݌՞ͨ͠Γ͢Δ೔ʑ ✓ झຯ: ࣗ୐αʔόɺVTuberɺຑ੃ͱ͔
  2. whywaita ✓ ٦ ࿨൘ (Tachibana waita) ✓ ిؾ௨৴େֶ 13ֶ෦ೖֶ 19େֶӃଔ

    ✓ Dentoo.LT 2୅໨ओ࠵ ✓ ࢓ࣄ: αʔόͱ஥ྑͨ͘͠Γ݌՞ͨ͠Γ͢Δ೔ʑ ✓ झຯ: ࣗ୐αʔόɺVTuberɺຑ੃ͱ͔
  3. whywaita ✓ ٦ ࿨൘ (Tachibana waita) ✓ ిؾ௨৴େֶ 13ֶ෦ೖֶ 19େֶӃଔ

    ✓ Dentoo.LT 2୅໨ओ࠵ ✓ ࢓ࣄ: αʔόͱ஥ྑͨ͘͠Γ݌՞ͨ͠Γ͢Δ೔ʑ ✓ झຯ: ࣗ୐αʔόɺVTuberɺຑ੃ͱ͔
  4. % curl -s https://api.shokujin.jp/menu/today | jq . [ { "id":

    "59" , "name": "ਫࣽڇ೑" , "price": "780" , "category": "ڇɾಲɾܲɾϥϜ" , "day_start": "" , "day_end": "" , "can_weekday": "" , "description": " " } , { "id": "1" , "name": "ຑം౾෗ఆ৯" , "price": "600" , "category": “ఆ৯" , (snip) shokujinjp/api
  5. % curl -s https://api.shokujin.jp/menu/today | jq . [ { "id":

    "59" , "name": "ਫࣽڇ೑" , "price": "780" , "category": "ڇɾಲɾܲɾϥϜ" , "day_start": "" , "day_end": "" , "can_weekday": "" , "description": " " } , { "id": "1" , "name": "ຑം౾෗ఆ৯" , "price": "600" , "category": “ఆ৯" , (snip) shokujinjp/api
  6. % curl -s https://api.shokujin.jp/menu/today | jq . [ { "id":

    "59" , "name": "ਫࣽڇ೑" , "price": "780" , "category": "ڇɾಲɾܲɾϥϜ" , "day_start": "" , "day_end": "" , "can_weekday": "" , "description": " " } , { "id": "1" , "name": "ຑം౾෗ఆ৯" , "price": "600" , "category": “ఆ৯" , (snip) shokujinjp/api
  7. shokujinjp/api • ݴޠ: Golang / HTTP Router: gorilla/mux • શ෦Ͱ100ߦ͙Β͍ͷখ͍͞WebΞϓϦ

    • https://github.com/shokujinjp/api/blob/ f214eaa7a6eb89ef9944cdc8917c7ebd92129deb/main.go • Θͨ͠ͷ͓͏ͪKubernetes্Ͱಈ͍ͯΔ
  8. % curl -s https://api.shokujin.jp/menu/today | jq . [ { "id":

    "59" , "name": "ਫࣽڇ೑" , "price": "780" , "category": "ڇɾಲɾܲɾϥϜ" , "day_start": "" , "day_end": "" , "can_weekday": "" , "description": " " } , { "id": "1" , "name": "ຑം౾෗ఆ৯" , "price": "600" , "category": “ఆ৯" , (snip)
  9. % curl -s https://api.shokujin.jp/menu/today | jq . [ { "id":

    "59" , "name": "ਫࣽڇ೑" , "price": "780" , "category": "ڇɾಲɾܲɾϥϜ" , "day_start": "" , "day_end": "" , "can_weekday": "" , "description": " " } , { "id": "1" , "name": "ຑം౾෗ఆ৯" , "price": "600" , "category": “ఆ৯" , (snip)
  10. shokujinjp/web-menu • https://menu.shokujin.jp • TypeScript + React / Netlify •

    ੮ʹ͍͔ͭͯΒεϚϗͰϙνϙν͢Δͱ஫จͰ͖Δ • LINEΞΧ΢ϯτͰ஫จͰ͖Δͷ͸ެࣜ • MMAϑϩϯτΤϯυ෦ @mizdra @hogextend ʹ 
 ख఻ͬͯ΋Βͬͨ
  11. िସΘΓϝχϡʔ௥ՃࣗಈԽ • ຖि݄༵೔ʹఆظ࣮ߦ on GitHub Actions • shokujinjp TwitterΞΧ΢ϯτͷ౤ߘΛݕࡧ •

    ݟ͚ͭͨը૾ΛOCRͰจষԽ • ্ख͘ಡΈࠐΊͨΒ shokujinjp/data ʹࣗಈ௥Ճ
  12. curl -s https://api.shokujin.jp/joke/markov % curl -s https://api.shokujin.jp/joke/markov | jq .

    { "id": "joke" , "name": "ಲ೑ͱۄࢠͱΩϟϕπͱ͠Ί͡ͱ͡Ό͕͍΋ͷࢫఆ৯" , "price": "69589" , "category": "ෆ໌" , "day_start": "" , "day_end": "" , "can_weekday": "" , "description": "joke menu generated by markov chain " }