{"id":38352,"date":"2024-11-01T17:17:49","date_gmt":"2024-11-01T17:17:49","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=38352"},"modified":"2024-11-26T06:44:34","modified_gmt":"2024-11-26T06:44:34","slug":"express-%ea%b0%9c%eb%b0%9c-%ea%b0%95%ec%a2%8c-%ec%a4%91%ec%b2%a9-%eb%9d%bc%ec%9a%b0%ed%84%b0-%eb%b0%8f-%eb%9d%bc%ec%9a%b0%ed%8c%85-%ea%b5%ac%ec%a1%b0-%ea%b4%80%eb%a6%ac","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/38352\/","title":{"rendered":"Express \uac1c\ubc1c \uac15\uc88c, \uc911\ucca9 \ub77c\uc6b0\ud130 \ubc0f \ub77c\uc6b0\ud305 \uad6c\uc870 \uad00\ub9ac"},"content":{"rendered":"<p>\n    Express\ub294 Node.js\uc5d0\uc11c \uac00\uc7a5 \uc778\uae30 \uc788\ub294 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ud504\ub808\uc784\uc6cc\ud06c \uc911 \ud558\ub098\ub85c, RESTful API\uc640 \uc11c\ubc84 \uce21 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc27d\uac8c \uad6c\ucd95\ud560 \uc218 \uc788\ub3c4\ub85d \ub3c4\uc640\uc90d\ub2c8\ub2e4. \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 Express\uc758 \uc911\ucca9 \ub77c\uc6b0\ud130 \uae30\ub2a5\uacfc \uc774\ub97c \ud1b5\ud574 \ub77c\uc6b0\ud305 \uad6c\uc870\ub97c \ud6a8\uc728\uc801\uc73c\ub85c \uad00\ub9ac\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc2ec\ub3c4 \uc788\uac8c \ub2e4\ub8e8\uc5b4 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4.\n<\/p>\n<h2>1. Express \ubc0f \ub77c\uc6b0\ud130 \uac1c\uc694<\/h2>\n<p>\n    Express\ub294 \uac04\uacb0\ud558\uace0 \uc720\uc5f0\ud55c API\ub97c \uc81c\uacf5\ud558\uc5ec \uc11c\ubc84 \uc0ac\uc774\ub4dc \uac1c\ubc1c\uc744 \uc218\uc6d4\ud558\uac8c \ud574\uc90d\ub2c8\ub2e4. \ub77c\uc6b0\ud130(router)\ub294 \ud2b9\uc815 URL \uacbd\ub85c\uc5d0 \ub300\ud55c HTTP \uc694\uccad\uc744 \ucc98\ub9ac\ud558\ub294 \ubbf8\ub4e4\uc6e8\uc5b4\uc758 \uc9d1\ud569\uccb4\ub97c \uc758\ubbf8\ud569\ub2c8\ub2e4. \uc911\ucca9 \ub77c\uc6b0\ud130\ub294 \uc774\ub7ec\ud55c \ub77c\uc6b0\ud130\ub97c \uc870\ud569\ud558\uc5ec \ubcf4\ub2e4 \ubcf5\uc7a1\ud55c \ub77c\uc6b0\ud305 \uad6c\uc870\ub97c \ub9cc\ub4e4\uc5b4\ub0bc \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n<\/p>\n<h3>1.1 Express \uc124\uce58\ud558\uae30<\/h3>\n<p>Express\ub97c \uc0ac\uc6a9\ud558\uae30 \uc704\ud574 \uba3c\uc800 Node.js\uac00 \uc124\uce58\ub418\uc5b4 \uc788\uc5b4\uc57c \ud569\ub2c8\ub2e4. \ub2e4\uc74c \uba85\ub839\uc5b4\ub97c \ud1b5\ud574 Express\ub97c \uc124\uce58\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<pre><code>npm init -y\nnpm install express<\/code><\/pre>\n<h2>2. \uae30\ubcf8 \ub77c\uc6b0\ud130 \uc124\uc815<\/h2>\n<p>Express \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc124\uc815\ud55c \ud6c4, \uba3c\uc800 \uae30\ubcf8\uc801\uc778 \ub77c\uc6b0\ud305\ubd80\ud130 \uc2dc\uc791\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc544\ub798 \ucf54\ub4dc\ub294 \uac04\ub2e8\ud55c Express \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc124\uc815\ud558\uace0 \uae30\ubcf8\uc801\uc778 \ub77c\uc6b0\ud2b8\ub97c \uc815\uc758\ud558\ub294 \uc608\uc2dc\uc785\ub2c8\ub2e4.<\/p>\n<pre><code>const express = require('express');\nconst app = express();\nconst PORT = 3000;\n\n\/\/ \uae30\ubcf8 \ub77c\uc6b0\ud2b8 \uc124\uc815\napp.get('\/', (req, res) =&gt; {\n    res.send('Hello, Express!');\n});\n\n\/\/ \uc11c\ubc84 \uc2dc\uc791\napp.listen(PORT, () =&gt; {\n    console.log(`\uc11c\ubc84\uac00 http:\/\/localhost:${PORT}\uc5d0\uc11c \uc2e4\ud589 \uc911\uc785\ub2c8\ub2e4.`);\n});<\/code><\/pre>\n<h2>3. \uc911\ucca9 \ub77c\uc6b0\ud130\ub780?<\/h2>\n<p>\n    \uc911\ucca9 \ub77c\uc6b0\ud130\ub294 \ud558\ub098\uc758 \ub77c\uc6b0\ud130 \uc548\uc5d0 \ub610 \ub2e4\ub978 \ub77c\uc6b0\ud130\ub97c \ud3ec\ud568\uc2dc\ud0a4\ub294 \ubc29\uc2dd\uc785\ub2c8\ub2e4. \uc774\ub294 \uc8fc\ub85c \uc870\uc9c1\uc801\uc778 \ub77c\uc6b0\ud305 \uad6c\uc870\uac00 \ud544\uc694\ud560 \ub54c \uc0ac\uc6a9\ub429\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, \uc0ac\uc6a9\uc790 \uad00\ub9ac\uc640 \uac19\uc740 \uae30\ub2a5\uc744 \ub530\ub85c \ubaa8\ub4c8\ud654\ud558\uc5ec \uad00\ub9ac\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n<\/p>\n<h3>3.1 \uc911\ucca9 \ub77c\uc6b0\ud130 \uc0dd\uc131\ud558\uae30<\/h3>\n<p>\n    \uc911\ucca9 \ub77c\uc6b0\ud130\ub97c \ub9cc\ub4e4\uae30 \uc704\ud574\uc11c\ub294 \ubcc4\ub3c4\uc758 \ub77c\uc6b0\ud130\ub97c \uc0dd\uc131\ud55c \ud6c4, \uc774\ub97c \uae30\uc874\uc758 \ub77c\uc6b0\ud130\uc5d0 \ucd94\uac00\ud558\ub294 \ubc29\ubc95\uc744 \uc0ac\uc6a9\ud569\ub2c8\ub2e4. \ub2e4\uc74c\uc740 \uc0ac\uc6a9\uc790 \uad00\ub828 \ub77c\uc6b0\ud130\ub97c \ub9cc\ub4e4\uace0 \uc774\ub97c \uba54\uc778 \ub77c\uc6b0\ud130\uc5d0 \ucd94\uac00\ud558\ub294 \uc608\uc2dc\uc785\ub2c8\ub2e4.\n<\/p>\n<pre><code>const express = require('express');\nconst app = express();\nconst userRouter = express.Router();\n\nuserRouter.get('\/', (req, res) =&gt; {\n    res.send('\uc0ac\uc6a9\uc790 \ub9ac\uc2a4\ud2b8 \ucd9c\ub825');\n});\n\nuserRouter.get('\/:id', (req, res) =&gt; {\n    res.send(`\uc0ac\uc6a9\uc790 ID: ${req.params.id}`);\n});\n\n\/\/ \uba54\uc778 \ub77c\uc6b0\ud130\uc5d0 \uc911\ucca9 \ub77c\uc6b0\ud130 \ucd94\uac00\napp.use('\/users', userRouter);\n\n\/\/ \uc11c\ubc84 \uc2dc\uc791\napp.listen(3000, () =&gt; {\n    console.log('\uc11c\ubc84\uac00 http:\/\/localhost:3000\uc5d0\uc11c \uc2e4\ud589 \uc911\uc785\ub2c8\ub2e4.');\n});<\/code><\/pre>\n<h2>4. \ub77c\uc6b0\ud305 \uad6c\uc870 \uad00\ub9ac<\/h2>\n<p>\n    \uc911\ucca9 \ub77c\uc6b0\ud130\ub97c \uc0ac\uc6a9\ud558\uba74 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uad6c\uc870\ub97c \uba85\ud655\ud558\uac8c \uad00\ub9ac\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc544\ub798\ub294 \ub2e4\uc591\ud55c \ub77c\uc6b0\ud305 \uad6c\uc870\ub97c \uad00\ub9ac\ud558\ub294 \uc608\uc2dc\uc785\ub2c8\ub2e4. \uac01 \uae30\ub2a5\ubcc4\ub85c \ub77c\uc6b0\ud130\ub97c \ub098\ub204\uc5b4 \ub354\uc6b1 \uc870\uc9c1\uc801\uc778 \uad6c\uc870\ub97c \ub9cc\ub4e4\uc5b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.\n<\/p>\n<h3>4.1 \ud504\ub85c\uc81d\ud2b8 \ub514\ub809\ud1a0\ub9ac \uad6c\uc870<\/h3>\n<p>\ub2e4\uc74c\uacfc \uac19\uc774 \ud3f4\ub354 \uad6c\uc870\ub97c \uc124\uacc4\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<pre><code>my-express-app\/\n\u251c\u2500\u2500 app.js\n\u251c\u2500\u2500 routes\/\n\u2502   \u251c\u2500\u2500 userRoutes.js\n\u2502   \u2514\u2500\u2500 productRoutes.js\n\u2514\u2500\u2500 package.json<\/code><\/pre>\n<h3>4.2 \uc0ac\uc6a9\uc790 \ubc0f \uc81c\ud488 \ub77c\uc6b0\ud130 \uad6c\ud604<\/h3>\n<p>\uc774\uc81c \uc0ac\uc6a9\uc790\uc640 \uc81c\ud488 \uad00\ub828 \ub77c\uc6b0\ud130\ub97c \uac01\uac01 \ub9cc\ub4e4\uace0 \uc774\ub97c \uba54\uc778 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ud30c\uc77c\uc5d0\uc11c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub3c4\ub85d \uc124\uc815\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>\/\/ routes\/userRoutes.js\nconst express = require('express');\nconst userRouter = express.Router();\n\nuserRouter.get('\/', (req, res) =&gt; {\n    res.send('\uc0ac\uc6a9\uc790 \ub9ac\uc2a4\ud2b8 \ucd9c\ub825');\n});\n\nuserRouter.get('\/:id', (req, res) =&gt; {\n    res.send(`\uc0ac\uc6a9\uc790 ID: ${req.params.id}`);\n});\n\nmodule.exports = userRouter;\n\n\/\/ routes\/productRoutes.js\nconst express = require('express');\nconst productRouter = express.Router();\n\nproductRouter.get('\/', (req, res) =&gt; {\n    res.send('\uc81c\ud488 \ub9ac\uc2a4\ud2b8 \ucd9c\ub825');\n});\n\nproductRouter.get('\/:id', (req, res) =&gt; {\n    res.send(`\uc81c\ud488 ID: ${req.params.id}`);\n});\n\nmodule.exports = productRouter;\n\n\/\/ app.js\nconst express = require('express');\nconst app = express();\nconst userRouter = require('.\/routes\/userRoutes');\nconst productRouter = require('.\/routes\/productRoutes');\n\napp.use('\/users', userRouter);\napp.use('\/products', productRouter);\n\napp.listen(3000, () =&gt; {\n    console.log('\uc11c\ubc84\uac00 http:\/\/localhost:3000\uc5d0\uc11c \uc2e4\ud589 \uc911\uc785\ub2c8\ub2e4.');\n});<\/code><\/pre>\n<h2>5. \ub77c\uc6b0\ud130 \ubbf8\ub4e4\uc6e8\uc5b4<\/h2>\n<p>\n    Express\uc5d0\uc11c\ub294 \ubbf8\ub4e4\uc6e8\uc5b4\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc694\uccad\uacfc \uc751\ub2f5 \uac1d\uccb4\ub97c \ucc98\ub9ac\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub77c\uc6b0\ud130 \ubbf8\ub4e4\uc6e8\uc5b4\ub294 \ud2b9\uc815 \uacbd\ub85c\uc5d0 \ub300\ud55c \uc694\uccad\uc744 \ucc98\ub9ac\ud558\uace0, \ud574\ub2f9 \uc694\uccad\uc5d0 \ub300\ud55c \uc751\ub2f5\uc744 \uc0dd\uc131\ud569\ub2c8\ub2e4. \uc544\ub798\ub294 \ubbf8\ub4e4\uc6e8\uc5b4\uc758 \uc0ac\uc6a9 \uc608\uc2dc\uc785\ub2c8\ub2e4.\n<\/p>\n<pre><code>userRouter.use((req, res, next) =&gt; {\n    console.log('\uc0ac\uc6a9\uc790 \uad00\ub828 \uc694\uccad \ucc98\ub9ac \uc911...');\n    next(); \/\/ \ub2e4\uc74c \ubbf8\ub4e4\uc6e8\uc5b4\ub85c \ub118\uc5b4\uac11\ub2c8\ub2e4\n});<\/code><\/pre>\n<h2>6. \ud30c\ub77c\ubbf8\ud130 \ubc0f \ucffc\ub9ac \ubb38\uc790\uc5f4<\/h2>\n<p>\n    Express\uc5d0\uc11c\ub294 URL \ud30c\ub77c\ubbf8\ud130\uc640 \ucffc\ub9ac \ubb38\uc790\uc5f4\uc744 \uc190\uc27d\uac8c \ub2e4\ub8f0 \uc218 \uc788\uc2b5\ub2c8\ub2e4. URL \ud30c\ub77c\ubbf8\ud130\ub294 \ud2b9\uc815 \uacbd\ub85c\ub97c \ub530\ub77c \uc804\ub2ec\ub418\ub294 \uac12\uc774\uace0, \ucffc\ub9ac \ubb38\uc790\uc5f4\uc740 `?` \ub4a4\uc5d0 \uc704\uce58\ud558\ub294 \ud0a4-\uac12 \uc30d\uc785\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4 `\/users\/1?sort=name`\uc5d0\uc11c `1`\uc740 \uc0ac\uc6a9\uc790 ID, `sort=name`\uc740 \ucffc\ub9ac \ubb38\uc790\uc5f4\uc785\ub2c8\ub2e4.\n<\/p>\n<h3>6.1 \ud30c\ub77c\ubbf8\ud130 \uc608\uc2dc<\/h3>\n<pre><code>userRouter.get('\/:id', (req, res) =&gt; {\n    const userId = req.params.id;\n    res.send(`\uc0ac\uc6a9\uc790 ID: ${userId}`);\n});<\/code><\/pre>\n<h3>6.2 \ucffc\ub9ac \ubb38\uc790\uc5f4 \uc608\uc2dc<\/h3>\n<pre><code>userRouter.get('\/', (req, res) =&gt; {\n    const sort = req.query.sort || 'default';\n    res.send(`\uc0ac\uc6a9\uc790 \ub9ac\uc2a4\ud2b8, \uc815\ub82c \uae30\uc900: ${sort}`);\n});<\/code><\/pre>\n<h2>7. \uc5d0\ub7ec \ucc98\ub9ac<\/h2>\n<p>\n    \uc5d0\ub7ec \ucc98\ub9ac \ubbf8\ub4e4\uc6e8\uc5b4\ub97c \uc0ac\uc6a9\ud558\uba74 \ubb38\uc81c\uac00 \ubc1c\uc0dd\ud588\uc744 \ub54c \uc77c\uc815\ud55c \ubc29\uc2dd\uc73c\ub85c \uc624\ub958\ub97c \ucc98\ub9ac\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub2e4\uc74c\uc740 \uc5d0\ub7ec \ucc98\ub9ac \ubbf8\ub4e4\uc6e8\uc5b4\uc758 \uc608\uc2dc\uc785\ub2c8\ub2e4.\n<\/p>\n<pre><code>app.use((err, req, res, next) =&gt; {\n    console.error(err.stack);\n    res.status(500).send('\ubb38\uc81c\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4!');\n});<\/code><\/pre>\n<h2>8. \ucd5c\uc801\ud654\ub41c \ub77c\uc6b0\ud305 \uad6c\uc870<\/h2>\n<p>\n    \uc911\ucca9 \ub77c\uc6b0\ud130\ub97c \uc0ac\uc6a9\ud558\uba74 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \ub77c\uc6b0\ud305 \uad6c\uc870\ub97c \ucd5c\uc801\ud654\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc5ec\ub7ec \ud558\uc704 \ub77c\uc6b0\ud130\ub97c \uac00\uc838\uc640 \uba54\uc778 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc774 \ubaa8\ub4e0 \ub77c\uc6b0\ud2b8\ub97c \uad00\ub9ac\ud558\uac8c \ud558\uc5ec \ucf54\ub4dc\uc758 \uac00\ub3c5\uc131\uacfc \uc720\uc9c0\ubcf4\uc218\uc131\uc744 \ub192\uc77c \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n<\/p>\n<h3>8.1 \uc608\uc81c: \ucd5c\uc801\ud654\ub41c \uad6c\uc870<\/h3>\n<p>\uc544\ub798\ub294 \ucd5c\uc801\ud654\ub41c \ub77c\uc6b0\ud305 \uad6c\uc870\uc758 \uc608\uc2dc\uc785\ub2c8\ub2e4.<\/p>\n<pre><code>const express = require('express');\nconst app = express();\nconst userRouter = require('.\/routes\/userRoutes');\nconst productRouter = require('.\/routes\/productRoutes');\n\napp.use('\/users', userRouter);\napp.use('\/products', productRouter);\n\t\napp.listen(3000, () =&gt; {\n    console.log('\uc11c\ubc84\uac00 http:\/\/localhost:3000\uc5d0\uc11c \uc2e4\ud589 \uc911\uc785\ub2c8\ub2e4.');\n});<\/code><\/pre>\n<h2>9. \uacb0\ub860<\/h2>\n<p>\n    \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 Express\uc758 \uc911\ucca9 \ub77c\uc6b0\ud130 \ubc0f \ub77c\uc6b0\ud305 \uad6c\uc870 \uad00\ub9ac \ubc29\ubc95\uc5d0 \ub300\ud574 \uc2ec\ub3c4 \uc788\ub294 \ub0b4\uc6a9\uc744 \ub2e4\ub8e8\uc5c8\uc2b5\ub2c8\ub2e4. \uc911\ucca9 \ub77c\uc6b0\ud130\ub97c \ud1b5\ud574 \ubcf5\uc7a1\ud55c \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uad6c\uc870\ub97c \uba85\ud655\ud558\uac8c \uc815\uc758\ud558\uace0, \uc774\ub97c \ud1b5\ud574 \ucf54\ub4dc\uc758 \uac00\ub3c5\uc131\uc744 \ub192\uc774\ub294 \ubc29\ubc95\uc744 \ubc30\uc6b8 \uc218 \uc788\uc5c8\uc2b5\ub2c8\ub2e4. \uc774\ub7ec\ud55c \uae30\ubc95\uc744 \ud65c\uc6a9\ud558\uc5ec \uc5ec\ub7ec\ubd84\uc758 Express \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ub354\uc6b1 \ud6a8\uc728\uc801\uc73c\ub85c \uac1c\ubc1c\ud574 \ubcf4\uc138\uc694.\n<\/p>\n<h2>10. \ucd94\uac00 \ub9ac\uc18c\uc2a4<\/h2>\n<p>\n    \ucd94\uac00\uc801\uc778 \ud559\uc2b5\uc744 \uc6d0\ud558\uc2e0\ub2e4\uba74 \uc544\ub798\uc758 \ub9ac\uc18c\uc2a4\ub97c \ucc38\uace0\ud558\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4:<\/p>\n<ul>\n<li><a href=\"https:\/\/expressjs.com\/en\/guide\/routing.html\">Express.js \uacf5\uc2dd \ubb38\uc11c<\/a><\/li>\n<li><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Learn\/Server-side\/Express_Nodejs\/router\">MDN Express \ubc0f Node.js \ud29c\ud1a0\ub9ac\uc5bc<\/a><\/li>\n<li><a href=\"https:\/\/scotch.io\/tutorials\/building-a-nodejs-api-with-express\">Scotch.io Express API \ud29c\ud1a0\ub9ac\uc5bc<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Express\ub294 Node.js\uc5d0\uc11c \uac00\uc7a5 \uc778\uae30 \uc788\ub294 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ud504\ub808\uc784\uc6cc\ud06c \uc911 \ud558\ub098\ub85c, RESTful API\uc640 \uc11c\ubc84 \uce21 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc27d\uac8c \uad6c\ucd95\ud560 \uc218 \uc788\ub3c4\ub85d \ub3c4\uc640\uc90d\ub2c8\ub2e4. \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 Express\uc758 \uc911\ucca9 \ub77c\uc6b0\ud130 \uae30\ub2a5\uacfc \uc774\ub97c \ud1b5\ud574 \ub77c\uc6b0\ud305 \uad6c\uc870\ub97c \ud6a8\uc728\uc801\uc73c\ub85c \uad00\ub9ac\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc2ec\ub3c4 \uc788\uac8c \ub2e4\ub8e8\uc5b4 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. Express \ubc0f \ub77c\uc6b0\ud130 \uac1c\uc694 Express\ub294 \uac04\uacb0\ud558\uace0 \uc720\uc5f0\ud55c API\ub97c \uc81c\uacf5\ud558\uc5ec \uc11c\ubc84 \uc0ac\uc774\ub4dc \uac1c\ubc1c\uc744 \uc218\uc6d4\ud558\uac8c \ud574\uc90d\ub2c8\ub2e4. \ub77c\uc6b0\ud130(router)\ub294 \ud2b9\uc815 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/38352\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;Express \uac1c\ubc1c \uac15\uc88c, \uc911\ucca9 \ub77c\uc6b0\ud130 \ubc0f \ub77c\uc6b0\ud305 \uad6c\uc870 \uad00\ub9ac&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[181],"tags":[],"class_list":["post-38352","post","type-post","status-publish","format-standard","hentry","category-express"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Express \uac1c\ubc1c \uac15\uc88c, \uc911\ucca9 \ub77c\uc6b0\ud130 \ubc0f \ub77c\uc6b0\ud305 \uad6c\uc870 \uad00\ub9ac - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/atmokpo.com\/w\/38352\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Express \uac1c\ubc1c \uac15\uc88c, \uc911\ucca9 \ub77c\uc6b0\ud130 \ubc0f \ub77c\uc6b0\ud305 \uad6c\uc870 \uad00\ub9ac - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"Express\ub294 Node.js\uc5d0\uc11c \uac00\uc7a5 \uc778\uae30 \uc788\ub294 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ud504\ub808\uc784\uc6cc\ud06c \uc911 \ud558\ub098\ub85c, RESTful API\uc640 \uc11c\ubc84 \uce21 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc27d\uac8c \uad6c\ucd95\ud560 \uc218 \uc788\ub3c4\ub85d \ub3c4\uc640\uc90d\ub2c8\ub2e4. \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 Express\uc758 \uc911\ucca9 \ub77c\uc6b0\ud130 \uae30\ub2a5\uacfc \uc774\ub97c \ud1b5\ud574 \ub77c\uc6b0\ud305 \uad6c\uc870\ub97c \ud6a8\uc728\uc801\uc73c\ub85c \uad00\ub9ac\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc2ec\ub3c4 \uc788\uac8c \ub2e4\ub8e8\uc5b4 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. Express \ubc0f \ub77c\uc6b0\ud130 \uac1c\uc694 Express\ub294 \uac04\uacb0\ud558\uace0 \uc720\uc5f0\ud55c API\ub97c \uc81c\uacf5\ud558\uc5ec \uc11c\ubc84 \uc0ac\uc774\ub4dc \uac1c\ubc1c\uc744 \uc218\uc6d4\ud558\uac8c \ud574\uc90d\ub2c8\ub2e4. \ub77c\uc6b0\ud130(router)\ub294 \ud2b9\uc815 &hellip; \ub354 \ubcf4\uae30 &quot;Express \uac1c\ubc1c \uac15\uc88c, \uc911\ucca9 \ub77c\uc6b0\ud130 \ubc0f \ub77c\uc6b0\ud305 \uad6c\uc870 \uad00\ub9ac&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/38352\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-01T17:17:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:44:34+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:site\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"root\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/38352\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38352\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"Express \uac1c\ubc1c \uac15\uc88c, \uc911\ucca9 \ub77c\uc6b0\ud130 \ubc0f \ub77c\uc6b0\ud305 \uad6c\uc870 \uad00\ub9ac\",\"datePublished\":\"2024-11-01T17:17:49+00:00\",\"dateModified\":\"2024-11-26T06:44:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38352\/\"},\"wordCount\":43,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"Express\uc11c\ubc84\uac1c\ubc1c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/38352\/\",\"url\":\"https:\/\/atmokpo.com\/w\/38352\/\",\"name\":\"Express \uac1c\ubc1c \uac15\uc88c, \uc911\ucca9 \ub77c\uc6b0\ud130 \ubc0f \ub77c\uc6b0\ud305 \uad6c\uc870 \uad00\ub9ac - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-01T17:17:49+00:00\",\"dateModified\":\"2024-11-26T06:44:34+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38352\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/38352\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/38352\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Express \uac1c\ubc1c \uac15\uc88c, \uc911\ucca9 \ub77c\uc6b0\ud130 \ubc0f \ub77c\uc6b0\ud305 \uad6c\uc870 \uad00\ub9ac\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/atmokpo.com\/w\/#website\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/atmokpo.com\/w\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"contentUrl\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"width\":400,\"height\":400,\"caption\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\"},\"image\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/bebubo4\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\",\"name\":\"root\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"caption\":\"root\"},\"sameAs\":[\"http:\/\/atmokpo.com\/w\"],\"url\":\"https:\/\/atmokpo.com\/w\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Express \uac1c\ubc1c \uac15\uc88c, \uc911\ucca9 \ub77c\uc6b0\ud130 \ubc0f \ub77c\uc6b0\ud305 \uad6c\uc870 \uad00\ub9ac - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","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:\/\/atmokpo.com\/w\/38352\/","og_locale":"ko_KR","og_type":"article","og_title":"Express \uac1c\ubc1c \uac15\uc88c, \uc911\ucca9 \ub77c\uc6b0\ud130 \ubc0f \ub77c\uc6b0\ud305 \uad6c\uc870 \uad00\ub9ac - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"Express\ub294 Node.js\uc5d0\uc11c \uac00\uc7a5 \uc778\uae30 \uc788\ub294 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ud504\ub808\uc784\uc6cc\ud06c \uc911 \ud558\ub098\ub85c, RESTful API\uc640 \uc11c\ubc84 \uce21 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc27d\uac8c \uad6c\ucd95\ud560 \uc218 \uc788\ub3c4\ub85d \ub3c4\uc640\uc90d\ub2c8\ub2e4. \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 Express\uc758 \uc911\ucca9 \ub77c\uc6b0\ud130 \uae30\ub2a5\uacfc \uc774\ub97c \ud1b5\ud574 \ub77c\uc6b0\ud305 \uad6c\uc870\ub97c \ud6a8\uc728\uc801\uc73c\ub85c \uad00\ub9ac\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc2ec\ub3c4 \uc788\uac8c \ub2e4\ub8e8\uc5b4 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. Express \ubc0f \ub77c\uc6b0\ud130 \uac1c\uc694 Express\ub294 \uac04\uacb0\ud558\uace0 \uc720\uc5f0\ud55c API\ub97c \uc81c\uacf5\ud558\uc5ec \uc11c\ubc84 \uc0ac\uc774\ub4dc \uac1c\ubc1c\uc744 \uc218\uc6d4\ud558\uac8c \ud574\uc90d\ub2c8\ub2e4. \ub77c\uc6b0\ud130(router)\ub294 \ud2b9\uc815 &hellip; \ub354 \ubcf4\uae30 \"Express \uac1c\ubc1c \uac15\uc88c, \uc911\ucca9 \ub77c\uc6b0\ud130 \ubc0f \ub77c\uc6b0\ud305 \uad6c\uc870 \uad00\ub9ac\"","og_url":"https:\/\/atmokpo.com\/w\/38352\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-01T17:17:49+00:00","article_modified_time":"2024-11-26T06:44:34+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"2\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/38352\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/38352\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"Express \uac1c\ubc1c \uac15\uc88c, \uc911\ucca9 \ub77c\uc6b0\ud130 \ubc0f \ub77c\uc6b0\ud305 \uad6c\uc870 \uad00\ub9ac","datePublished":"2024-11-01T17:17:49+00:00","dateModified":"2024-11-26T06:44:34+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/38352\/"},"wordCount":43,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["Express\uc11c\ubc84\uac1c\ubc1c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/38352\/","url":"https:\/\/atmokpo.com\/w\/38352\/","name":"Express \uac1c\ubc1c \uac15\uc88c, \uc911\ucca9 \ub77c\uc6b0\ud130 \ubc0f \ub77c\uc6b0\ud305 \uad6c\uc870 \uad00\ub9ac - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-01T17:17:49+00:00","dateModified":"2024-11-26T06:44:34+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/38352\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/38352\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/38352\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"Express \uac1c\ubc1c \uac15\uc88c, \uc911\ucca9 \ub77c\uc6b0\ud130 \ubc0f \ub77c\uc6b0\ud305 \uad6c\uc870 \uad00\ub9ac"}]},{"@type":"WebSite","@id":"https:\/\/atmokpo.com\/w\/#website","url":"https:\/\/atmokpo.com\/w\/","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","description":"","publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/atmokpo.com\/w\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/atmokpo.com\/w\/#organization","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","url":"https:\/\/atmokpo.com\/w\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/","url":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","contentUrl":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","width":400,"height":400,"caption":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8"},"image":{"@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/bebubo4"]},{"@type":"Person","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7","name":"root","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","caption":"root"},"sameAs":["http:\/\/atmokpo.com\/w"],"url":"https:\/\/atmokpo.com\/w\/author\/root\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38352","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/comments?post=38352"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38352\/revisions"}],"predecessor-version":[{"id":38353,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38352\/revisions\/38353"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=38352"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=38352"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=38352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}