{"id":38324,"date":"2024-11-01T17:17:36","date_gmt":"2024-11-01T17:17:36","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=38324"},"modified":"2024-11-26T06:44:38","modified_gmt":"2024-11-26T06:44:38","slug":"express-%ea%b0%9c%eb%b0%9c-%ea%b0%95%ec%a2%8c-%ec%bb%a4%ec%8a%a4%ed%85%80-%eb%af%b8%eb%93%a4%ec%9b%a8%ec%96%b4-%eb%b0%8f-%ed%94%8c%eb%9f%ac%ea%b7%b8%ec%9d%b8-%ea%b0%9c%eb%b0%9c%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/38324\/","title":{"rendered":"Express \uac1c\ubc1c \uac15\uc88c, \ucee4\uc2a4\ud140 \ubbf8\ub4e4\uc6e8\uc5b4 \ubc0f \ud50c\ub7ec\uadf8\uc778 \uac1c\ubc1c\ud558\uae30"},"content":{"rendered":"<p><body><\/p>\n<p>Node.js\uc758 <strong>Express<\/strong>\ub294 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c\uc744 \uc704\ud55c \uac15\ub825\ud558\uace0 \uc720\uc5f0\ud55c \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. Express\uc758 \uac00\uc7a5 \ud070 \uc7a5\uc810\u4e4b\u4e00\uc740 \ubbf8\ub4e4\uc6e8\uc5b4(middleware)\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc694\uccad\uacfc \uc751\ub2f5\uc744 \ucc98\ub9ac\ud560 \uc218 \uc788\ub294 \uae30\ub2a5\uc785\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 Express\uc5d0\uc11c \ucee4\uc2a4\ud140 \ubbf8\ub4e4\uc6e8\uc5b4\uc640 \ud50c\ub7ec\uadf8\uc778\uc744 \uac1c\ubc1c\ud558\ub294 \ubc29\ubc95\uc744 \uc790\uc138\ud788 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>1. Express \ubbf8\ub4e4\uc6e8\uc5b4\ub780?<\/h2>\n<p>\ubbf8\ub4e4\uc6e8\uc5b4\ub294 \uc694\uccad(Request)\uacfc \uc751\ub2f5(Response) \uac1d\uccb4 \uc0ac\uc774\uc5d0\uc11c \uc2e4\ud589\ub418\ub294 \ud568\uc218\uc785\ub2c8\ub2e4. \uc774 \ud568\uc218\ub294 \uc694\uccad\uc744 \ucc98\ub9ac\ud558\uac70\ub098 \uc694\uccad\/\uc751\ub2f5 \uac1d\uccb4\ub97c \ubcc0\uacbd\ud560 \uc218 \uc788\ub294 \uae30\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. Express\uc5d0\uc11c \ubbf8\ub4e4\uc6e8\uc5b4\ub294 \ub2e4\uc74c\uacfc \uac19\uc740 \uc5ed\ud560\uc744 \ud569\ub2c8\ub2e4:<\/p>\n<ul>\n<li>\uc694\uccad \ub85c\uadf8<\/li>\n<li>\uc694\uccad \ub370\uc774\ud130 \ud30c\uc2f1<\/li>\n<li>\uc778\uc99d \ubc0f \uad8c\ud55c \ubd80\uc5ec<\/li>\n<li>\uc5d0\ub7ec \ucc98\ub9ac<\/li>\n<li>\uc751\ub2f5 \ucc98\ub9ac<\/li>\n<\/ul>\n<h2>2. \ucee4\uc2a4\ud140 \ubbf8\ub4e4\uc6e8\uc5b4 \ub9cc\ub4e4\uae30<\/h2>\n<p>\uc548\uc815\uc801\uc778 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uad6c\ucd95\ud558\uae30 \uc704\ud574 \ucee4\uc2a4\ud140 \ubbf8\ub4e4\uc6e8\uc5b4\ub97c \uc791\uc131\ud558\ub294 \uac83\uc774 \uc911\uc694\ud569\ub2c8\ub2e4. \ucee4\uc2a4\ud140 \ubbf8\ub4e4\uc6e8\uc5b4\uc758 \uae30\ubcf8 \uad6c\uc870\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n<pre><code>function customMiddleware(req, res, next) {\n    \/\/ \uc694\uccad \ucc98\ub9ac\n    console.log('\uc694\uccad \uc815\ubcf4:', req.method, req.url);\n    \n    \/\/ \ub2e4\uc74c \ubbf8\ub4e4\uc6e8\uc5b4\ub85c \ub118\uc5b4\uac00\uae30\n    next();\n}<\/code><\/pre>\n<h3>2.1. \ubbf8\ub4e4\uc6e8\uc5b4\uc758 \ub4f1\ub85d<\/h3>\n<p>\ucee4\uc2a4\ud140 \ubbf8\ub4e4\uc6e8\uc5b4\ub294 <code>app.use()<\/code> \uba54\uc11c\ub4dc\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub4f1\ub85d\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, \ub2e4\uc74c\uc740 \uae30\ubcf8\uc801\uc778 Express \uc11c\ubc84\uc5d0 \ucee4\uc2a4\ud140 \ubbf8\ub4e4\uc6e8\uc5b4\ub97c \ub4f1\ub85d\ud558\ub294 \ubc29\ubc95\uc785\ub2c8\ub2e4:<\/p>\n<pre><code>const express = require('express');\nconst app = express();\n\n\/\/ \ucee4\uc2a4\ud140 \ubbf8\ub4e4\uc6e8\uc5b4 \uc815\uc758\nfunction customMiddleware(req, res, next) {\n    console.log('\uc694\uccad \uc815\ubcf4:', req.method, req.url);\n    next();\n}\n\n\/\/ \ubbf8\ub4e4\uc6e8\uc5b4 \ub4f1\ub85d\napp.use(customMiddleware);\n\n\/\/ \ub77c\uc6b0\ud2b8 \uc815\uc758\napp.get('\/', (req, res) =&gt; {\n    res.send('\uc548\ub155\ud558\uc138\uc694, Express!');\n});\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>3. \ubbf8\ub4e4\uc6e8\uc5b4\uc758 \ud750\ub984<\/h2>\n<p>Express\uc5d0\uc11c \ubbf8\ub4e4\uc6e8\uc5b4\ub294 \uc694\uccad \ud30c\uc774\ud504\ub77c\uc778\uc758 \uc77c\ubd80\ub85c \uc791\ub3d9\ud569\ub2c8\ub2e4. \uc694\uccad\uc774 \ub4e4\uc5b4\uc628 \uc21c\uc11c\ub300\ub85c \ubbf8\ub4e4\uc6e8\uc5b4\uac00 \uc2e4\ud589\ub429\ub2c8\ub2e4. \ub2e4\uc74c\uc740 \ubbf8\ub4e4\uc6e8\uc5b4\uac00 \uc5b4\ub5bb\uac8c \ud750\ub974\ub294\uc9c0\ub97c \uc124\uba85\ud569\ub2c8\ub2e4:<\/p>\n<ul>\n<li>\ud074\ub77c\uc774\uc5b8\ud2b8\uc5d0\uc11c \uc694\uccad\uc744 \ubcf4\ub0c5\ub2c8\ub2e4.<\/li>\n<li>\uc11c\ubc84\ub294 \ubbf8\ub4e4\uc6e8\uc5b4\ub97c \ud1b5\ud574 \uc694\uccad\uc744 \ucc98\ub9ac\ud569\ub2c8\ub2e4.<\/li>\n<li><code>next()<\/code> \ud638\ucd9c\ub85c \ub2e4\uc74c \ubbf8\ub4e4\uc6e8\uc5b4\ub85c \ub118\uc5b4\uac11\ub2c8\ub2e4.<\/li>\n<li>\ubaa8\ub4e0 \ubbf8\ub4e4\uc6e8\uc5b4\uac00 \uc2e4\ud589\ub41c \ud6c4, \ucd5c\uc885 \ub77c\uc6b0\ud2b8 \ud578\ub4e4\ub7ec\uac00 \uc2e4\ud589\ub418\uc5b4 \uc751\ub2f5\uc744 \ud074\ub77c\uc774\uc5b8\ud2b8\uc5d0 \ubc18\ud658\ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>4. \ucee4\uc2a4\ud140 \ud50c\ub7ec\uadf8\uc778 \uac1c\ubc1c\ud558\uae30<\/h2>\n<p>Express\uc758 \ud50c\ub7ec\uadf8\uc778\uc740 \ubbf8\ub4e4\uc6e8\uc5b4\uc640 \ube44\uc2b7\ud558\uc9c0\ub9cc \ud2b9\uc815 \uae30\ub2a5\uc774\ub098 \ubaa8\ub4c8\uc744 \uc704\ud574 \uc124\uacc4\ub41c \uc77c\ubc18\uc801\uc778 \uae30\ub2a5\uc785\ub2c8\ub2e4. \ucee4\uc2a4\ud140 \ud50c\ub7ec\uadf8\uc778\uc744 \ub9cc\ub4e4\uae30 \uc704\ud574 \uc544\ub798\uc758 \ub2e8\uacc4\ub97c \ub530\ub974\uba74 \ub429\ub2c8\ub2e4.<\/p>\n<h3>4.1. \ud50c\ub7ec\uadf8\uc778 \uad6c\uc870<\/h3>\n<p>\ud50c\ub7ec\uadf8\uc778\uc740 \ubcf4\ud1b5 \uc544\ub798\uc758 \ud615\uc2dd\uc744 \uac00\uc9c0\uace0 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<pre><code>module.exports = function(options) {\n    return function(req, res, next) {\n        \/\/ \ud50c\ub7ec\uadf8\uc778 \ub85c\uc9c1\n        next();\n    };\n};<\/code><\/pre>\n<h3>4.2. \ud50c\ub7ec\uadf8\uc778 \uc608\uc81c<\/h3>\n<p>\ub2e4\uc74c\uc740 \uc694\uccad\uc5d0 \ub300\ud574 \ud2b9\uc815 \uac80\uc99d\uc744 \ucd94\uac00\ud558\ub294 \uac04\ub2e8\ud55c \ud50c\ub7ec\uadf8\uc778\uc744 \ub9cc\ub4dc\ub294 \uc608\uc81c\uc785\ub2c8\ub2e4:<\/p>\n<pre><code>function validateRequest(options) {\n    return function(req, res, next) {\n        const apiKey = req.headers['x-api-key'];\n        \n        if (apiKey === options.apiKey) {\n            next(); \/\/ \uc62c\ubc14\ub978 API \ud0a4\uac00 \uc81c\uacf5\ub418\uba74 \ub2e4\uc74c\uc73c\ub85c \uc9c4\ud589\n        } else {\n            res.status(403).send('Forbidden: Invalid API key');\n        }\n    };\n}\n\n\/\/ \ud50c\ub7ec\uadf8\uc778 \uc0ac\uc6a9 \uc608\nconst express = require('express');\nconst app = express();\n\nconst apiKeyPlugin = validateRequest({ apiKey: 'my-secret-key' });\napp.use(apiKeyPlugin);\n\n\/\/ \ub77c\uc6b0\ud2b8 \uc815\uc758\napp.get('\/', (req, res) =&gt; {\n    res.send('\uc548\ub155\ud558\uc138\uc694, \uc62c\ubc14\ub978 API \ud0a4\uac00 \uc788\uc2b5\ub2c8\ub2e4!');\n});\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. \uc5d0\ub7ec \ucc98\ub9ac \ubbf8\ub4e4\uc6e8\uc5b4<\/h2>\n<p>Express\uc5d0\uc11c \uc5d0\ub7ec \ucc98\ub9ac\ub294 \ub2e4\ub978 \ubbf8\ub4e4\uc6e8\uc5b4\uc640 \ub3d9\uc77c\ud558\uac8c \ucc98\ub9ac\ub418\uc9c0\ub9cc, \uc5d0\ub7ec \ucc98\ub9ac \ubbf8\ub4e4\uc6e8\uc5b4\uc758 \uccab \ubc88\uc9f8 \ub9e4\uac1c\ubcc0\uc218\ub294 \uc5d0\ub7ec \uac1d\uccb4\uc785\ub2c8\ub2e4. \uc5d0\ub7ec \ucc98\ub9ac \ubbf8\ub4e4\uc6e8\uc5b4\ub294 \ub2e4\uc74c\uacfc \uac19\uc774 \uc815\uc758\ud569\ub2c8\ub2e4:<\/p>\n<pre><code>app.use((err, req, res, next) =&gt; {\n    console.error(err.stack);\n    res.status(500).send('\ubb34\uc5b8\uac00 \uc798\ubabb\ub418\uc5c8\uc2b5\ub2c8\ub2e4!');\n});<\/code><\/pre>\n<h3>5.1. \uc5d0\ub7ec \ucc98\ub9ac \ubbf8\ub4e4\uc6e8\uc5b4 \uc608\uc81c<\/h3>\n<p>\uc544\ub798\ub294 \uac04\ub2e8\ud55c \uc5d0\ub7ec \ubc1c\uc0dd \uc608\uc81c\ub97c \ud3ec\ud568\ud55c Express \uc11c\ubc84\uc785\ub2c8\ub2e4:<\/p>\n<pre><code>const express = require('express');\nconst app = express();\n\n\/\/ \ub77c\uc6b0\ud2b8 \uc815\uc758\napp.get('\/', (req, res) =&gt; {\n    res.send('\uc548\ub155\ud558\uc138\uc694, Express!');\n});\n\n\/\/ \uc758\ub3c4\uc801\uc778 \uc5d0\ub7ec \ubc1c\uc0dd\napp.get('\/error', (req, res, next) =&gt; {\n    next(new Error('\uc758\ub3c4\uc801\uc778 \uc5d0\ub7ec \ubc1c\uc0dd'));\n});\n\n\/\/ \uc5d0\ub7ec \ucc98\ub9ac \ubbf8\ub4e4\uc6e8\uc5b4\napp.use((err, req, res, next) =&gt; {\n    console.error(err.stack);\n    res.status(500).send('\ubb34\uc5b8\uac00 \uc798\ubabb\ub418\uc5c8\uc2b5\ub2c8\ub2e4!');\n});\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>6. \ub85c\uae45 \ubbf8\ub4e4\uc6e8\uc5b4 \uc608\uc81c<\/h2>\n<p>\ub85c\uadf8\ub97c \ub0a8\uae30\ub294 \uac83\uc740 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \ubb38\uc81c\ub97c \uc9c4\ub2e8\ud558\ub294 \ub370 \ud575\uc2ec\uc801\uc778 \uc5ed\ud560\uc744 \ud569\ub2c8\ub2e4. \ub2e4\uc74c\uc740 \uc694\uccad\uc744 \uae30\ub85d\ud558\ub294 \ucee4\uc2a4\ud140 \ub85c\uae45 \ubbf8\ub4e4\uc6e8\uc5b4\uc758 \uc608\uc785\ub2c8\ub2e4:<\/p>\n<pre><code>function loggingMiddleware(req, res, next) {\n    const currentDate = new Date().toISOString();\n    console.log(`[${currentDate}] ${req.method} ${req.url}`);\n    next();\n}\n\n\/\/ \uc11c\ubc84 \uc124\uc815\nconst express = require('express');\nconst app = express();\napp.use(loggingMiddleware);\n\n\/\/ \ub77c\uc6b0\ud2b8 \uc815\uc758\napp.get('\/', (req, res) =&gt; {\n    res.send('\uc548\ub155\ud558\uc138\uc694, Express!');\n});\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>7. \uc131\ub2a5 \ucd5c\uc801\ud654\ub97c \uc704\ud55c \ubbf8\ub4e4\uc6e8\uc5b4<\/h2>\n<p>\ubbf8\ub4e4\uc6e8\uc5b4\ub294 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc131\ub2a5\uc5d0 \uc601\ud5a5\uc744 \ubbf8\uce60 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub2e4\uc74c\uc740 \uc131\ub2a5\uc744 \ucd5c\uc801\ud654\ud558\uae30 \uc704\ud55c \uba87 \uac00\uc9c0 \ud301\uc785\ub2c8\ub2e4:<\/p>\n<ul>\n<li>\ubbf8\ub4e4\uc6e8\uc5b4\ub294 \ud544\uc694\ud55c \uacbd\uc6b0\uc5d0\ub9cc \ub4f1\ub85d\ud558\uc2ed\uc2dc\uc624.<\/li>\n<li>\ubd88\ud544\uc694\ud55c \uc694\uccad\uc744 \ubc29\uc9c0\ud558\uae30 \uc704\ud574 \uc870\uac74\ubd80 \ubbf8\ub4e4\uc6e8\uc5b4\ub97c \uc0ac\uc6a9\ud558\uc2ed\uc2dc\uc624.<\/li>\n<li>\ud504\ub85c\ub355\uc158 \ud658\uacbd\uc5d0\uc11c\ub294 \uac1c\ubc1c\uc6a9 \ubbf8\ub4e4\uc6e8\uc5b4\ub97c \ube44\ud65c\uc131\ud654\ud558\uc2ed\uc2dc\uc624.<\/li>\n<\/ul>\n<h2>8. \uacb0\ub860<\/h2>\n<p>\uc774\ubc88 \uae00\uc5d0\uc11c\ub294 Express\uc5d0\uc11c \ucee4\uc2a4\ud140 \ubbf8\ub4e4\uc6e8\uc5b4 \ubc0f \ud50c\ub7ec\uadf8\uc778\uc744 \uac1c\ubc1c\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uc558\uc2b5\ub2c8\ub2e4. \ubbf8\ub4e4\uc6e8\uc5b4\ub97c \ud1b5\ud574 \uc694\uccad \ucc98\ub9ac \uacfc\uc815\uc744 \uc720\uc5f0\ud558\uac8c \uc81c\uc5b4\ud560 \uc218 \uc788\uc73c\uba70, \uc774\ub97c \ud1b5\ud574 \ubcf4\ub2e4 \ud6a8\uc728\uc801\uc774\uace0 \uc720\uc9c0\ubcf4\uc218\ud558\uae30 \uc26c\uc6b4 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub2e4\uc591\ud55c \uc608\uc81c\ub97c \ud1b5\ud574 \ubbf8\ub4e4\uc6e8\uc5b4\uc758 \uc791\uc131\uacfc \ub4f1\ub85d, \uc0ac\uc6a9 \ubc29\ubc95\uc744 \uc0b4\ud3b4\ubcf4\uc558\uc73c\ub2c8, \uc5ec\ub7ec\ubd84\uc758 \ud504\ub85c\uc81d\ud2b8\uc5d0 \uc774\ub7ec\ud55c \ubbf8\ub4e4\uc6e8\uc5b4\ub97c \uc801\uc6a9\ud574 \ubcf4\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4.<\/p>\n<p>\ub354 \ub098\uc544\uac00, Express\uc758 \uae30\ub2a5\uc744 \ud65c\uc6a9\ud558\uc5ec \uc790\uc2e0\ub9cc\uc758 \ud50c\ub7ec\uadf8\uc778\uc744 \uac1c\ubc1c\ud558\uace0, \ud544\uc694\uc5d0 \ub530\ub77c \uc11c\ubc84\ub97c \ucd5c\uc801\ud654\ud558\ub294 \ubc29\ubc95\uc744 \uace0\ubbfc\ud574 \ubcf4\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4. \ub354 \ubcf5\uc7a1\ud55c \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c\ub294 \ub2e4\uc218\uc758 \ubbf8\ub4e4\uc6e8\uc5b4\uac00 \uc0c1\ud638\uc791\uc6a9\ud558\uba70, \uc774\ub7ec\ud55c \uc0c1\ud638\uc791\uc6a9\uc744 \uc774\ud574\ud558\ub294 \uac83\uc774 \uc911\uc694\ud569\ub2c8\ub2e4. \ucee4\uc2a4\ud140 \ubbf8\ub4e4\uc6e8\uc5b4\ub97c \ud65c\uc6a9\ud558\uc5ec \uae30\ub2a5\uc744 \ud655\uc7a5\ud558\uace0, \uc131\ub2a5\uc744 \ucd5c\uc801\ud654\ud558\ub294 \uac15\ub825\ud55c Express \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ub9cc\ub4e4\uc5b4 \ubcf4\uc2ed\uc2dc\uc624.<\/p>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Node.js\uc758 Express\ub294 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c\uc744 \uc704\ud55c \uac15\ub825\ud558\uace0 \uc720\uc5f0\ud55c \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. Express\uc758 \uac00\uc7a5 \ud070 \uc7a5\uc810\u4e4b\u4e00\uc740 \ubbf8\ub4e4\uc6e8\uc5b4(middleware)\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc694\uccad\uacfc \uc751\ub2f5\uc744 \ucc98\ub9ac\ud560 \uc218 \uc788\ub294 \uae30\ub2a5\uc785\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 Express\uc5d0\uc11c \ucee4\uc2a4\ud140 \ubbf8\ub4e4\uc6e8\uc5b4\uc640 \ud50c\ub7ec\uadf8\uc778\uc744 \uac1c\ubc1c\ud558\ub294 \ubc29\ubc95\uc744 \uc790\uc138\ud788 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. Express \ubbf8\ub4e4\uc6e8\uc5b4\ub780? \ubbf8\ub4e4\uc6e8\uc5b4\ub294 \uc694\uccad(Request)\uacfc \uc751\ub2f5(Response) \uac1d\uccb4 \uc0ac\uc774\uc5d0\uc11c \uc2e4\ud589\ub418\ub294 \ud568\uc218\uc785\ub2c8\ub2e4. \uc774 \ud568\uc218\ub294 \uc694\uccad\uc744 \ucc98\ub9ac\ud558\uac70\ub098 \uc694\uccad\/\uc751\ub2f5 \uac1d\uccb4\ub97c \ubcc0\uacbd\ud560 \uc218 \uc788\ub294 \uae30\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. Express\uc5d0\uc11c \ubbf8\ub4e4\uc6e8\uc5b4\ub294 \ub2e4\uc74c\uacfc &hellip; <a href=\"https:\/\/atmokpo.com\/w\/38324\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;Express \uac1c\ubc1c \uac15\uc88c, \ucee4\uc2a4\ud140 \ubbf8\ub4e4\uc6e8\uc5b4 \ubc0f \ud50c\ub7ec\uadf8\uc778 \uac1c\ubc1c\ud558\uae30&#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-38324","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, \ucee4\uc2a4\ud140 \ubbf8\ub4e4\uc6e8\uc5b4 \ubc0f \ud50c\ub7ec\uadf8\uc778 \uac1c\ubc1c\ud558\uae30 - \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\/38324\/\" \/>\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, \ucee4\uc2a4\ud140 \ubbf8\ub4e4\uc6e8\uc5b4 \ubc0f \ud50c\ub7ec\uadf8\uc778 \uac1c\ubc1c\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"Node.js\uc758 Express\ub294 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c\uc744 \uc704\ud55c \uac15\ub825\ud558\uace0 \uc720\uc5f0\ud55c \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. Express\uc758 \uac00\uc7a5 \ud070 \uc7a5\uc810\u4e4b\u4e00\uc740 \ubbf8\ub4e4\uc6e8\uc5b4(middleware)\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc694\uccad\uacfc \uc751\ub2f5\uc744 \ucc98\ub9ac\ud560 \uc218 \uc788\ub294 \uae30\ub2a5\uc785\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 Express\uc5d0\uc11c \ucee4\uc2a4\ud140 \ubbf8\ub4e4\uc6e8\uc5b4\uc640 \ud50c\ub7ec\uadf8\uc778\uc744 \uac1c\ubc1c\ud558\ub294 \ubc29\ubc95\uc744 \uc790\uc138\ud788 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. Express \ubbf8\ub4e4\uc6e8\uc5b4\ub780? \ubbf8\ub4e4\uc6e8\uc5b4\ub294 \uc694\uccad(Request)\uacfc \uc751\ub2f5(Response) \uac1d\uccb4 \uc0ac\uc774\uc5d0\uc11c \uc2e4\ud589\ub418\ub294 \ud568\uc218\uc785\ub2c8\ub2e4. \uc774 \ud568\uc218\ub294 \uc694\uccad\uc744 \ucc98\ub9ac\ud558\uac70\ub098 \uc694\uccad\/\uc751\ub2f5 \uac1d\uccb4\ub97c \ubcc0\uacbd\ud560 \uc218 \uc788\ub294 \uae30\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. Express\uc5d0\uc11c \ubbf8\ub4e4\uc6e8\uc5b4\ub294 \ub2e4\uc74c\uacfc &hellip; \ub354 \ubcf4\uae30 &quot;Express \uac1c\ubc1c \uac15\uc88c, \ucee4\uc2a4\ud140 \ubbf8\ub4e4\uc6e8\uc5b4 \ubc0f \ud50c\ub7ec\uadf8\uc778 \uac1c\ubc1c\ud558\uae30&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/38324\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-01T17:17:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:44:38+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=\"1\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/38324\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38324\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"Express \uac1c\ubc1c \uac15\uc88c, \ucee4\uc2a4\ud140 \ubbf8\ub4e4\uc6e8\uc5b4 \ubc0f \ud50c\ub7ec\uadf8\uc778 \uac1c\ubc1c\ud558\uae30\",\"datePublished\":\"2024-11-01T17:17:36+00:00\",\"dateModified\":\"2024-11-26T06:44:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38324\/\"},\"wordCount\":19,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"Express\uc11c\ubc84\uac1c\ubc1c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/38324\/\",\"url\":\"https:\/\/atmokpo.com\/w\/38324\/\",\"name\":\"Express \uac1c\ubc1c \uac15\uc88c, \ucee4\uc2a4\ud140 \ubbf8\ub4e4\uc6e8\uc5b4 \ubc0f \ud50c\ub7ec\uadf8\uc778 \uac1c\ubc1c\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-01T17:17:36+00:00\",\"dateModified\":\"2024-11-26T06:44:38+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38324\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/38324\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/38324\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Express \uac1c\ubc1c \uac15\uc88c, \ucee4\uc2a4\ud140 \ubbf8\ub4e4\uc6e8\uc5b4 \ubc0f \ud50c\ub7ec\uadf8\uc778 \uac1c\ubc1c\ud558\uae30\"}]},{\"@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, \ucee4\uc2a4\ud140 \ubbf8\ub4e4\uc6e8\uc5b4 \ubc0f \ud50c\ub7ec\uadf8\uc778 \uac1c\ubc1c\ud558\uae30 - \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\/38324\/","og_locale":"ko_KR","og_type":"article","og_title":"Express \uac1c\ubc1c \uac15\uc88c, \ucee4\uc2a4\ud140 \ubbf8\ub4e4\uc6e8\uc5b4 \ubc0f \ud50c\ub7ec\uadf8\uc778 \uac1c\ubc1c\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"Node.js\uc758 Express\ub294 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c\uc744 \uc704\ud55c \uac15\ub825\ud558\uace0 \uc720\uc5f0\ud55c \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. Express\uc758 \uac00\uc7a5 \ud070 \uc7a5\uc810\u4e4b\u4e00\uc740 \ubbf8\ub4e4\uc6e8\uc5b4(middleware)\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc694\uccad\uacfc \uc751\ub2f5\uc744 \ucc98\ub9ac\ud560 \uc218 \uc788\ub294 \uae30\ub2a5\uc785\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 Express\uc5d0\uc11c \ucee4\uc2a4\ud140 \ubbf8\ub4e4\uc6e8\uc5b4\uc640 \ud50c\ub7ec\uadf8\uc778\uc744 \uac1c\ubc1c\ud558\ub294 \ubc29\ubc95\uc744 \uc790\uc138\ud788 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. Express \ubbf8\ub4e4\uc6e8\uc5b4\ub780? \ubbf8\ub4e4\uc6e8\uc5b4\ub294 \uc694\uccad(Request)\uacfc \uc751\ub2f5(Response) \uac1d\uccb4 \uc0ac\uc774\uc5d0\uc11c \uc2e4\ud589\ub418\ub294 \ud568\uc218\uc785\ub2c8\ub2e4. \uc774 \ud568\uc218\ub294 \uc694\uccad\uc744 \ucc98\ub9ac\ud558\uac70\ub098 \uc694\uccad\/\uc751\ub2f5 \uac1d\uccb4\ub97c \ubcc0\uacbd\ud560 \uc218 \uc788\ub294 \uae30\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. Express\uc5d0\uc11c \ubbf8\ub4e4\uc6e8\uc5b4\ub294 \ub2e4\uc74c\uacfc &hellip; \ub354 \ubcf4\uae30 \"Express \uac1c\ubc1c \uac15\uc88c, \ucee4\uc2a4\ud140 \ubbf8\ub4e4\uc6e8\uc5b4 \ubc0f \ud50c\ub7ec\uadf8\uc778 \uac1c\ubc1c\ud558\uae30\"","og_url":"https:\/\/atmokpo.com\/w\/38324\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-01T17:17:36+00:00","article_modified_time":"2024-11-26T06:44:38+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":"1\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/38324\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/38324\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"Express \uac1c\ubc1c \uac15\uc88c, \ucee4\uc2a4\ud140 \ubbf8\ub4e4\uc6e8\uc5b4 \ubc0f \ud50c\ub7ec\uadf8\uc778 \uac1c\ubc1c\ud558\uae30","datePublished":"2024-11-01T17:17:36+00:00","dateModified":"2024-11-26T06:44:38+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/38324\/"},"wordCount":19,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["Express\uc11c\ubc84\uac1c\ubc1c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/38324\/","url":"https:\/\/atmokpo.com\/w\/38324\/","name":"Express \uac1c\ubc1c \uac15\uc88c, \ucee4\uc2a4\ud140 \ubbf8\ub4e4\uc6e8\uc5b4 \ubc0f \ud50c\ub7ec\uadf8\uc778 \uac1c\ubc1c\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-01T17:17:36+00:00","dateModified":"2024-11-26T06:44:38+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/38324\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/38324\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/38324\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"Express \uac1c\ubc1c \uac15\uc88c, \ucee4\uc2a4\ud140 \ubbf8\ub4e4\uc6e8\uc5b4 \ubc0f \ud50c\ub7ec\uadf8\uc778 \uac1c\ubc1c\ud558\uae30"}]},{"@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":[{"id":38332,"url":"https:\/\/atmokpo.com\/w\/38332\/","url_meta":{"origin":38324,"position":0},"title":"Express \uac1c\ubc1c \uac15\uc88c, \ubcf4\uc548 \uace0\ub824\uc0ac\ud56d \ubc0f CORS \uc815\ucc45","author":"root","date":"2024\ub144 11\uc6d4 01\uc77c","format":false,"excerpt":"\uc791\uc131\uc790: \uc870\uad11\ud615 \uc791\uc131\uc77c: 2024\ub144 11\uc6d4 26\uc77c 1. \uc11c\ub860 Express\ub294 Node.js\ub97c \uae30\ubc18\uc73c\ub85c \ud55c \uacbd\ub7c9 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \ubc31\uc5d4\ub4dc \uc11c\ubc84 \uac1c\ubc1c\uc5d0 \ub110\ub9ac \uc0ac\uc6a9\ub429\ub2c8\ub2e4. \uadf8\ub7ec\ub098, \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud560 \ub54c \ubcf4\uc548\uc740 \uac00\uc7a5 \uc911\uc694\ud55c \uace0\ub824\uc0ac\ud56d \uc911 \ud558\ub098\uc785\ub2c8\ub2e4. \uc774 \uac15\uc88c\uc5d0\uc11c\ub294 Express \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0 \ub300\ud55c \ubcf4\uc548 \uace0\ub824\uc0ac\ud56d\uacfc CORS(\uad50\ucc28 \ucd9c\ucc98 \ub9ac\uc18c\uc2a4 \uacf5\uc720) \uc815\ucc45\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 2. Express\uc758 \ubcf4\uc548 \uace0\ub824\uc0ac\ud56d\u2026","rel":"","context":"&quot;Express\uc11c\ubc84\uac1c\ubc1c&quot;\uc5d0\uc11c","block_context":{"text":"Express\uc11c\ubc84\uac1c\ubc1c","link":"https:\/\/atmokpo.com\/w\/category\/express%ec%84%9c%eb%b2%84%ea%b0%9c%eb%b0%9c\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":41118,"url":"https:\/\/atmokpo.com\/w\/41118\/","url_meta":{"origin":38324,"position":1},"title":"45.Next.js\uc640 Nest.js\uc5d0\uc11c API \uce90\uc2f1\uacfc \uc131\ub2a5 \ucd5c\uc801\ud654, API \uc751\ub2f5 \uc18d\ub3c4\ub97c \ub192\uc774\uae30 \uc704\ud55c \ucd5c\uc801\ud654 \uc804\ub7b5","author":"root","date":"2024\ub144 11\uc6d4 06\uc77c","format":false,"excerpt":"\uc791\uc131\uc77c: 2023\ub144 10\uc6d4 1\uc77c \uc800\uc790: \uc870\uad11\ud615 1. \uc11c\ub860 \uc624\ub298\ub0a0 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc740 \uc0ac\uc6a9\uc790 \uacbd\ud5d8\uc744 \uac1c\uc120\ud558\uae30 \uc704\ud574 \ube60\ub978 \uc751\ub2f5 \uc18d\ub3c4\ub97c \uc694\uad6c\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4. Next.js\uc640 Nest.js\ub294 \uac01\uac01 \ud504\ub860\ud2b8\uc5d4\ub4dc\uc640 \ubc31\uc5d4\ub4dc\uc5d0\uc11c \ub110\ub9ac \uc0ac\uc6a9\ub418\ub294 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \uc774 \ub458\uc758 \uc870\ud569\uc744 \ud65c\uc6a9\ud558\uba74 \ud604\ub300\uc801\uc778 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ud6a8\uc728\uc801\uc73c\ub85c \uad6c\ucd95\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uadf8\ub7ec\ub098 \ub300\uaddc\ubaa8 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c\ub294 API \uc751\ub2f5 \uc18d\ub3c4\ub97c \ub192\uc774\uae30 \uc704\ud55c \ub2e4\uc591\ud55c \uc804\ub7b5\uc774 \ud544\uc694\ud569\ub2c8\ub2e4.\u2026","rel":"","context":"&quot;nextjs&quot;\uc5d0\uc11c","block_context":{"text":"nextjs","link":"https:\/\/atmokpo.com\/w\/category\/nextjs\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":43505,"url":"https:\/\/atmokpo.com\/w\/43505\/","url_meta":{"origin":38324,"position":2},"title":"[Dart \uc5b8\uc5b4\uac15\uc88c]  019. Dart\uc758 \ub77c\uc774\ube0c\ub7ec\ub9ac \ubc0f \ud504\ub808\uc784\uc6cc\ud06c \uc18c\uac1c, \uc8fc\uc694 \ub77c\uc774\ube0c\ub7ec\ub9ac \uc18c\uac1c (http, routing \ub4f1)","author":"root","date":"2024\ub144 11\uc6d4 28\uc77c","format":false,"excerpt":"Dart\ub294 \uad6c\uae00\uc774 \uac1c\ubc1c\ud55c \ud504\ub85c\uadf8\ub798\ubc0d \uc5b8\uc5b4\ub85c, \uc8fc\ub85c \ubaa8\ubc14\uc77c \ubc0f \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c\uc5d0 \uc0ac\uc6a9\ub429\ub2c8\ub2e4. Dart\ub294 \ub2e4\uc591\ud55c \ub77c\uc774\ube0c\ub7ec\ub9ac\uc640 \ud504\ub808\uc784\uc6cc\ud06c\ub97c \uc81c\uacf5\ud558\uc5ec \uac1c\ubc1c\uc790\ub4e4\uc774 \ud6a8\uc728\uc801\uc73c\ub85c \uc18c\ud504\ud2b8\uc6e8\uc5b4\ub97c \uac1c\ubc1c\ud560 \uc218 \uc788\ub3c4\ub85d \uc9c0\uc6d0\ud569\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 Dart\uc758 \uc8fc\uc694 \ub77c\uc774\ube0c\ub7ec\ub9ac\uc640 \ud504\ub808\uc784\uc6cc\ud06c\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. Dart \ub77c\uc774\ube0c\ub7ec\ub9ac \uac1c\uc694 Dart\uc758 \ub77c\uc774\ube0c\ub7ec\ub9ac\ub294 \uae30\ub2a5 \ub2e8\uc704\ub85c \uad6c\uc131\ub418\uc5b4 \uc788\uc73c\uba70, \ud2b9\uc815 \uc791\uc5c5\uc744 \uc27d\uac8c \uc218\ud589\ud560 \uc218 \uc788\ub3c4\ub85d \ub3d5\uc2b5\ub2c8\ub2e4. Dart\u2026","rel":"","context":"&quot;\ud50c\ub7ec\ud130 \uac15\uc88c&quot;\uc5d0\uc11c","block_context":{"text":"\ud50c\ub7ec\ud130 \uac15\uc88c","link":"https:\/\/atmokpo.com\/w\/category\/%ed%94%8c%eb%9f%ac%ed%84%b0-%ea%b0%95%ec%a2%8c\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":38634,"url":"https:\/\/atmokpo.com\/w\/38634\/","url_meta":{"origin":38324,"position":3},"title":"DJango \uc11c\ubc84\uac1c\ubc1c, Django\uc758 \ub85c\uae45 \uc2dc\uc2a4\ud15c \uc774\ud574\ud558\uae30","author":"root","date":"2024\ub144 11\uc6d4 01\uc77c","format":false,"excerpt":"\uc791\uc131\uc77c: 2023\ub144 10\uc6d4 1\uc77c \uc791\uc131\uc790: \uc870\uad11\ud615 \ubaa9\ucc28 1. Django \ub85c\uae45 \uc2dc\uc2a4\ud15c \uac1c\uc694 2. \ub85c\uae45\uc758 \uc911\uc694\uc131 3. Django \ub85c\uae45 \uc124\uc815\ud558\uae30 4. \ub85c\uae45 \uba54\uc2dc\uc9c0 \ub808\ubca8 \uc774\ud574\ud558\uae30 5. \ub2e4\uc591\ud55c \ub85c\uae45 \ud578\ub4e4\ub7ec 6. \ucee4\uc2a4\ud140 \ub85c\uac70 \ub9cc\ub4e4\uae30 7. \ub85c\uae45 \uc5d0\ub7ec \ucc98\ub9ac\ud558\uae30 8. \uc2e4\uc6a9\uc801\uc778 \uc608\uc81c 9. Django \ub85c\uae45 \uc2dc\uc2a4\ud15c \ucd5c\uc801\ud654\ud558\uae30 10. \uacb0\ub860 1. Django \ub85c\uae45 \uc2dc\uc2a4\ud15c\u2026","rel":"","context":"&quot;DJango\uc11c\ubc84\uac1c\ubc1c&quot;\uc5d0\uc11c","block_context":{"text":"DJango\uc11c\ubc84\uac1c\ubc1c","link":"https:\/\/atmokpo.com\/w\/category\/django%ec%84%9c%eb%b2%84%ea%b0%9c%eb%b0%9c\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":41034,"url":"https:\/\/atmokpo.com\/w\/41034\/","url_meta":{"origin":38324,"position":4},"title":"31.\ub2e4\uad6d\uc5b4 \uc9c0\uc6d0 \ubc0f \ub85c\uceec\ub77c\uc774\uc81c\uc774\uc158, Next.js\uc758 i18n \uae30\ub2a5\uc744 \ud65c\uc6a9\ud55c \ub2e4\uad6d\uc5b4 \uc9c0\uc6d0","author":"root","date":"2024\ub144 11\uc6d4 06\uc77c","format":false,"excerpt":"\ud604\ub300 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \ub2e4\uad6d\uc5b4 \uc9c0\uc6d0\uc740 \ud544\uc218\uc801\uc785\ub2c8\ub2e4. \uc0ac\uc6a9\uc790 \uacbd\ud5d8\uc744 \ud5a5\uc0c1\uc2dc\ud0a4\uace0 \ub354 \ub9ce\uc740 \uc0ac\uc6a9\uc790\uc5d0\uac8c \ub2e4\uac00\uac08 \uc218 \uc788\ub294 \uae30\ud68c\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4. \ud2b9\ud788 \uae00\ub85c\ubc8c \uc2dc\uc7a5\uc5d0\uc11c \uacbd\uc7c1\ub825\uc744 \uc720\uc9c0\ud558\uae30 \uc704\ud574\uc11c\ub294 \ub85c\uceec\ub77c\uc774\uc81c\uc774\uc158(Localization)\uacfc \uad6d\uc81c\ud654(Internationalization)\uc758 \uc911\uc694\uc131\uc744 \uc778\uc2dd\ud574\uc57c \ud569\ub2c8\ub2e4. \uc774\ubc88 \uae00\uc5d0\uc11c\ub294 Next.js\uc758 i18n \uae30\ub2a5\uc744 \uc774\uc6a9\ud558\uc5ec \uc5b4\ub5bb\uac8c \ub2e4\uad6d\uc5b4 \uc9c0\uc6d0\uc744 \uad6c\ud604\ud560 \uc218 \uc788\ub294\uc9c0 \uc790\uc138\ud788 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. \uad6d\uc81c\ud654(Internationalization)\uc640 \ub85c\uceec\ub77c\uc774\uc81c\uc774\uc158(Localization)\uc758 \uc774\ud574\uad6d\uc81c\ud654(Internationalization, i18n)\ub294 \uc18c\ud504\ud2b8\uc6e8\uc5b4\uac00 \ub2e4\uc591\ud55c \uc5b8\uc5b4\uc640\u2026","rel":"","context":"&quot;nextjs&quot;\uc5d0\uc11c","block_context":{"text":"nextjs","link":"https:\/\/atmokpo.com\/w\/category\/nextjs\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":41114,"url":"https:\/\/atmokpo.com\/w\/41114\/","url_meta":{"origin":38324,"position":5},"title":"2.Next.js\uc640 Nest.js \uac1c\uc694\uc640 \ud658\uacbd \uc124\uc815, \uac1c\ubc1c \ud658\uacbd \uc124\uc815 \ubc0f \ucd08\uae30 \ud504\ub85c\uc81d\ud2b8 \uad6c\uc870 \uc7a1\uae30","author":"root","date":"2024\ub144 11\uc6d4 06\uc77c","format":false,"excerpt":"\uc774 \ube14\ub85c\uadf8 \ud3ec\uc2a4\ud2b8\uc5d0\uc11c\ub294 Next.js\uc640 Nest.js\uc758 \uae30\ubcf8 \uac1c\uc694\uc640 \ud568\uaed8 \uac1c\ubc1c \ud658\uacbd \uc124\uc815, \ucd08\uae30 \ud504\ub85c\uc81d\ud2b8 \uad6c\uc131\uc744 \uc790\uc138\ud788 \uc124\uba85\ud569\ub2c8\ub2e4. 1. Next.js \uac1c\uc694 Next.js\ub294 React \uae30\ubc18\uc758 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \uc11c\ubc84 \uc0ac\uc774\ub4dc \ub80c\ub354\ub9c1(SSR) \ubc0f \uc815\uc801 \uc6f9\uc0ac\uc774\ud2b8 \uc0dd\uc131(SSG)\uc744 \uc9c0\uc6d0\ud569\ub2c8\ub2e4. \uc774\ub97c \ud1b5\ud574 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc131\ub2a5\uc744 \ucd5c\uc801\ud654\ud558\uace0 SEO \uce5c\ud654\uc801\uc778 \ud398\uc774\uc9c0\ub97c \uc0dd\uc131\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. Next.js\ub294 \ub2e4\uc591\ud55c \uae30\ub2a5\uc744 \uc81c\uacf5\ud558\uba70, \ud398\uc774\uc9c0 \uae30\ubc18\uc758 \ub77c\uc6b0\ud305\u2026","rel":"","context":"&quot;nextjs&quot;\uc5d0\uc11c","block_context":{"text":"nextjs","link":"https:\/\/atmokpo.com\/w\/category\/nextjs\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38324","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=38324"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38324\/revisions"}],"predecessor-version":[{"id":38325,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38324\/revisions\/38325"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=38324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=38324"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=38324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}