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

サーバサイドエンジニアにこそ使って欲しいBaaS

 サーバサイドエンジニアにこそ使って欲しいBaaS

We Are JavaScripters! @3rdでの発表資料です。

https://wajs.connpass.com/event/48659/

More Decks by ニフティクラウド mobile backend

Other Decks in Technology

Transcript

  1. αʔόαΠυΤϯδχΞ
    ͦ͜࢖ͬͯཉ͍͠#BB4
    .00/(*'5த௡઒ಞ࢘

    View full-size slide

  2. Copyright @ NIFTY Corporation All Rights
    ࣗݾ঺հ

    !NPPOHJGU
    GCNFNPPOHJGUGBO
    த௡઒ಞ࢘
    גࣜձࣾ.00/(*'5୅දऔక໾
    χϑςΟΫϥ΢υNPCJMFCBDLFOE
    ɹɹɹɹɹɹɹɹɹɹΤϰΝϯδΣϦετ
    ೥݄ΑΓΦʔϓϯιʔεɾιϑτ΢ΣΞΛຖ
    ೔঺հ͢Δϒϩά.00/(*'5ΛӡӦɻ
    IUUQXXXNPPOHJGUKQ

    View full-size slide

  3. ຊ೔ͷ݁࿦

    View full-size slide

  4. /$.#࢖ͬͯΈΑ͏

    View full-size slide

  5. /$.#Λ΍ΔͱϞςΔ:0ʂ
    ͨͩ͠ΠέϝϯʹݶΔ

    View full-size slide

  6. .POHP%#ͬͯʁ
    w +40/ϕʔεͷυΩϡϝϯτσʔλϕʔε
    w /P42-
    w .&"/ελοΫ

    View full-size slide

  7. ੈքͷ%#γΣΞ
    .POHP%#͸ੈքҐ

    View full-size slide

  8. Ͱ΋ʜ
    ৴པੑ͕௿͍
    ӡ༻͕ਏ͍
    νϡʔχϯάେม

    View full-size slide

  9. αʔόαΠυͷ։ൃ

    View full-size slide

  10. Α͋͘Δ࣮૷
    WBSNPOHPPTFSFRVJSF NPOHPPTF

    WBSECNPOHPPTFDPOOFDU
    NPOHPECMPDBMIPTUOPEF@NFNP@EFNP


    WBS6TFS4DIFNBOFXNPOHPPTF4DIFNB \
    OBNF\UZQF4USJOH^
    QBTTXPSE\UZQF4USJOH^
    ^

    WBS6TFSECNPEFM VTFST 6TFS4DIFNB

    View full-size slide

  11. Α͋͘Δػೳ
    ຖճಉ͡Α͏ͳ࣮૷͸໘౗

    View full-size slide

  12. ϩδοΫʴσʔλϕʔε
    4%,

    View full-size slide


  13. Ϣʔβ؅ཧ
    σʔλετΞ
    ϑΝΠϧετΞ

    ϓογϡ௨஌
    εΫϦϓτ
    ձһ؅ཧ

    View full-size slide

  14. )5514ϕʔεͰͷΞΫηε
    3&45GVM"1*
    OPEFKT0CKFDUJWF$+BWB6OJUZ޲͚ͷެࣜ4%,
    3VCZ1)11ZUIPO9PKPͷඇެࣜ4%,
    χϑςΟΫϥ΢υNPCJMF
    CBDLFOE

    View full-size slide

  15. Πϯετʔϧ
    OQNJODNC4

    View full-size slide

  16. ೝূ
    var user = new ncmb.User();
    user
    .set("userName", req.body.userName)
    .set("password", req.body.password)
    .set("acl", acl)
    .signUpByAccount()
    .then(function(user) {
    res.status(201).json(user);
    })
    .catch(function(err) {
    res.status(401).json(err);
    })

    View full-size slide

  17. σʔλૢ࡞
    var post = new ncmb.DataStore("Post");
    var acl = new ncmb.Acl;
    acl.setPublicReadAccess(true);
    post.set('title', req.body.title);
    .set('body', req.body.body);
    .set('acl', acl);
    .save()
    .then(function(obj) {
    res.status(201).json(obj);
    })
    .catch(function(err) {
    res.status(401).json(err);
    })

    View full-size slide

  18. υΩϡϝϯτ
    IUUQNCDMPVEOJGUZDPNEPDDVSSFOU+BWB4DSJQU

    View full-size slide

  19. ࣭໰
    IUUQTHJUIVCDPN/*'5:$MPVE
    NCBBT6TFS$PNNVOJUZJTTVFT

    View full-size slide

  20. ίετ
    ݄ؒສ"1*ΞΫηε·Ͱແྉ
    ݄ؒສ"1*ΞΫηε·Ͱ݄ສԁ

    View full-size slide

  21. αϯϓϧ
    IUUQTHJUIVCDPN/$.#.BOJB
    /PEFKTʹΑΔϒϩά
    &MFDUSPOʹΑΔ؅ཧը໘
    3VCZ4%,ʢඇެࣜʣ
    ͦͷଞ৭ʑ

    View full-size slide

  22. NCBBT ݕࡧ
    ͋Γ͕ͱ͏͍͟͝·ͨ͠

    View full-size slide