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

What Ever Happened to Baby Rails App?

What Ever Happened to Baby Rails App?

Miyuki Tomiyama

March 04, 2023
Tweet

More Decks by Miyuki Tomiyama

Other Decks in Programming

Transcript

  1. ʮॳΊͯRailsΞϓϦΛϦϦʔ
    ε͠·ͨ͠ʂʯͷͦͷޙ
    What Ever Happened to Baby Rails App?
    2023/3/4 ࣛࣇౡRubyձٞ02 @eatplaynap τϛʔ

    View full-size slide

  2. ࣗݾ঺հ
    τϛʔ/ˏeatplaynap


    RubyίϛϡχςΟͱԑͷਂ͍ϑΟϤϧ
    υϒʔτΩϟϯϓΛ2022೥8݄ʹଔۀ


    2022೥11݄͔ΒגࣜձࣾTebikiͰϓϩ
    άϥϚʔͱͯ͠ಇ͍ͯ4ϲ݄͘Β͍


    1993೥ੜ·ΕͰRubyͱಉ͍೥🤗

    View full-size slide

  3. ʮॳΊͯϦϦʔεͨ͠RailsΞϓϦʯͱ͸
    • ϓϩάϥϛϯάεΫʔϧͷଔۀ੍࡞


    • ͍ΘΏΔʮϙʔτϑΥϦΦΞϓϦʯ


    • ब৬׆ಈͷ৔ͰɺεΫʔϧͰഓͬͨεΩϧ΍ܦݧΛࣔͨ͢Ίͷ੒Ռ෺
    ͱͯ͠࢖ΘΕΔ


    • RailsͰ࡞ΒΕ͍ͯΔ΋ͷ͕ଟ͍(͔ͬͨʁ)


    • ࢲ΋ϑΟϤϧυϒʔτΩϟϯϓͷଔۀ੍࡞ͱͯ͠RailsΞϓϦΛϦϦʔε

    View full-size slide

  4. ϑΟϤϧυϒʔτΩϟϯϓʹ͍ͭͯͷਖ਼͍͠৘ใ͸ˣΛࢀর͍ͩ͘͞

    https://speakerdeck.com/komagata/zi-keshui-nijin-karu

    View full-size slide

  5. ࢲͷϙʔτϑΥϦΦΞϓϦ Shadone (͠ΌͲʔΜ)

    https://www.shadone.net

    View full-size slide

  6. YouTubeಈըͷҰ෦Λϧʔϓ࠶ੜͤ͞Δ͜ͱͰγϟυʔΠϯάֶशΛߦ͏


    Rails6ͱVue.js 2.6Ͱ࡞੒

    View full-size slide

  7. ϙʔτϑΥϦΦΞϓϦ
    Λҡ͍࣋ͯ͠Δྫ͸ଟ
    ͘ͳ͍
    FBCଔۀੜͷࣗ࡞ΞϓϦͷҰཡͱͯ͠ެ։͞
    Ε͍ͯΔ43݅த8݅ͷΈ͕ࠓ΋Քಇத(https://
    bootcamp.fjord.jp/articles/51)


    ΋ͱ΋ͱब৬ͷͨΊͷ΋ͷͳͷͰɺब৬ͨ͠
    ΒϝϯςΛ΍ΊΔέʔε͕ଟ͍ͱࢥΘΕΔ


    ɾଟ๩


    ɾڵຯ͕ബΕΔ


    ɾҡ࣋අ͕͔͞Ή

    View full-size slide

  8. Shadoneͷ৔߹…


    2022೥9݄12೔ϦϦʔε


    ൒೥ޙͷݱࡏ΋Քಇத

    View full-size slide

  9. ϦϦʔε͔Β൒೥ؒ


    Shadoneͱͷ෇͖߹͍ํ͕࣌ؒͱͱ΋
    ʹࣗ෼ͷͳ͔ͰͲ͏มԽ͍ͯͬͨ͠ͷ
    ͔

    View full-size slide

  10. ϦϦʔε͔Βब৬·Ͱ
    • TwitterͰӨڹྗͷ͋Δํ͕πΠʔτͯ͘͠Εͯͦͦ͜͜όζͬͨ


    • ະܦݧͱͯ͠ͷब৬׆ಈ͸1ࣾ໨Ͱ಺ఆΛಘͨ


    • Shadone͸ʮϓϩάϥϚʔͱͯ͠΍͍͚ͬͯΔ͔΋ɺͱ͍͏ࣗ৴ͷࠜ
    ڌʯ

    View full-size slide

  11. ब৬௚ޙ
    • ϑΟϤϧυϒʔτΩϟϯϓͰษڧͨ͠ͷʹࣗ෼͸ݱ৔Ͱ໾ʹཱ͍ͬͯ
    ͳ͍͠ແྗͩͱײ͡Δ


    • ձࣾͷϓϩμΫτͱಉٕ͡ज़ελοΫ͚ͩͲɺࣗ෼ͷΞϓϦ͸͋·Γ
    ʹஓ੿ͳग़དྷ


    • Shadone͸ʮաڈͷӫޫʯ

    View full-size slide

  12. ब৬͔Β1ϲ݄ޙ
    • ٕज़Λ΋ͬͱ਎ʹ͚ͭͯແྗײΛ୤͍ͨ͠


    • ͓٬͞Μ͕͍ΔձࣾͷϓϩμΫτΛ͍͡Δͷ͸ා͍ͱࢥ͍ͬͯΔதɺ
    ShadoneͷଘࡏΛࢥ͍ग़͢


    • Shadone͸ʮ৽ֶ͘͠Μٕͩज़Λࢼ࣮͢ݧ৔ʯ

    View full-size slide

  13. ShadoneΛ௨ͯ͡࢓ࣄ͕Ͱ͖ΔΑ͏ʹͳΔκʂ
    • ͓΋ʹ࢓ࣄͰֶΜͩ͜ͱ΍਎ʹ͚͍ͭͨ͜ͱΛࢼ͢৔ͱͯ͠Shadone
    Λ׆༻


    • Herokuʹ࿈བྷͯ͠࡟আ͞ΕͨDBͷ෮چ


    • JestͷಋೖͱϑϩϯτΤϯυͷςετ࡞੒


    • RailsͷϚΠφʔόʔδϣϯΞοϓσʔτͱDependabotಋೖ


    • εϚϗͰͷϘλϯ഑ஔΛࣗࣾϓϩμΫτͱಉ͡Ґஔʹमਖ਼

    View full-size slide

  14. ࣛࣇౡRubyձٞ02ͷొஃऀืूΛΈ͚ͭΔ

    View full-size slide

  15. ʮஓ੿ͳʯϙʔτϑΥϦΦΞϓϦΛ


    ʮຊۀͷͨΊͷ࿅श৔ॴʯͱͯ͠ϦαΠΫϧ͠
    ͯ༗ޮ׆༻͠ɺ࢓ࣄ͕Ͱ͖ΔΑ͏ʹͳΓ·͠
    ͨʂʂͬͯൃද͍ͨ͠ʂ

    View full-size slide

  16. ϓϩάϥϛϯά͕


    ָ͘͠ͳ͘ͳͬͨ😭

    View full-size slide

  17. ָ͘͠ͳ͘ͳͬͨཧ༝
    • ٳ೔΋࢓ࣄΛ͍ͯ͠Δؾ෼Ͱؾ͕ٳ·Βͳ͍


    • ࣗ෼ͷΞϓϦΛʮຊۀͷͨΊͷ࿅श৔ʯͱΈͳ͍ͨͤ͠Ͱɺେ੾ʹҭ
    ͯΑ͏ͱ͍͏ؾ͕࣋ͪബΕͨ


    • ʮ࢓ࣄ͕Ͱ͖ΔΑ͏ʹͳΓ͍ͨʯͱ͍͏໨త͕ঝೝཉٻͱ݁ͼ͍ͭͯ
    ͠·ͬͨ

    View full-size slide

  18. ԿނϓϩάϥϚʔʹͳͬͨΜ͚ͩͬʁ

    View full-size slide

  19. ࢓ࣄ͕Ͱ͖Δˠָ͍͠Ͱ͸ͳͯ͘


    ָ͍͠ˠ࢓ࣄ͕Ͱ͖ΔΑ͏ʹͳΔ


    ͳͷ͔΋…ʁ

    View full-size slide

  20. ࢲ΋ָ͠Έ͍ͨʂ


    ͱ͍͏͔Shadone࡞ͬͯͨͱ͖͸ࢲ΋
    ָ͠ΜͰͨΜͩͬͨ…ʂ

    View full-size slide

  21. ݱࡏ
    • ShadoneΛϝϯς͢Δཧ༝Λʮ࢓ࣄ͕Ͱ͖ΔΑ͏ʹͳΔͨΊʯ͔Βʮϓϩάϥϛ
    ϯάΛָ͠ΉͨΊʯʹม͑ͨ


    • ࢓ࣄʹ௚݁͢ΔΘ͚Ͱ͸ͳ͍͕ڵຯΛ࣋ͬͨ৽ٕज़Λࢼ͢


    • WebpackerΛണ͕ͯ͠vite_railsܦ༝ͰViteಋೖ


    • ࠓ͸localͰςετ͕΍ͬͱ௨ΔΑ͏ʹͳͬͨঢ়ଶ


    • ࣗ༝ͳࢼߦࡨޡ͕ΊͬͪΌָ͍͠ʂ


    • ShadoneΛ௨ͯ͡ϓϩάϥϛϯάΛָ͠Ήؾ࣋ͪʹ࠶ձ

    View full-size slide

  22. ·ͱΊ
    • ϙʔτϑΥϦΦΞϓϦ͸ब৬ޙ΋ؾָʹٕज़Λࢼ͢༡ͼ৔ͱͯ͠༗ޮ
    ׆༻Ͱ͖Δ


    • ஓ੿Ͱ͸͋ͬͯ΋޷͖উखʹίʔυΛॻ͖ɺࣗ෼ͷͨΊʹָ͘͠ϓϩ
    άϥϛϯάΛ͍ͯͨ͠ͱ͖Λࢥ͍ग़ͤΔوॏͳ৔ॴͰ΋͋Δ


    • ཧ૝ͷϓϩάϥϚʔ͸ָ͠ΜͰ͍ΔRubyίϛϡχςΟͷઌഐํɻ͍͍
    ϓϩάϥϚʔʹͳΔͨΊʹϓϩάϥϛϯά΍ίϛϡχςΟ׆ಈΛָ͠
    ΜͰ͍͖͍ͨʂʂ

    View full-size slide

  23. ͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠

    View full-size slide