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

MVPからはじめよ / start with MVP

MVPからはじめよ / start with MVP

tech bash(giftee社内の勉強会)で行ったLTです。

Hiroki Otani

April 12, 2021
Tweet

Other Decks in Programming

Transcript

  1. ͕

  2. Q. /games/:id ͕֫ಘͨ͠ratingͷ߹ܭΛ ɹΞϓϦͰද͍ࣔͨ͠ɻͲ͏ઃܭ͢Δ͔ʁ amongUs: { title: “Among us” ,

    reviews: [ { rating: 1, text: ”ਓؒෆ৴ʹͳΓ·ͨ͠ ” } , { rating: 5, text: ”໘ന͗͢ϫϩλ ” } ] }
  3. amongUs: { title: “Among us” , reviews: [ { rating:

    1, text: ”ਓؒෆ৴ʹͳΓ·ͨ͠ ” } , { rating: 5, text: ”໘ന͗͢ϫϩλ ” } ] } BEFORE
  4. amongUs: { title: “Among us” , ratingCount: 6, reviews: [

    { rating: 1 , text: ”ਓؒෆ৴ʹͳΓ·ͨ͠” , } , { rating: 5 , text: ”໘ന͗͢ϫϩλ ” } ] } AFTER
  5. A. 1ͭͷυΩϡϝϯτʹ֨ೲ͢Δ users: { otani: { eMail: “[email protected]” , birthDate:

    1994-09-30 00:00:00 , nickname: “otani” , description: “ήʔϜ͸Ұ೔Ұ࣌ؒʂ ” } }
  6. BEFORE users: { otani: { eMail: “[email protected]” , birthDate: 1994-09-30

    00:00:00 , nickname: “otani” , description: “ήʔϜ͸Ұ೔Ұ࣌ؒʂ ” } }
  7. AFTER users: { otani: { eMail: “[email protected]” , birthDate: 1994-09-30

    00:00:00 , } } , profile: { otani: { nickname: “otani” , description: “ήʔϜ͸Ұ೔Ұ࣌ؒʂ ” } }
  8. Firestore͸ηΩϡϦςΟϧʔϧͰσʔλΛอޢ͢Δ BEFOREɿ match /users/{uid} { allow get if true; //

    ୭Ͱ΋ݟΕΔ } users: { otani: { eMail: “[email protected]” , birthDate: 1994-09-30 00:00:00 , nickname: “otani” , description: “ήʔϜ͸Ұ೔Ұ࣌ؒʂ ” } }
  9. Firestore͸ηΩϡϦςΟϧʔϧͰσʔλΛอޢ͢Δ AFTERɿ users: { otani: { eMail: “game@clip- games.com” ,

    birthDate: 1994-09-30 00:00:00 , } } match /users/{uid} { //ΞΧ΢ϯτͷॴ༗ऀ͚͕ͩࢀরՄೳ allow get: if request.auth != null && request.auth.uid == uid ; } match /profiles/{uid} { allow get if true; // ୭Ͱ΋ݟΕΔ } profile: { otani: { nickname: “otani” , description: “ήʔϜ͸Ұ೔Ұ࣌ؒʂ ” } }