{"id":11311,"date":"2017-06-29T15:00:44","date_gmt":"2017-06-29T06:00:44","guid":{"rendered":"http:\/\/sitest.jp\/blog\/?p=11311"},"modified":"2017-06-28T21:05:14","modified_gmt":"2017-06-28T12:05:14","slug":"firebase-%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%82%b5%e3%82%a4%e3%83%88%e3%82%92%e7%84%a1%e6%96%99%e3%81%a7%e5%85%ac%e9%96%8b%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b","status":"publish","type":"post","link":"https:\/\/sitest.jp\/blog\/?p=11311","title":{"rendered":"Firebase \u3092\u4f7f\u3063\u3066\u30b5\u30a4\u30c8\u3092\u7121\u6599\u3067\u516c\u958b\u3057\u3066\u307f\u308b"},"content":{"rendered":"<p>\u4eca\u56de\u306f\u3001Google \u306e\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9 Firebase \u3092\u4f7f\u3063\u3066\u9759\u7684\u306a\u30b5\u30a4\u30c8\u3092\u516c\u958b\u3059\u308b\u65b9\u6cd5\u3092\u304a\u4f1d\u3048\u3057\u307e\u3059\u3002<br \/>\n\u30b5\u30af\u30c3\u3068\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3092\u516c\u958b\u3057\u305f\u3044\u3051\u3069\u3001Google \u30b5\u30a4\u30c8\u306e\u3088\u3046\u306b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u304b\u3089\u3067\u306f\u306a\u304f\u3001\u81ea\u5206\u3067\u66f8\u3044\u305f HTML\u30fbCSS \u3092\u4f7f\u3044\u305f\u3044\u3001\u3068\u3044\u3046\u65b9\u306b\u7279\u306b\u304a\u85a6\u3081\u3067\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<div class=\"frame_headding\">\n<h3 style=\"text-align: left;\">Firebase \u3068\u306f\uff1f<\/h3>\n<\/div>\n<p><a href=\"https:\/\/firebase.google.com\/\" rel=\"nofollow\">Firebase<\/a> \u306f Google \u304c\u63d0\u4f9b\u3059\u308b mBaas \u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002<br \/>\n\u30e2\u30d0\u30a4\u30eb\u30a2\u30d7\u30ea\u3092\u4f5c\u308b\u969b\u306b\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3067\u5fc5\u8981\u306b\u306a\u308b\u6a5f\u80fd\u3092\u307e\u3068\u3081\u3066\u63d0\u4f9b\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n<p>\u9759\u7684\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306e\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u3082\u53ef\u80fd\u3067\u3001HTTPS \u5bfe\u5fdc\u306e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u304c\u7121\u6599\u304b\u3089\u516c\u958b\u3067\u304d\u308b\u306e\u304c\u5b09\u3057\u3044\u3068\u3053\u308d\u3067\u3059\u3002<\/p>\n<p>\u6700\u8fd1\u3001Cloud Functions \u306b\u3082\u5bfe\u5fdc\u3057\u3001\u3067\u304d\u308b\u3053\u3068\u306e\u5e45\u304c\u307e\u305f\u5e83\u304c\u308a\u307e\u3057\u305f\u3002<\/p>\n<div class=\"frame_headding\">\n<h3 style=\"text-align: left;\">\u4e3b\u306a\u6a5f\u80fd<\/h3>\n<\/div>\n<p>\u30fb\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9<br \/>\n\u30fb\u30e6\u30fc\u30b6\u30fc\u8a8d\u8a3c<br \/>\n\u30fb\u30af\u30e9\u30a6\u30c9\u30b9\u30c8\u30ec\u30fc\u30b8<br \/>\n\u30fb\u30db\u30b9\u30c6\u30a3\u30f3\u30b0<br \/>\n\u30fbCloud Functions<\/p>\n<p>\u306a\u3069\u3001\u958b\u767a\u7cfb\u306e\u4e3b\u8981\u306a\u6a5f\u80fd\u3060\u3051\u30d4\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u3066\u3082\u8272\u3005\u3068\u63c3\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u306f\u305d\u306e\u4e2d\u306e\u4e00\u3064\u3067\u3042\u308b\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u6a5f\u80fd\u3092\u4f7f\u3063\u3066\u3001\u30b5\u30a4\u30c8\u3092\u516c\u958b\u3059\u308b\u624b\u9806\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<div class=\"frame_headding\">\n<h3 style=\"text-align: left;\">\u6599\u91d1<\/h3>\n<\/div>\n<p>\u672c\u984c\u306b\u5165\u308b\u524d\u306b\u3001\u6c17\u306b\u306a\u308b\u6599\u91d1\u3092\u78ba\u8a8d\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<br \/>\n\u7121\u6599\u3067\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u3067\u304d\u308b\u6761\u4ef6\u306f\u3001\u5bb9\u91cf\u304c 1GB \u307e\u3067\u3067\u3001\u6708\u9593\u306e\u8ee2\u9001\u91cf\u306f 10GB \u307e\u3067\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u307e\u305f\u3001\u72ec\u81ea\u30c9\u30e1\u30a4\u30f3\u3084 SSL \u306e\u5229\u7528\u3082\u7121\u6599\u3067\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u5bb9\u91cf\u304c\u8d85\u3048\u305f\u5834\u5408\u306e\u6599\u91d1\u306f<a href=\"https:\/\/firebase.google.com\/pricing\/\" rel=\"nofollow\">\u3053\u3061\u3089<\/a>\u304b\u3089\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u8ee2\u9001\u91cf\u306a\u3069\u306e\u5229\u7528\u72b6\u6cc1\u306f\u3001Firebase \u306e\u7ba1\u7406\u753b\u9762\u304b\u3089\u3044\u3064\u3067\u3082\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"frame_headding\">\n<h3 style=\"text-align: left;\">\u4e8b\u524d\u6e96\u5099<\/h3>\n<\/div>\n<p>Firebase \u306f Google \u30a2\u30ab\u30a6\u30f3\u30c8\u3055\u3048\u3042\u308c\u3070\u3001\u3059\u3050\u306b\u5229\u7528\u3067\u304d\u307e\u3059\u3002<br \/>\n\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u53d6\u5f97\u3057\u3066\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u307e\u305f\u3001Firebase \u3067\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u3059\u308b\u306b\u306f\u3001Firebase CLI\uff08\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3 \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\uff09\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\nnpm \u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306e\u3067\u3001\u3082\u3057\u307e\u3060\u306e\u5834\u5408\u306f Node.js \u3068 npm \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><a href=\"https:\/\/nodejs.org\/ja\/\" rel=\"nofollow\">Node.js<\/a><\/p>\n<div class=\"frame_headding\">\n<h3 style=\"text-align: left;\">\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4f5c\u6210<\/h3>\n<\/div>\n<p>\u307e\u305a\u306f\u3001<a href=\"https:\/\/console.firebase.google.com\/\" rel=\"nofollow\">Firebase \u30b3\u30f3\u30bd\u30fc\u30eb<\/a>\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n\u300c\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u8ffd\u52a0\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3068\u3001\u4f5c\u6210\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u304c\u51fa\u3066\u304d\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" src=\"https:\/\/storage.googleapis.com\/sitest-wp\/blog\/wp-content\/uploads\/2017\/06\/5309AD16-3307-43AC-86D9-FFD8ED8D1F23-300x272.png\" alt=\"\" width=\"300\" height=\"272\" class=\"alignnone size-medium wp-image-11403\" \/><\/p>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d\u3068\u56fd\u3092\u8a2d\u5b9a\u3057\u3066\u4f5c\u6210\u30dc\u30bf\u30f3\u3092\u62bc\u305b\u3070\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u65b0\u3057\u304f\u8ffd\u52a0\u3055\u308c\u307e\u3059\u3002<\/p>\n<div class=\"frame_headding\">\n<h3 style=\"text-align: left;\">Firebase CLI \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<\/div>\n<pre><code>$ npm install -g firebase-tools<\/code><\/pre>\n<p>\u4e0a\u8a18\u3092\u5b9f\u884c\u3057\u3066\u3001Firebase \u30c4\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001<\/p>\n<pre><code>$ firebase login<\/code><\/pre>\n<p>\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3092\u884c\u3046\u3053\u3068\u3067 Firebase \u30a2\u30ab\u30a6\u30f3\u30c8\u3068\u63a5\u7d9a\u3055\u308c\u3001\u5148\u307b\u3069\u30d6\u30e9\u30a6\u30b6\u4e0a\u3067\u4f5c\u6210\u3057\u305f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code>$ firebase list <\/code><\/pre>\n<p>\u3092\u5b9f\u884c\u3059\u308c\u3070\u3001\u4f5c\u6210\u3057\u305f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u30ea\u30b9\u30c8\u306b\u8868\u793a\u3055\u308c\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<div class=\"frame_headding\">\n<h3 style=\"text-align: left;\">\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8a2d\u5b9a<\/h3>\n<\/div>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u305f\u3044\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3001\u79fb\u52d5\u3057\u3066\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre><code>$ firebase init<\/code><\/pre>\n<p style=\"margin-top:20px;\"><img loading=\"lazy\" src=\"https:\/\/storage.googleapis.com\/sitest-wp\/blog\/wp-content\/uploads\/2017\/06\/F56762A2-F9DE-490C-86DB-03F162B05862.png\" alt=\"\" width=\"566\" height=\"140\" class=\"alignnone size-full wp-image-11392\" \/><\/p>\n<p>\u3059\u308b\u3068\u3001\u4e0a\u8a18\u306e\u3088\u3046\u306a\u71b1\u3044\u8868\u793a\u3068\u3068\u3082\u306b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8a2d\u5b9a\u30b9\u30c6\u30c3\u30d7\u3078\u3068\u9032\u307f\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001\u3053\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u4f7f\u7528\u3059\u308b Firebase \u306e\u6a5f\u80fd\u3092\u805e\u304b\u308c\u308b\u306e\u3067\u3001\u4eca\u56de\u306f\u300cHosting\u300d\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u4ed6\u306e\u6a5f\u80fd\u306f\u30c1\u30a7\u30c3\u30af\u3057\u3066\u3082\u3057\u306a\u304f\u3066\u3082\u69cb\u3044\u307e\u305b\u3093\u3002<\/p>\n<p>\u6b21\u306b\u3001\u3069\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u7d10\u4ed8\u3051\u308b\u304b\u3092\u805e\u304b\u308c\u307e\u3059\u306e\u3067\u3001\u5148\u307b\u3069\u4f5c\u6210\u3057\u305f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u5f8c\u306f\u3001\u516c\u958b\u30d5\u30a1\u30a4\u30eb\u3092\u7f6e\u304f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3084\u3001\u30b7\u30f3\u30b0\u30eb\u30da\u30fc\u30b8\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u3057\u3066\u52d5\u4f5c\u3055\u305b\u308b\u304b\u306a\u3069\u3092\u805e\u304b\u308c\u307e\u3059\u304c\u3001\u305d\u306e\u307e\u307e\u30a8\u30f3\u30bf\u30fc\u30ad\u30fc\u3092\u62bc\u3057\u3066\u3044\u3051\u3070OK\u3067\u3059\u3002<\/p>\n<div class=\"frame_headding\">\n<h3 style=\"text-align: left;\">\u30c7\u30d7\u30ed\u30a4\uff08\u516c\u958b\uff09\u3057\u3066\u307f\u308b<\/h3>\n<\/div>\n<p>\u3053\u308c\u3067\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u76f4\u4e0b\u306b<br \/>\n\u30fbfirebase.json<br \/>\n\u30fb\/public\/<br \/>\n\u304c\u751f\u6210\u3055\u308c\u305f\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>public \u306e\u4e2d\u306b\u306f index.html \u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u3053\u308c\u3092\u7de8\u96c6\u3059\u308c\u3070\u6e96\u5099\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<pre><code>$ firebase deploy<\/code><\/pre>\n<p>\u3092\u5b9f\u884c\u3057\u3066\u3001\u30b5\u30a4\u30c8\u3092\u516c\u958b\u3057\u307e\u3057\u3087\u3046\uff01<\/p>\n<p>\u300cHosting URL: https:\/\/~\u300d\u3068\u3044\u3046\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u306e\u304c\u30b5\u30a4\u30c8\u306e URL \u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u30d6\u30e9\u30a6\u30b6\u306b\u6253\u3061\u8fbc\u3081\u3070\u3001\u5b9f\u969b\u306b\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u30da\u30fc\u30b8\u304c\u78ba\u8a8d\u3067\u304d\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<div class=\"frame_headding\">\n<h3 style=\"text-align: left;\">\u307e\u3068\u3081<\/h3>\n<\/div>\n<p>Firebase \u3092\u4f7f\u3046\u3068\u3001\u304a\u624b\u8efd\u306b\u9759\u7684\u30b5\u30a4\u30c8\u306e\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u304c\u53ef\u80fd\u3067\u3059\u3002<br \/>\n\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3092\u5c11\u3057\u4f7f\u3046\u5fc5\u8981\u306f\u3042\u308a\u307e\u3059\u304c\u3001FTP \u30bd\u30d5\u30c8\u304c\u8981\u3089\u306a\u3044\u306e\u3067\u66f4\u65b0\u3082\u7c21\u5358\u3067\u3059\u306d\u3002<br \/>\n\u3088\u304b\u3063\u305f\u3089\u4e00\u5ea6\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u56de\u306f\u3001Google \u306e\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9 Firebase \u3092\u4f7f\u3063\u3066\u9759\u7684\u306a\u30b5\u30a4\u30c8\u3092\u516c\u958b\u3059\u308b\u65b9\u6cd5\u3092\u304a\u4f1d\u3048\u3057\u307e\u3059\u3002 \u30b5\u30af\u30c3\u3068\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3092\u516c\u958b\u3057\u305f\u3044\u3051\u3069\u3001Google \u30b5\u30a4\u30c8\u306e\u3088\u3046\u306b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u304b\u3089\u3067\u306f\u306a\u304f\u3001\u81ea\u5206\u3067\u66f8\u3044\u305f HTML\u30fbCSS \u3092\u4f7f\u3044\u305f\u3044\u3001\u3068\u3044\u3046\u65b9\u306b\u7279\u306b\u304a\u85a6\u3081\u3067\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":11410,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[36,27],"tags":[],"acf":false,"_links":{"self":[{"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/posts\/11311"}],"collection":[{"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/comments?post=11311"}],"version-history":[{"count":26,"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/posts\/11311\/revisions"}],"predecessor-version":[{"id":11417,"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/posts\/11311\/revisions\/11417"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/media\/11410"}],"wp:attachment":[{"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/media?parent=11311"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/categories?post=11311"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/tags?post=11311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}