{"id":53506,"date":"2023-12-19T01:32:53","date_gmt":"2023-12-18T16:32:53","guid":{"rendered":"https:\/\/kinsta.com\/jp\/?p=53506&#038;preview=true&#038;preview_id=53506"},"modified":"2024-02-03T03:58:44","modified_gmt":"2024-02-02T18:58:44","slug":"create-express-app","status":"publish","type":"post","link":"https:\/\/kinsta.com\/jp\/blog\/create-express-app\/","title":{"rendered":"\u3010\u6700\u901f5\u5206\u3011Express\u3092\u4f7f\u3063\u3066\u7d20\u65e9\u304fNode.js\u30a2\u30d7\u30ea\u3092\u69cb\u7bc9\uff06\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>\u4e16\u754c\u3067<a href=\"https:\/\/github.com\/VanoDevium\/node-framework-stars\" target=\"_blank\" rel=\"noopener noreferrer\">\u6700\u3082\u5e83\u304f\u4f7f\u7528\u3055\u308c\u3066\u3044\u308bNode.js\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af<\/a>\u3067\u3042\u308bExpress\u306f\u3001\u958b\u767a\u8005\u306b\u3088\u308bJavaScript\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u306e\u69cb\u7bc9\u3092\u5f8c\u62bc\u3057\u3059\u308b\u512a\u308c\u3082\u306e\u3067\u3059\u3002\u3053\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u306f\u3001\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u958b\u767a\u8005\u304c\u5fc5\u8981\u3068\u3059\u308b\u3042\u3089\u3086\u308b\u6a5f\u80fd\u304c\u7d44\u307f\u8fbc\u307e\u308c\u3066\u304a\u308a\u3001\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3068\u30a6\u30a7\u30d6\u30ea\u30af\u30a8\u30b9\u30c8\u3078\u306e\u5fdc\u7b54\u304c\u7c21\u5358\u306b\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/kinsta.com\/jp\/blog\/what-is-express-js\/\">Express.js\u306b\u3064\u3044\u3066\u77e5\u3063\u3066\u304a\u304f\u3079\u304d<\/a>\u3053\u3068\u306b\u3064\u3044\u3066\u306f\u3059\u3067\u306b\u307e\u3068\u3081\u3066\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3067\u306f\u3088\u308a\u5b9f\u8df5\u7684\u306a\u4f7f\u3044\u65b9\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002Express.js\u3092\u4f7f\u7528\u3057\u3066<a href=\"https:\/\/kinsta.com\/jp\/blog\/what-is-node-js\/\">Node.js<\/a>\u30a2\u30d7\u30ea\u306e\u30b5\u30f3\u30d7\u30eb\u3092\u4f5c\u6210\u3057\u3001\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u65b9\u6cd5\u3092\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<div><\/div><kinsta-auto-toc heading=\"Table of Contents\" exclude=\"last\" list-style=\"arrow\" selector=\"h2\" count-number=\"-1\"><\/kinsta-auto-toc>\n<h2>Express.js\u3067\u7d20\u65e9\u304f\u30a2\u30d7\u30ea\u3092\u958b\u767a\u3059\u308b<\/h2>\n<p>\u4eca\u56de\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3078\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u3051\u53d6\u308a\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u4f7f\u7528\u3057\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u547c\u3073\u51fa\u3057\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089 JSON \u3068\u3057\u3066\u60c5\u5831\u3092\u8fd4\u3059\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u69cb\u7bc9\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h3>\u524d\u63d0\u6761\u4ef6<\/h3>\n<p>\u3053\u306e\u8aac\u660e\u3092\u8aad\u307f\u9032\u3081\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u3082\u306e\u304cPC\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/kinsta.com\/jp\/blog\/how-to-install-node-js\/\">Node.js<\/a>\u3068<a href=\"https:\/\/kinsta.com\/jp\/blog\/how-to-install-node-js\/\">Node Package Manager<\/a>\uff08npm\uff09\u2500JavaScript\u306b\u4e0d\u53ef\u6b20\u306a\u5b9f\u884c\u74b0\u5883\u3068\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u30fc<\/li>\n<li><a href=\"https:\/\/kinsta.com\/jp\/blog\/install-git\/\" target=\"_blank\" rel=\"noopener noreferrer\">Git<\/a>\u2500\u5171\u540c\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u3092\u4fc3\u9032\u3059\u308b\u5206\u6563\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0<\/li>\n<\/ul>\n<h2>Express\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf\u30fc<\/h2>\n<p><a href=\"https:\/\/kinsta.com\/jp\/blog\/what-is-express-js\/#how-to-create-an-expressjs-app\">Express.js\u306b\u3064\u3044\u3066\u306e\u8aac\u660e<\/a>\u306b\u3042\u308b\u30d7\u30ed\u30bb\u30b9\u3092\u4f7f\u7528\u3057\u3066\u3001\u65e2\u5b58\u306eNode\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306bExpress\u3092\u8ffd\u52a0\u3067\u304d\u307e\u3059\u304c\u3001\u30bc\u30ed\u304b\u3089\u59cb\u3081\u308b\u5834\u5408\u306f\u3001<a href=\"https:\/\/expressjs.com\/en\/starter\/generator.html\" target=\"_blank\" rel=\"noopener noreferrer\">Express\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf\u30fc<\/a>\u3068\u3044\u3046\u3055\u3089\u306b\u7c21\u5358\u306a\u65b9\u6cd5\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>Express.js\u306e\u516c\u5f0fExpress\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf\u30fc\u306f\u3001\u8a00\u3046\u306a\u308c\u3070\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30b9\u30b1\u30eb\u30c8\u30f3\u3092\u751f\u6210\u3067\u304d\u308bNode\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u3059\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u3001<code>npx<\/code>\u30b3\u30de\u30f3\u30c9\uff08Node.js 8.2.0\u3067\u5229\u7528\u53ef\u80fd\uff09\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">mkdir express-application\nnpx express-generator<\/code><\/pre>\n<p>\u751f\u6210\u304c\u5b8c\u4e86\u3059\u308b\u3068\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u3001\u4f5c\u6210\u3055\u308c\u305f\u30d5\u30a9\u30eb\u30c0\/\u30d5\u30a1\u30a4\u30eb\u306e\u4e00\u89a7\u3068\u3001\u4f9d\u5b58\u95a2\u4fc2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306e\u30b3\u30de\u30f3\u30c9\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3001\u4f9d\u5b58\u95a2\u4fc2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">npm install<\/code><\/pre>\n<p>\u6b21\u306b\u3001\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">DEBUG=myapp:* npm start<\/code><\/pre>\n<p>\u30b9\u30b1\u30eb\u30c8\u30f3\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u306f\u3001\u57fa\u672c\u7684\u306a\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u3092\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3059\u308b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u30eb\u30fc\u30c8\u304c\u3042\u3089\u304b\u3058\u3081\u7d44\u307f\u8fbc\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3092\u30d6\u30e9\u30a6\u30b6\u3067\u898b\u308b\u306b\u306f\u3001<code>localhost:3000<\/code>\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>\u30b9\u30b1\u30eb\u30c8\u30f3Express\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u7406\u89e3\u3059\u308b<\/h3>\n<p>\u304a\u597d\u307f\u306e\u30b3\u30fc\u30c9\u30a8\u30c7\u30a3\u30bf\u3067Express\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u304f\u3068\u3001\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u9aa8\u683c\u3068\u306a\u308b\u57fa\u672c\u69cb\u9020\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">\/\n|-- \/node_modules\n|-- \/public\n|-- \/routes\n    |-- index.js\n    |-- users.js\n|-- \/views\n    |-- error.jade\n    |-- index.jade\n    |-- layout.jade\n|-- app.js\n|-- package.json<\/code><\/pre>\n<ul>\n<li><strong>node_modules<\/strong>\uff1a\u3053\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u3059\u3079\u3066\u306e\u4f9d\u5b58\u95a2\u4fc2\u3068\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/li>\n<li><strong>public<\/strong>\uff1aCSS\u3001JavaScript\u3001\u753b\u50cf\u306a\u3069\u306e\u9759\u7684\u30a2\u30bb\u30c3\u30c8\u304c\u683c\u7d0d\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u30d6\u30e9\u30a6\u30b6\u306b\u76f4\u63a5\u914d\u4fe1\u3055\u308c\u307e\u3059\u3002<\/li>\n<li><strong>routes<\/strong>\uff1a\u69d8\u3005\u306a\u30eb\u30fc\u30c8\u3092\u5b9a\u7fa9\u3057\u3001\u5404URL\u304b\u3089\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u51e6\u7406\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u304c\u3053\u3053\u306b\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002<\/li>\n<li><strong>views<\/strong>\uff1a\u30b5\u30fc\u30d0\u30fc\u304c\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3059\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3084\u30d3\u30e5\u30fc\u304c\u683c\u7d0d\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u4f8b\u3067\u8a00\u3048\u3070\u3001<strong>error.jade<\/strong>\u3001<strong>index.jade<\/strong>\u3001<strong>layout.jade<\/strong>\u306f\u3001Jade\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u8a00\u8a9e\u3067\u8a18\u8ff0\u3055\u308c\u305f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3067\u3059\u3002\u3053\u308c\u3089\u306f\u3001\u52d5\u7684\u306a\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u69cb\u9020\u5316\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u306b\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3059\u308b\u5f79\u5272\u3092\u679c\u305f\u3057\u307e\u3059\u3002<\/li>\n<li><strong>app.js<\/strong>\uff1a\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u901a\u5e38\u3001Express\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u30dd\u30a4\u30f3\u30c8\u3068\u3057\u3066\u6a5f\u80fd\u3057\u307e\u3059\u3002\u30b5\u30fc\u30d0\u30fc\u306e\u8a2d\u5b9a\u3001\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3001\u30eb\u30fc\u30c8\u306e\u5b9a\u7fa9\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u3068\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u51e6\u7406\u304c\u884c\u308f\u308c\u307e\u3059\u3002<\/li>\n<li><strong>package.json<\/strong>\uff1a\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u95a2\u3059\u308b\u30e1\u30bf\u30c7\u30fc\u30bf\u304c\u542b\u307e\u308c\u307e\u3059\u3002\u4f9d\u5b58\u95a2\u4fc2\u3084\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u69cb\u6210\u306e\u7ba1\u7406\u306b\u6709\u7528\u3067\u3059\u3002<\/li>\n<\/ul>\n<h3>\u30eb\u30fc\u30c8\u51e6\u7406\u306b\u3064\u3044\u3066\u7406\u89e3\u3059\u308b<\/h3>\n<p>Express\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001<strong>routes<\/strong>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30eb\u30fc\u30c8\u304c\u500b\u5225\u306e\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u5b9a\u7fa9\u3055\u308c\u307e\u3059\u3002\u30d7\u30e9\u30a4\u30de\u30ea\u30eb\u30fc\u30c8\u306f\u3001\u3057\u3070\u3057\u3070\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u30eb\u30fc\u30c8\u3068\u547c\u3070\u308c\u3001<strong>routes\/index.js<\/strong>\u30d5\u30a1\u30a4\u30eb\u306b\u5b58\u5728\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u30eb\u30fc\u30c8\u304c<code>GET<\/code>\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u51e6\u7406\u3057\u3001\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u3088\u3063\u3066HTML\u3067\u751f\u6210\u3055\u308c\u305f\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u3092\u7528\u3044\u308b\u3053\u3068\u3067\u5fdc\u7b54\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001<code>GET<\/code>\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u3069\u306e\u3088\u3046\u306b\u51e6\u7406\u3055\u308c\u3001\u57fa\u672c\u7684\u306a\u30a6\u30a7\u30eb\u30ab\u30e0\u30da\u30fc\u30b8\u304c\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3055\u308c\u308b\u304b\u3092\u793a\u3057\u305f\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-javascript\">var express = require('express');\nvar router = express.Router();\n\n\/* \u30db\u30fc\u30e0\u30da\u30fc\u30b8\u3092\u53d6\u5f97\/GET *\/\nrouter.get('\/', function(req, res, next) {\n res.render('index', { title: 'Express' });\n});\n\nmodule.exports = router;<\/code><\/pre>\n<p>\u3053\u306e<code><a href=\"https:\/\/expressjs.com\/en\/api.html#res.render\" target=\"_blank\" rel=\"noopener noreferrer\">res.render()<\/a><\/code>\u95a2\u6570\u3092<code><a href=\"https:\/\/expressjs.com\/en\/api.html#res.send\" target=\"_blank\" rel=\"noopener noreferrer\">res.send()<\/a><\/code>\u306b\u5909\u66f4\u3059\u308b\u3068\u3001\u30ec\u30b9\u30dd\u30f3\u30b9\u30bf\u30a4\u30d7\u304cHTML\u304b\u3089JSON\u306b\u5909\u308f\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-javascript\">var express = require('express');\nvar router = express.Router();\n\nrouter.get('\/', function(req, res, next) {\n  res.send({ key: 'value' });\n});\n\nmodule.exports = router;<\/code><\/pre>\n<p>\u3053\u306e\u6a5f\u80fd\u3092\u62e1\u5f35\u3059\u308b\u3068\u3001\u540c\u3058\u30d5\u30a1\u30a4\u30eb\u306b\u5225\u306e\u30eb\u30fc\u30c8\u3092\u8ffd\u52a0\u3057\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u53d7\u3051\u5165\u308c\u308b\u65b0\u3057\u3044\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u5c0e\u5165\u3067\u304d\u307e\u3059\u3002\u6b21\u306e\u30b3\u30fc\u30c9\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u5225\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3067\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u51e6\u7406\u3057\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u62bd\u51fa\u3057\u3066\u3001\u305d\u306e\u5024\u306b\u3064\u3044\u3066JSON\u3067\u5fdc\u7b54\u3059\u308b\u4f8b\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-javascript\">\/* \u65b0\u3057\u3044\u30ea\u30bd\u30fc\u30b9\u3092\u53d6\u5f97\/GET *\/\nrouter.get('\/newEndpoint', function(req, res, next) {\n  res.send({ yourParam: req.query.someParam });\n});<\/code><\/pre>\n<p><code>localhost:3000\/newEndpoint?someParam=whatever<\/code>\u306b<code>GET<\/code>\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3059\u308b\u3068\u3001\u6587\u5b57\u5217 &#8220;whatever&#8221;\u3092\u542b\u3080JSON\u306e\u51fa\u529b\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<figure id=\"attachment_105526\" aria-describedby=\"caption-attachment-105526\" style=\"width: 1001px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-105526 size-full\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2023\/12\/sending-get-request-postman.png\" alt=\"GET\u30ea\u30af\u30a8\u30b9\u30c8\u2500Postman\u3092\u4f7f\u3063\u3066\u30ed\u30fc\u30ab\u30eb\u3067\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\" width=\"1001\" height=\"471\"><figcaption id=\"caption-attachment-105526\" class=\"wp-caption-text\">GET\u30ea\u30af\u30a8\u30b9\u30c8\u2500Postman\u3092\u4f7f\u3063\u3066\u30ed\u30fc\u30ab\u30eb\u3067\u5b9f\u884c\u3057\u3066\u307f\u308b<\/figcaption><\/figure>\n<aside role=\"note\" class=\"wp-block-kinsta-notice is-style-info\">\n            <h3>Info<\/h3>\n        <p>\u65b0\u3057\u3044\u5909\u66f4\u5185\u5bb9\u3092\u52b9\u679c\u7684\u306b\u5b9f\u88c5\u3059\u308b\u306b\u306f\u3001\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u3092\u518d\u8d77\u52d5\u3059\u308b\u3053\u3068\u304c\u4e0d\u53ef\u6b20\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<\/aside>\n\n<h2>Express\u3068Kinsta\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d0\u30fc<\/h2>\n<p>\u81ea\u5206\u306ePC\u5185\u3067\u30a6\u30a7\u30d6\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046\u306e\u306f\u7c21\u5358\u3067\u3059\u304c\u3001\u30a6\u30a7\u30d6\u958b\u767a\u306f\u30ed\u30fc\u30ab\u30eb\u30db\u30b9\u30c8\u304b\u3089\u96e2\u308c\u3066\u304b\u3089\u304c\u672c\u756a\u3067\u3059\u3002Kinsta\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304c\u5fc5\u8981\u306a\u5834\u5408\u3067\u3042\u3063\u3066\u3082\u3001\u30a6\u30a7\u30d6\u3078\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c7\u30d7\u30ed\u30a4\u3092\u7c21\u5358\u306b\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u3067\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u6a5f\u80fd\u3092\u7d71\u5408\u3057\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4e21\u65b9\u3092\u30a6\u30a7\u30d6\u306b\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u3053\u3068\u3067\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u6a5f\u80fd\u3092\u62e1\u5f35\u3057\u3001\u3069\u306e\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u304b\u3089\u3067\u3082\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><a href=\"https:\/\/sevalla.com\/application-hosting\/\">Kinsta\u306e\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d0\u30fc<\/a>\u306bExpress\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u524d\u306b\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30b3\u30fc\u30c9\u3068\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u629e\u3057\u305fGit\u30b5\u30fc\u30d3\u30b9\uff08<a href=\"https:\/\/docs.sevalla.com\/applications\/git\/bitbucket#grant-access-to-the-kinsta-bitbucket-application\">Bitbucket<\/a>\u3001<a href=\"https:\/\/docs.sevalla.com\/applications\/git\/github#authenticate-and-authorize\">GitHub<\/a>\u3001\u307e\u305f\u306f<a href=\"https:\/\/docs.sevalla.com\/applications\/git\/gitlab#authorize-the-kinsta-gitlab-application\">GitLab<\/a>\uff09\u306b<a href=\"https:\/\/kinsta.com\/jp\/blog\/how-to-push-code-to-github\/\">\u30d7\u30c3\u30b7\u30e5\u3059\u308b<\/a>\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b<strong>.gitignore<\/strong>\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001\u00a0 \u305d\u3053\u3067<code>node_modules<\/code> \u3092\u6271\u3046\u3088\u3046\u306b\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u7279\u5b9a\u306e\u30d5\u30a1\u30a4\u30eb\u3092Git\u30b5\u30fc\u30d3\u30b9\u306b\u30d7\u30c3\u30b7\u30e5\u305b\u305a\u306b\u6e08\u307f\u307e\u3059\u3002<\/p>\n<p>\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8a2d\u5b9a\u3057\u305f\u3089\u3001\u4ee5\u4e0b\u306e\u624b\u9806\u306b\u5f93\u3063\u3066\u3001Express\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092Kinsta\u306b\u30c7\u30d7\u30ed\u30a4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ol start=\"1\">\n<li>\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u304b\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u3066<a href=\"https:\/\/my.kinsta.com\/?lang=ja\" target=\"_blank\" rel=\"noopener noreferrer\">MyKinsta<\/a>\u3092\u8868\u793a<\/li>\n<li>Git\u30b5\u30fc\u30d3\u30b9\u3067Kinsta\u3092\u8a8d\u8a3c\u3059\u308b<\/li>\n<li>\u5de6\u30b5\u30a4\u30c9\u30d0\u30fc\u306e\u300c<strong>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3<\/strong>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001\u300c<strong>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4f5c\u6210<\/strong>\u300d\u3092\u30af\u30ea\u30c3\u30af<\/li>\n<li>\u30c7\u30d7\u30ed\u30a4\u3057\u305f\u3044\u30ea\u30dd\u30b8\u30c8\u30ea\u3068\u30d6\u30e9\u30f3\u30c1\u3092\u9078\u629e<\/li>\n<li>\u30a2\u30d7\u30ea\u306b\u4e00\u610f\u306e\u540d\u524d\u3092\u5272\u308a\u5f53\u3066\u3001\u300c<strong>\u30c7\u30fc\u30bf\u30bb\u30f3\u30bf\u30fc\u306e\u6240\u5728\u5730<\/strong>\u300d\u3092\u9078\u629e<\/li>\n<li>\u30d3\u30eb\u30c9\u74b0\u5883\u3092\u8a2d\u5b9a\uff08\u3053\u306e\u30c7\u30e2\u3067\u306e\u63a8\u5968\u2500\u300c<strong>Standard\u30d3\u30eb\u30c9\u30de\u30b7\u30f3<\/strong>\u300d\u3068\u300c<strong><a href=\"https:\/\/docs.sevalla.com\/applications\/build-options\/nixpacks\">Nixpacks<\/a>\u3092\u4f7f\u7528\u3057\u3066\u30b3\u30f3\u30c6\u30ca\u30a4\u30e1\u30fc\u30b8\u3092\u8a2d\u5b9a<\/strong>\u300d\u3092\u9078\u629e\uff09<\/li>\n<li>\u3059\u3079\u3066\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u8a2d\u5b9a\u3092\u4f7f\u7528\u3057\u3001\u304a\u652f\u6255\u3044\u60c5\u5831\u306a\u3069\u3092\u5165\u529b\u3057\u305f\u4e0a\u3067\u300c<strong>\u4eca\u3059\u3050\u30c7\u30d7\u30ed\u30a4\u3059\u308b<\/strong>\u300d\u3092\u30af\u30ea\u30c3\u30af<\/li>\n<\/ol>\n<p>Kinsta\u306f\u6a19\u6e96\u3067Express\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf\u30fc\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u3002\u4e0a\u8a18\u306e\u30b9\u30c6\u30c3\u30d7\u3092\u5b8c\u4e86\u3059\u308b\u3068\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u81ea\u52d5\u7684\u306b\u30d3\u30eb\u30c9\u3068\u30c7\u30d7\u30ed\u30a4\u30d7\u30ed\u30bb\u30b9\u304c\u59cb\u307e\u308a\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30d7\u30ed\u30a4\u753b\u9762\u306b\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c7\u30d7\u30ed\u30a4URL\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u306e\u524d\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u69cb\u7bc9\u3057\u305f\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u30c6\u30b9\u30c8\u3059\u308b\u305f\u3081\u306b\u3001<code>\/newEndpoint?someParam=whatever<\/code>\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>Express\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5<\/h2>\n<p>\u3042\u3089\u3086\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002Kinsta\u306e<a href=\"https:\/\/sevalla.com\/database-hosting\/\">\u30d5\u30eb\u30de\u30cd\u30fc\u30b8\u30c9\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b5\u30fc\u30d3\u30b9<\/a>\u3067\u306f\u7c21\u5358\u306b\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u7d9a\u3044\u3066\u306f\u3001Kinsta\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u3054\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<ol start=\"1\">\n<li>MyKinsta\u306e\u30b5\u30a4\u30c9\u30d0\u30fc\u306b\u3042\u308b\u300c<strong>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9<\/strong>\u300d\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002<\/li>\n<li><strong>\u300c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4f5c\u6210<\/strong>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002\u540d\u524d\u3092\u5165\u529b\u3057\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u7a2e\u985e\u3092\u9078\u629e\u3057\u3066\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u8a73\u7d30\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li><strong>\u300cPostgreSQL<\/strong>\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u300c<strong>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30e6\u30fc\u30b6\u30fc\u540d<\/strong>\u300d<strong>\u3068\u300c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e<\/strong><strong>\u30d1\u30b9\u30ef\u30fc\u30c9<\/strong>\u300d\u304c\u81ea\u52d5\u3067\u751f\u6210\u3055\u308c\u307e\u3059\u3002\n<p><figure id=\"attachment_105526\" aria-describedby=\"caption-attachment-105526\" style=\"width: 1001px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-105526 size-full\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2023\/12\/creating-db-mykinsta.png\" alt=\"The MyKinsta database configuration step of adding a new database\" width=\"1001\" height=\"471\"><figcaption id=\"caption-attachment-105526\" class=\"wp-caption-text\">\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u8ffd\u52a0\u3059\u308b\u2500MyKinsta\u3067\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u69cb\u6210<\/figcaption><\/figure><\/li>\n<li>Express\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30db\u30b9\u30c8\u3057\u305f\u306e\u3068\u540c\u3058\u300c<strong>\u30c7\u30fc\u30bf\u30bb\u30f3\u30bf\u30fc\u306e\u6240\u5728\u5730<\/strong>\u300d\u3092\u9078\u629e\u3057\u3001\u5e0c\u671b\u306e\u30b5\u30a4\u30ba\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>\u304a\u652f\u6255\u3044\u60c5\u5831\u3092\u78ba\u8a8d\u3057\u3001\u300c<strong>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b<\/strong>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304c\u6b63\u5e38\u306b\u4f5c\u6210\u3055\u308c\u305f\u3089\u3001\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u306b\u9032\u307f\u307e\u3059\u3002<\/p>\n<ol start=\"1\">\n<li>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u8a73\u7d30\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002\u300c<strong>\u6982\u8981<\/strong>\u300d\u30da\u30fc\u30b8\u3067\u3001\u300c<strong>\u5185\u90e8\u63a5\u7d9a<\/strong>\u300d\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002<\/li>\n<li>\u8a72\u5f53\u3059\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/li>\n<li><strong>\u300c\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3078\u306e\u74b0\u5883\u5909\u6570\u306e\u8ffd\u52a0<\/strong>\u300d\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u307e\u3059\u3002<\/li>\n<li>\u300c<strong>\u63a5\u7d9a\u3092\u8ffd\u52a0<\/strong>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u4f5c\u6210\u3057\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u63a5\u7d9a\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<p>\u6b21\u306b\u3001\u4f5c\u6210\u3057\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u63a5\u7d9a\u6587\u5b57\u5217\u3092\u30b3\u30d4\u30fc\u3057\u3066\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30c4\u30fc\u30eb\u3092\u4ecb\u3057\u3066\u63a5\u7d9a\u3057\u307e\u3059\u3002SQL\u63a5\u7d9a\u30c4\u30fc\u30eb\u3067\u3042\u308c\u3070\u4f55\u3067\u3082\u69cb\u3044\u307e\u305b\u3093\u304c\u3001\u3053\u3053\u3067\u306f<a href=\"https:\/\/www.beekeeperstudio.io\/\" target=\"_blank\" rel=\"noopener noreferrer\">Beekeeper<\/a>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u30a2\u30d7\u30ea\u3092\u958b\u304d\u3001\u300cImport from URL\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u63a5\u7d9a\u6587\u5b57\u5217\u3092\u8cbc\u308a\u4ed8\u3051\u300cImport\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002\u3053\u308c\u3067\u3001\u4f5c\u6210\u3057\u305f\u3070\u304b\u308a\u306eKinsta\u3067\u30db\u30b9\u30c8\u3059\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067SQL\u3092\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30c4\u30fc\u30eb\u7d4c\u7531\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5bfe\u3057\u3066SQL\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u5b9f\u884c\u3057\u3001\u5358\u4e00\u306e\u30a8\u30f3\u30c8\u30ea\u3092\u6301\u3064\u57fa\u672c\u7684\u306a\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-sql\">CREATE TABLE \"States\"\n( id integer CONSTRAINT states_pk PRIMARY KEY,\n  state_name varchar(100),\n  capital varchar(100),\n  state_bird varchar(100),\n  \"createdAt\" TIMESTAMPTZ NOT NULL DEFAULT NOW(),\n  \"updatedAt\" TIMESTAMPTZ NOT NULL DEFAULT NOW()\n);\n\nINSERT INTO \"States\"\nVALUES(1, 'ohio', 'columbus', 'cardinal');<\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">npm install sequelize pg<\/code><\/pre>\n<p><code><a href=\"https:\/\/www.npmjs.com\/package\/sequelize\" target=\"_blank\" rel=\"noopener noreferrer\">sequelize<\/a><\/code>\u306fNode.js\u306eORM\u3067\u3001<code><a href=\"https:\/\/www.npmjs.com\/package\/pg\" target=\"_blank\" rel=\"noopener noreferrer\">pg<\/a><\/code>\u306fPostgreSQL\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u3057\u3066\u6a5f\u80fd\u3057\u3001Node.js\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068 PostgreSQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u9593\u306e\u3084\u308a\u53d6\u308a\u3092\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001<code>id<\/code>\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u6301\u3064<code>GET<\/code>\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u3051\u4ed8\u3051\u3001\u305d\u306e<code>id<\/code>\u306b\u95a2\u9023\u4ed8\u3051\u3089\u308c\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u60c5\u5831\u3092\u8fd4\u3059\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u306b\u306f\u3001<strong>index.js<\/strong>\u30d5\u30a1\u30a4\u30eb\u306b\u5909\u66f4\u3092\u52a0\u3048\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-javascript\">var express = require('express');\nvar router = express.Router();\nconst { Sequelize, DataTypes } = require('sequelize');\nconst sequelize = new Sequelize(process.env.CONNECTION_URI, {\n  dialect: 'postgres',\n  protocol: 'postgres',\n});\n\nconst State = sequelize.define('State', {\n  \/\/ \u30e2\u30c7\u30eb\u5c5e\u6027\u3092\u3053\u3053\u3067\u5b9a\u7fa9\n  state_name: {\n  type: DataTypes.STRING,\n  allowNull: true,\n  unique: false\n  },\n  capital: {\n  type: DataTypes.STRING,\n  allowNull: true,\n  unique: false\n  },\n  state_bird: {\n  type: DataTypes.STRING,\n  allowNull: true,\n  unique: false\n  },\n}, {\n  \/\/ \u4ed6\u306e\u30e2\u30c7\u30eb\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u3053\u3053\u306b\u8a18\u8ff0\n});\n\nasync function connectToDB() {\n  try {\n  sequelize.authenticate().then(async () =&gt; {\n  \/\/ await State.sync({ alter: true });\n  })\n  console.log('Connection has been established successfully.');\n  } catch (error) {\n  console.error('Unable to connect to the database:', error);\n  }\n}\nconnectToDB();\n\n\/* \u65b0\u3057\u3044\u30ea\u30bd\u30fc\u30b9\u3092\u53d6\u5f97\/GET  *\/\nrouter.get('\/state', async function(req, res, next) {\n  const state = await State.findByPk(req.query.id);\n  if (state) {\n   res.send(state)\n  } else {\n   res.status(404).send(\"state not found\");\n  }\n});\n\n\n\/* \u30db\u30fc\u30e0\u30da\u30fc\u30b8\u3092\u53d6\u5f97\/GET *\/\nrouter.get('\/', function(req, res, next) {\n  res.render('index', { title: 'Express' });\n});\n\n\/* \u65b0\u3057\u3044\u30ea\u30bd\u30fc\u30b9\u3092\u53d6\u5f97\/GET *\/\nrouter.get('\/newEndpoint', function(req, res, next) {\n  res.send({ yourParam: req.query.someParam });\n});\n\nmodule.exports = router;<\/code><\/pre>\n<p>\u30b3\u30fc\u30c9\u306e\u5909\u66f4\u5185\u5bb9\u3092\u30b3\u30df\u30c3\u30c8\u3057\u3001Git\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u30d7\u30c3\u30b7\u30e5\u3057\u307e\u3059\u3002\u305d\u306e\u5f8c\u3001Kinsta\u306b\u624b\u52d5\u3067\u518d\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u304b\u3001\u81ea\u52d5\u30c7\u30d7\u30ed\u30a4\u3092\u5f85\u3061\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3067\u3001<code>id=1<\/code>\u3067<code>\/states<\/code>\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306b\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u72b6\u614b\u3092\u53d7\u3051\u53d6\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<figure id=\"attachment_105526\" aria-describedby=\"caption-attachment-105526\" style=\"width: 1001px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-105526 size-full\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2023\/12\/testing-complete-app.png\" alt=\"MyKinsta\u3067\u30db\u30b9\u30c8\u3059\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3078\u306eGET\u30ea\u30af\u30a8\u30b9\u30c8\" width=\"1001\" height=\"471\"><figcaption id=\"caption-attachment-105526\" class=\"wp-caption-text\">MyKinsta\u3067\u30db\u30b9\u30c8\u3059\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3078\u306eGET\u30ea\u30af\u30a8\u30b9\u30c8<\/figcaption><\/figure>\n<p>\u4ee5\u4e0a\u3067\u5b8c\u4e86\u3067\u3059\u3002<a href=\"https:\/\/github.com\/olawanlejoel\/express-skeleton-app\" target=\"_blank\" rel=\"noopener noreferrer\">\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30b3\u30fc\u30c9\u4e00\u5f0f\u306fGitHub<\/a>\u3067\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Express\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u7528\u3044\u305f\u7c21\u5358\u306aNode.js\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4f5c\u6210\u3068\u30c7\u30d7\u30ed\u30a4\u306e\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002Express\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf\u30fc\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u308f\u305a\u304b\u6570\u30b9\u30c6\u30c3\u30d7\u3067\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001<a href=\"https:\/\/sevalla.com\/application-hosting\/\">Kinsta\u306e\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d0\u30fc<\/a>\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c7\u30d7\u30ed\u30a4\u5408\u7406\u5316\u304c\u6357\u308a\u3001\u6700\u5c0f\u9650\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3067\u4f5c\u696d\u304c\u5b8c\u4e86\u3057\u307e\u3059\u3002<\/p>\n<p>Node.js\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u306b\u3046\u307e\u304fExpress\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u591a\u6a5f\u80fd\u6027\u3068\u5229\u4fbf\u6027\u3092\u6301\u3061\u8fbc\u3080\u3053\u3068\u304c\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002Kinsta\u3068\u7d44\u307f\u5408\u308f\u305b\u308c\u3070\u3001\u8a2d\u5b9a\u306b\u6642\u9593\u3092\u8cbb\u3084\u3059\u3053\u3068\u306a\u304f\u3001Express\u3068Node.js\u306e\u30e1\u30ea\u30c3\u30c8\u3092\u3044\u304b\u3093\u306a\u304f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u53cd\u6620\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Express\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf\u30fc\u306f\u6d3b\u7528\u3057\u3066\u3044\u307e\u3059\u304b\uff1f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u958b\u767a\u306b\u5229\u7528\u3057\u305f\u6642\u306e\u4f7f\u3044\u5fc3\u5730\u306f\u3044\u304b\u304c\u3067\u3057\u305f\u3067\u3057\u3087\u3046\u304b\uff1f\u4ee5\u4e0b\u306e\u30b3\u30e1\u30f3\u30c8\u6b04\u3067\u304a\u805e\u304b\u305b\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e16\u754c\u3067\u6700\u3082\u5e83\u304f\u4f7f\u7528\u3055\u308c\u3066\u3044\u308bNode.js\u30d5\u30ec\u30fc\u30e0\u30ef &#8230;<\/p>\n","protected":false},"author":199,"featured_media":53507,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kinsta_gated_content":false,"_kinsta_gated_content_redirect":"","footnotes":""},"tags":[],"topic":[778,792,800],"class_list":["post-53506","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","topic-javascript-tutorials","topic-node-js","topic-postgresql"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v24.6 (Yoast SEO v24.6) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010\u6700\u901f5\u5206\u3011Express\u3092\u4f7f\u3063\u3066\u7d20\u65e9\u304fNode.js\u30a2\u30d7\u30ea\u3092\u69cb\u7bc9\uff06\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u65b9\u6cd5\uff5c Kinsta\u00ae<\/title>\n<meta name=\"description\" content=\"\u3082\u306e\u306e5\u5206\u3067Express\u3092\u4f7f\u7528\u3057\u3066Node.js\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\uff06\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002Node.js\u5b66\u7fd2\u3084\u5fdc\u7528\u306e\u4e00\u3064\u306e\u4f8b\u3068\u3057\u3066\u3054\u6d3b\u7528\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kinsta.com\/jp\/blog\/create-express-app\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010\u6700\u901f5\u5206\u3011Express\u3092\u4f7f\u3063\u3066\u7d20\u65e9\u304fNode.js\u30a2\u30d7\u30ea\u3092\u69cb\u7bc9\uff06\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"\u3082\u306e\u306e5\u5206\u3067Express\u3092\u4f7f\u7528\u3057\u3066Node.js\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\uff06\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002Node.js\u5b66\u7fd2\u3084\u5fdc\u7528\u306e\u4e00\u3064\u306e\u4f8b\u3068\u3057\u3066\u3054\u6d3b\u7528\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kinsta.com\/jp\/blog\/create-express-app\/\" \/>\n<meta property=\"og:site_name\" content=\"Kinsta\u00ae\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-12-18T16:32:53+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-02T18:58:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/create-express-app.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"3042\" \/>\n\t<meta property=\"og:image:height\" content=\"1521\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeremy Holcombe\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:description\" content=\"\u3082\u306e\u306e5\u5206\u3067Express\u3092\u4f7f\u7528\u3057\u3066Node.js\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\uff06\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002Node.js\u5b66\u7fd2\u3084\u5fdc\u7528\u306e\u4e00\u3064\u306e\u4f8b\u3068\u3057\u3066\u3054\u6d3b\u7528\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/create-express-app.jpg\" \/>\n<meta name=\"twitter:creator\" content=\"@Kinsta_JP\" \/>\n<meta name=\"twitter:site\" content=\"@Kinsta_JP\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeremy Holcombe\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/create-express-app\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/create-express-app\/\"},\"author\":{\"name\":\"Jeremy Holcombe\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/4eee42881d7b5a73ebb4f58dd5223b21\"},\"headline\":\"\u3010\u6700\u901f5\u5206\u3011Express\u3092\u4f7f\u3063\u3066\u7d20\u65e9\u304fNode.js\u30a2\u30d7\u30ea\u3092\u69cb\u7bc9\uff06\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u65b9\u6cd5\",\"datePublished\":\"2023-12-18T16:32:53+00:00\",\"dateModified\":\"2024-02-02T18:58:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/create-express-app\/\"},\"wordCount\":165,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/create-express-app\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/create-express-app.jpg\",\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kinsta.com\/jp\/blog\/create-express-app\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/create-express-app\/\",\"url\":\"https:\/\/kinsta.com\/jp\/blog\/create-express-app\/\",\"name\":\"\u3010\u6700\u901f5\u5206\u3011Express\u3092\u4f7f\u3063\u3066\u7d20\u65e9\u304fNode.js\u30a2\u30d7\u30ea\u3092\u69cb\u7bc9\uff06\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u65b9\u6cd5\uff5c Kinsta\u00ae\",\"isPartOf\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/create-express-app\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/create-express-app\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/create-express-app.jpg\",\"datePublished\":\"2023-12-18T16:32:53+00:00\",\"dateModified\":\"2024-02-02T18:58:44+00:00\",\"description\":\"\u3082\u306e\u306e5\u5206\u3067Express\u3092\u4f7f\u7528\u3057\u3066Node.js\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\uff06\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002Node.js\u5b66\u7fd2\u3084\u5fdc\u7528\u306e\u4e00\u3064\u306e\u4f8b\u3068\u3057\u3066\u3054\u6d3b\u7528\u304f\u3060\u3055\u3044\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/create-express-app\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kinsta.com\/jp\/blog\/create-express-app\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/create-express-app\/#primaryimage\",\"url\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/create-express-app.jpg\",\"contentUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/create-express-app.jpg\",\"width\":3042,\"height\":1521},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/create-express-app\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/kinsta.com\/jp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Node.js\",\"item\":\"https:\/\/kinsta.com\/jp\/topics\/node-js\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"\u3010\u6700\u901f5\u5206\u3011Express\u3092\u4f7f\u3063\u3066\u7d20\u65e9\u304fNode.js\u30a2\u30d7\u30ea\u3092\u69cb\u7bc9\uff06\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u65b9\u6cd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kinsta.com\/jp\/#website\",\"url\":\"https:\/\/kinsta.com\/jp\/\",\"name\":\"Kinsta\u00ae\",\"description\":\"\u9ad8\u901f\u304b\u3064\u5805\u7262\u306a\u30d7\u30ec\u30df\u30a2\u30e0\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9\",\"publisher\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kinsta.com\/jp\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\",\"name\":\"Kinsta\",\"url\":\"https:\/\/kinsta.com\/jp\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg\",\"contentUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg\",\"width\":500,\"height\":500,\"caption\":\"Kinsta\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/\",\"https:\/\/x.com\/Kinsta_JP\",\"https:\/\/www.instagram.com\/kinstahosting\/\",\"https:\/\/www.linkedin.com\/company\/kinsta\/\",\"https:\/\/www.pinterest.com\/kinstahosting\/\",\"https:\/\/www.youtube.com\/c\/Kinsta\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/4eee42881d7b5a73ebb4f58dd5223b21\",\"name\":\"Jeremy Holcombe\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0e17001f3bb37dbbe54fceef9bb547fa?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0e17001f3bb37dbbe54fceef9bb547fa?s=96&d=mm&r=g\",\"caption\":\"Jeremy Holcombe\"},\"description\":\"Senior Editor at Kinsta, WordPress Web Developer, and Content Writer. Outside of all things WordPress, I enjoy the beach, golf, and movies. I also have tall people problems.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/jeremyholcombe\/\"],\"url\":\"https:\/\/kinsta.com\/jp\/blog\/author\/jeremyholcombe\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u3010\u6700\u901f5\u5206\u3011Express\u3092\u4f7f\u3063\u3066\u7d20\u65e9\u304fNode.js\u30a2\u30d7\u30ea\u3092\u69cb\u7bc9\uff06\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u65b9\u6cd5\uff5c Kinsta\u00ae","description":"\u3082\u306e\u306e5\u5206\u3067Express\u3092\u4f7f\u7528\u3057\u3066Node.js\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\uff06\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002Node.js\u5b66\u7fd2\u3084\u5fdc\u7528\u306e\u4e00\u3064\u306e\u4f8b\u3068\u3057\u3066\u3054\u6d3b\u7528\u304f\u3060\u3055\u3044\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kinsta.com\/jp\/blog\/create-express-app\/","og_locale":"ja_JP","og_type":"article","og_title":"\u3010\u6700\u901f5\u5206\u3011Express\u3092\u4f7f\u3063\u3066\u7d20\u65e9\u304fNode.js\u30a2\u30d7\u30ea\u3092\u69cb\u7bc9\uff06\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u65b9\u6cd5","og_description":"\u3082\u306e\u306e5\u5206\u3067Express\u3092\u4f7f\u7528\u3057\u3066Node.js\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\uff06\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002Node.js\u5b66\u7fd2\u3084\u5fdc\u7528\u306e\u4e00\u3064\u306e\u4f8b\u3068\u3057\u3066\u3054\u6d3b\u7528\u304f\u3060\u3055\u3044\u3002","og_url":"https:\/\/kinsta.com\/jp\/blog\/create-express-app\/","og_site_name":"Kinsta\u00ae","article_publisher":"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/","article_published_time":"2023-12-18T16:32:53+00:00","article_modified_time":"2024-02-02T18:58:44+00:00","og_image":[{"width":3042,"height":1521,"url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/create-express-app.jpg","type":"image\/jpeg"}],"author":"Jeremy Holcombe","twitter_card":"summary_large_image","twitter_description":"\u3082\u306e\u306e5\u5206\u3067Express\u3092\u4f7f\u7528\u3057\u3066Node.js\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\uff06\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002Node.js\u5b66\u7fd2\u3084\u5fdc\u7528\u306e\u4e00\u3064\u306e\u4f8b\u3068\u3057\u3066\u3054\u6d3b\u7528\u304f\u3060\u3055\u3044\u3002","twitter_image":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/create-express-app.jpg","twitter_creator":"@Kinsta_JP","twitter_site":"@Kinsta_JP","twitter_misc":{"\u57f7\u7b46\u8005":"Jeremy Holcombe","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"2\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kinsta.com\/jp\/blog\/create-express-app\/#article","isPartOf":{"@id":"https:\/\/kinsta.com\/jp\/blog\/create-express-app\/"},"author":{"name":"Jeremy Holcombe","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/4eee42881d7b5a73ebb4f58dd5223b21"},"headline":"\u3010\u6700\u901f5\u5206\u3011Express\u3092\u4f7f\u3063\u3066\u7d20\u65e9\u304fNode.js\u30a2\u30d7\u30ea\u3092\u69cb\u7bc9\uff06\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u65b9\u6cd5","datePublished":"2023-12-18T16:32:53+00:00","dateModified":"2024-02-02T18:58:44+00:00","mainEntityOfPage":{"@id":"https:\/\/kinsta.com\/jp\/blog\/create-express-app\/"},"wordCount":165,"commentCount":0,"publisher":{"@id":"https:\/\/kinsta.com\/jp\/#organization"},"image":{"@id":"https:\/\/kinsta.com\/jp\/blog\/create-express-app\/#primaryimage"},"thumbnailUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/create-express-app.jpg","inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kinsta.com\/jp\/blog\/create-express-app\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kinsta.com\/jp\/blog\/create-express-app\/","url":"https:\/\/kinsta.com\/jp\/blog\/create-express-app\/","name":"\u3010\u6700\u901f5\u5206\u3011Express\u3092\u4f7f\u3063\u3066\u7d20\u65e9\u304fNode.js\u30a2\u30d7\u30ea\u3092\u69cb\u7bc9\uff06\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u65b9\u6cd5\uff5c Kinsta\u00ae","isPartOf":{"@id":"https:\/\/kinsta.com\/jp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kinsta.com\/jp\/blog\/create-express-app\/#primaryimage"},"image":{"@id":"https:\/\/kinsta.com\/jp\/blog\/create-express-app\/#primaryimage"},"thumbnailUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/create-express-app.jpg","datePublished":"2023-12-18T16:32:53+00:00","dateModified":"2024-02-02T18:58:44+00:00","description":"\u3082\u306e\u306e5\u5206\u3067Express\u3092\u4f7f\u7528\u3057\u3066Node.js\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\uff06\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002Node.js\u5b66\u7fd2\u3084\u5fdc\u7528\u306e\u4e00\u3064\u306e\u4f8b\u3068\u3057\u3066\u3054\u6d3b\u7528\u304f\u3060\u3055\u3044\u3002","breadcrumb":{"@id":"https:\/\/kinsta.com\/jp\/blog\/create-express-app\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kinsta.com\/jp\/blog\/create-express-app\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/blog\/create-express-app\/#primaryimage","url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/create-express-app.jpg","contentUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/create-express-app.jpg","width":3042,"height":1521},{"@type":"BreadcrumbList","@id":"https:\/\/kinsta.com\/jp\/blog\/create-express-app\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kinsta.com\/jp\/"},{"@type":"ListItem","position":2,"name":"Node.js","item":"https:\/\/kinsta.com\/jp\/topics\/node-js\/"},{"@type":"ListItem","position":3,"name":"\u3010\u6700\u901f5\u5206\u3011Express\u3092\u4f7f\u3063\u3066\u7d20\u65e9\u304fNode.js\u30a2\u30d7\u30ea\u3092\u69cb\u7bc9\uff06\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u65b9\u6cd5"}]},{"@type":"WebSite","@id":"https:\/\/kinsta.com\/jp\/#website","url":"https:\/\/kinsta.com\/jp\/","name":"Kinsta\u00ae","description":"\u9ad8\u901f\u304b\u3064\u5805\u7262\u306a\u30d7\u30ec\u30df\u30a2\u30e0\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9","publisher":{"@id":"https:\/\/kinsta.com\/jp\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kinsta.com\/jp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/kinsta.com\/jp\/#organization","name":"Kinsta","url":"https:\/\/kinsta.com\/jp\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/","url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg","contentUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg","width":500,"height":500,"caption":"Kinsta"},"image":{"@id":"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/","https:\/\/x.com\/Kinsta_JP","https:\/\/www.instagram.com\/kinstahosting\/","https:\/\/www.linkedin.com\/company\/kinsta\/","https:\/\/www.pinterest.com\/kinstahosting\/","https:\/\/www.youtube.com\/c\/Kinsta"]},{"@type":"Person","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/4eee42881d7b5a73ebb4f58dd5223b21","name":"Jeremy Holcombe","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0e17001f3bb37dbbe54fceef9bb547fa?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0e17001f3bb37dbbe54fceef9bb547fa?s=96&d=mm&r=g","caption":"Jeremy Holcombe"},"description":"Senior Editor at Kinsta, WordPress Web Developer, and Content Writer. Outside of all things WordPress, I enjoy the beach, golf, and movies. I also have tall people problems.","sameAs":["https:\/\/www.linkedin.com\/in\/jeremyholcombe\/"],"url":"https:\/\/kinsta.com\/jp\/blog\/author\/jeremyholcombe\/"}]}},"acf":[],"_links":{"self":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/53506","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/users\/199"}],"replies":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/comments?post=53506"}],"version-history":[{"count":7,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/53506\/revisions"}],"predecessor-version":[{"id":54509,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/53506\/revisions\/54509"}],"alternate":[{"embeddable":true,"hreflang":"en","title":"English","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/53506\/translations\/en"},{"embeddable":true,"hreflang":"it","title":"Italian","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/53506\/translations\/it"},{"embeddable":true,"hreflang":"pt","title":"Portuguese","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/53506\/translations\/pt"},{"embeddable":true,"hreflang":"de","title":"German","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/53506\/translations\/de"},{"embeddable":true,"hreflang":"ja","title":"Japanese","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/53506\/translations\/jp"},{"embeddable":true,"hreflang":"es","title":"Spanish","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/53506\/translations\/es"},{"embeddable":true,"hreflang":"fr","title":"French","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/53506\/translations\/fr"},{"href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/53506\/tree"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/media\/53507"}],"wp:attachment":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/media?parent=53506"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/tags?post=53506"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/topic?post=53506"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}