{"id":38326,"date":"2024-11-01T17:17:37","date_gmt":"2024-11-01T17:17:37","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=38326"},"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%84%b8%ec%85%98-%eb%b0%8f-%ec%bf%a0%ed%82%a4%eb%a5%bc-%ec%9d%b4%ec%9a%a9%ed%95%9c-%ec%82%ac%ec%9a%a9%ec%9e%90-%ec%9d%b8%ec%a6%9d","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/38326\/","title":{"rendered":"Express \uac1c\ubc1c \uac15\uc88c, \uc138\uc158 \ubc0f \ucfe0\ud0a4\ub97c \uc774\uc6a9\ud55c \uc0ac\uc6a9\uc790 \uc778\uc99d"},"content":{"rendered":"<p><body><\/p>\n<p>\n        \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \uc0ac\uc6a9\uc790 \uc778\uc99d\uc740 \ub9e4\uc6b0 \uc911\uc694\ud55c \uc694\uc18c\uc785\ub2c8\ub2e4. \uc0ac\uc6a9\uc790\uac00 \uc790\uc2e0\uc744 \ud655\uc778\ud560 \uc218 \uc788\ub3c4\ub85d \ud574\uc8fc\uba70, \uc774\ub294 \uac1c\uc778\ud654\ub41c \uacbd\ud5d8\uacfc \ubcf4\uc548\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. \uc774 \uac15\uc88c\uc5d0\uc11c\ub294 <code>Express<\/code> \ud504\ub808\uc784\uc6cc\ud06c\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc138\uc158\uacfc \ucfe0\ud0a4\ub97c \ud65c\uc6a9\ud55c \uc0ac\uc6a9\uc790 \uc778\uc99d \uc2dc\uc2a4\ud15c\uc744 \uad6c\ucd95\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc124\uba85\ud569\ub2c8\ub2e4. \uc774\ub97c \uc704\ud574 <code>express-session<\/code>\uacfc <code>cookie-parser<\/code> \ubbf8\ub4e4\uc6e8\uc5b4\ub97c \uc0ac\uc6a9\ud560 \uac83\uc785\ub2c8\ub2e4.\n    <\/p>\n<h2>1. Express \ubc0f \uad00\ub828 \ubaa8\ub4c8 \uc124\uce58<\/h2>\n<p>\n        \uac1c\ubc1c\uc744 \uc2dc\uc791\ud558\uae30 \uc704\ud574 \uc6b0\uc120 <code>Express<\/code>\uc640 \ud544\uc694\ud55c \ubbf8\ub4e4\uc6e8\uc5b4\ub97c \uc124\uce58\ud574\uc57c \ud569\ub2c8\ub2e4. <code>npm<\/code>\uc744 \uc0ac\uc6a9\ud558\uc5ec \ub2e4\uc74c\uacfc \uac19\uc774 \uc124\uce58\ud569\ub2c8\ub2e4:\n    <\/p>\n<pre>\n        <code>npm install express express-session cookie-parser body-parser<\/code>\n    <\/pre>\n<p>\n        \uc5ec\uae30\uc11c \uc124\uce58\ub41c \uac01 \ud328\ud0a4\uc9c0\uc758 \uc5ed\ud560\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li><code>express<\/code>: Node.js\ub97c \uc704\ud55c \uac04\ub2e8\ud55c \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ud504\ub808\uc784\uc6cc\ud06c<\/li>\n<li><code>express-session<\/code>: \uc138\uc158 \ubbf8\ub4e4\uc6e8\uc5b4\ub85c, \ud074\ub77c\uc774\uc5b8\ud2b8\uc758 \uc138\uc158\uc744 \uad00\ub9ac\ud569\ub2c8\ub2e4<\/li>\n<li><code>cookie-parser<\/code>: \ucfe0\ud0a4\ub97c \uc27d\uac8c \ud30c\uc2f1\ud560 \uc218 \uc788\uac8c \ud574\uc8fc\ub294 \ubbf8\ub4e4\uc6e8\uc5b4\uc785\ub2c8\ub2e4<\/li>\n<li><code>body-parser<\/code>: \uc694\uccad \ubcf8\ubb38(body)\uc744 \ud30c\uc2f1\ud560 \uc218 \uc788\ub3c4\ub85d \ub3c4\uc640\uc90d\ub2c8\ub2e4<\/li>\n<\/ul>\n<h2>2. \uae30\ubcf8 Express \uc11c\ubc84 \uc124\uc815<\/h2>\n<p>\n        \uae30\ubcf8 Express \uc11c\ubc84\ub97c \uc124\uc815\ud558\ub294 \ubc29\ubc95\uc740 \uac04\ub2e8\ud569\ub2c8\ub2e4. \uc11c\ubc84 \ud30c\uc77c\uc744 \uc0dd\uc131\ud558\uace0 \ud544\uc694\ud55c \ubaa8\ub4c8\uc744 \uc784\ud3ec\ud2b8\ud55c \ud6c4, \uc11c\ubc84\ub97c \uc2dc\uc791\ud558\ub294 \ucf54\ub4dc\ub97c \uc791\uc131\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<pre>\n        <code>\nconst express = require('express');\nconst session = require('express-session');\nconst cookieParser = require('cookie-parser');\nconst bodyParser = require('body-parser');\n\nconst app = express();\nconst PORT = 3000;\n\n\/\/ \ubbf8\ub4e4\uc6e8\uc5b4 \uc124\uc815\napp.use(cookieParser());\napp.use(bodyParser.urlencoded({ extended: true }));\napp.use(session({\n    secret: '\ube44\ubc00 \ud0a4', \/\/ \uc138\uc158\uc744 \uc554\ud638\ud654\ud558\ub294 \ub370 \uc0ac\uc6a9\ud560 \ud0a4\n    resave: false,\n    saveUninitialized: true,\n    cookie: { secure: false } \/\/ SSL \uc0ac\uc6a9\uc2dc true\ub85c \ubcc0\uacbd\n}));\n\n\/\/ \uae30\ubcf8 \ub77c\uc6b0\ud130 \uc124\uc815\napp.get('\/', (req, res) =&gt; {\n    res.send('Welcome to the Express App');\n});\n\napp.listen(PORT, () =&gt; {\n    console.log(`\uc11c\ubc84\uac00 http:\/\/localhost:${PORT}\uc5d0\uc11c \uc2e4\ud589 \uc911\uc785\ub2c8\ub2e4.`);\n});\n        <\/code>\n    <\/pre>\n<p>\n        \uc704 \ucf54\ub4dc\ub97c \uc2e4\ud589\ud558\uba74 \uae30\ubcf8 Express \uc11c\ubc84\uac00 \uc900\ube44\ub429\ub2c8\ub2e4. \uc774\uc81c \uc0ac\uc6a9\uc790\uac00 \uc778\uc99d\ud560 \uc218 \uc788\ub3c4\ub85d \uc138\uc158\uc744 \uc124\uc815\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<h2>3. \uc0ac\uc6a9\uc790 \uc778\uc99d \ub77c\uc6b0\ud2b8 \ub9cc\ub4e4\uae30<\/h2>\n<p>\n        \uc0ac\uc6a9\uc790 \uc778\uc99d\uc744 \uc704\ud574 \ub85c\uadf8\uc778 \ubc0f \ub85c\uadf8\uc544\uc6c3 \ub77c\uc6b0\ud2b8\ub97c \ub9cc\ub4ed\ub2c8\ub2e4. \uc0ac\uc6a9\uc790\ub294 \ub85c\uadf8\uc778\ud560 \ub54c \uc138\uc158\uc774 \uc0dd\uc131\ub418\uace0 \ub85c\uadf8\uc544\uc6c3\ud558\uba74 \uc138\uc158\uc774 \uc0ad\uc81c\ub429\ub2c8\ub2e4.\n    <\/p>\n<pre>\n        <code>\n\/\/ \ub85c\uadf8\uc778 \ub77c\uc6b0\ud130\napp.post('\/login', (req, res) =&gt; {\n    const { username, password } = req.body;\n\n    \/\/ \uac04\ub2e8\ud55c \uc0ac\uc6a9\uc790 \uc778\uc99d (\uc2e4\uc81c\ub85c\ub294 \ub370\uc774\ud130\ubca0\uc774\uc2a4\ub97c \ud655\uc778\ud574\uc57c \ud568)\n    if (username === 'user' &amp;&amp; password === 'password') {\n        req.session.user = username; \/\/ \uc138\uc158\uc5d0 \uc0ac\uc6a9\uc790 \uc815\ubcf4\ub97c \uc800\uc7a5\n        res.send('\ub85c\uadf8\uc778 \uc131\uacf5!');\n    } else {\n        res.send('\ub85c\uadf8\uc778 \uc2e4\ud328: \uc798\ubabb\ub41c \uc0ac\uc6a9\uc790 \uc774\ub984 \ub610\ub294 \ube44\ubc00\ubc88\ud638');\n    }\n});\n\n\/\/ \ub85c\uadf8\uc544\uc6c3 \ub77c\uc6b0\ud130\napp.post('\/logout', (req, res) =&gt; {\n    req.session.destroy((err) =&gt; {\n        if (err) {\n            return res.send('\ub85c\uadf8\uc544\uc6c3 \uc2e4\ud328');\n        }\n        res.send('\ub85c\uadf8\uc544\uc6c3 \uc131\uacf5');\n    });\n});\n        <\/code>\n    <\/pre>\n<p>\n        \uc704\uc758 \ucf54\ub4dc\ub294 \uac04\ub2e8\ud55c \ub85c\uadf8\uc778 \ud504\ub85c\uc138\uc2a4\ub97c \ubcf4\uc5ec\uc90d\ub2c8\ub2e4. \uc2e4\uc81c \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c\ub294 \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc5d0\uc11c \uc0ac\uc6a9\uc790 \uc815\ubcf4\ub97c \ud655\uc778\ud558\ub294 \uac83\uc774 \uc88b\uc2b5\ub2c8\ub2e4. \uc774 \uc138\uc158 \uc815\ubcf4\ub97c \ud1b5\ud574 \uc0ac\uc6a9\uc790\uac00 \ub85c\uadf8\uc778 \uc0c1\ud0dc\uc778\uc9c0 \uc5ec\ubd80\ub97c \ud655\uc778\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<h2>4. \uc0ac\uc6a9\uc790\uac00 \ub85c\uadf8\uc778\ud588\ub294\uc9c0 \ud655\uc778\ud558\uae30<\/h2>\n<p>\n        \uc0ac\uc6a9\uc790\uac00 \ub85c\uadf8\uc778\ud588\ub294\uc9c0\ub97c \ud655\uc778\ud558\ub294 \ubbf8\ub4e4\uc6e8\uc5b4\ub97c \uc791\uc131\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \ubbf8\ub4e4\uc6e8\uc5b4\ub294 \ud2b9\uc815 \ub77c\uc6b0\ud2b8\uc5d0 \uc811\uadfc\ud558\uae30 \uc804\uc5d0 \ud638\ucd9c\ub418\uc5b4 \uc0ac\uc6a9\uc790\uc758 \uc778\uc99d \uc0c1\ud0dc\ub97c \ud655\uc778\ud569\ub2c8\ub2e4.\n    <\/p>\n<pre>\n        <code>\n\/\/ \uc778\uc99d \ubbf8\ub4e4\uc6e8\uc5b4\nfunction isAuthenticated(req, res, next) {\n    if (req.session.user) {\n        return next(); \/\/ \ub85c\uadf8\uc778\ud55c \uc0c1\ud0dc\n    } else {\n        res.status(401).send('\ub85c\uadf8\uc778 \ud544\uc694');\n    }\n}\n\n\/\/ \ubcf4\ud638\ub41c \ub77c\uc6b0\ud2b8\napp.get('\/dashboard', isAuthenticated, (req, res) =&gt; {\n    res.send(`\ud658\uc601\ud569\ub2c8\ub2e4, ${req.session.user}\ub2d8! \ub300\uc2dc\ubcf4\ub4dc\uc5d0 \uc624\uc2e0 \uac83\uc744 \ud658\uc601\ud569\ub2c8\ub2e4.`);\n});\n        <\/code>\n    <\/pre>\n<p>\n        \uc774\uc81c <code>\/dashboard<\/code> \uacbd\ub85c\ub85c \uc811\uadfc\ud560 \ub54c \uc0ac\uc6a9\uc790 \uc778\uc99d \uc0c1\ud0dc\ub97c \ud655\uc778\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub85c\uadf8\uc778\ud558\uc9c0 \uc54a\uc740 \uc0ac\uc6a9\uc790\ub294 401 \uc624\ub958 \uba54\uc2dc\uc9c0\ub97c \ubc1b\uac8c \ub429\ub2c8\ub2e4.\n    <\/p>\n<h2>5. \ucfe0\ud0a4\ub97c \uc774\uc6a9\ud55c \uc0ac\uc6a9\uc790 \uc778\uc99d<\/h2>\n<p>\n        \uc0ac\uc6a9\uc790\uac00 \ub85c\uadf8\uc778\ud560 \ub54c \ucfe0\ud0a4\ub97c \uc124\uc815\ud558\uc5ec \uc778\uc99d\uc744 \uc720\uc9c0\ud558\ub294 \ubc29\ubc95\ub3c4 \uc788\uc2b5\ub2c8\ub2e4. \ucfe0\ud0a4\uc5d0\ub294 \uc0ac\uc6a9\uc790 \uc815\ubcf4\ub97c \uc800\uc7a5\ud560 \uc218 \uc788\uc73c\uba70, \ud074\ub77c\uc774\uc5b8\ud2b8 \uce21\uc5d0\uc11c \uc27d\uac8c \uc811\uadfc\uc774 \uac00\ub2a5\ud569\ub2c8\ub2e4.\n    <\/p>\n<pre>\n        <code>\napp.post('\/login', (req, res) =&gt; {\n    const { username, password } = req.body;\n\n    if (username === 'user' &amp;&amp; password === 'password') {\n        req.session.user = username;\n        res.cookie('username', username, { \n            maxAge: 900000, \/\/ \ucfe0\ud0a4 \ub9cc\ub8cc \uc2dc\uac04\n            httpOnly: true \/\/ JavaScript\uc5d0\uc11c \uc561\uc138\uc2a4 \uae08\uc9c0\n        });\n        res.send('\ub85c\uadf8\uc778 \uc131\uacf5!');\n    } else {\n        res.send('\ub85c\uadf8\uc778 \uc2e4\ud328: \uc798\ubabb\ub41c \uc0ac\uc6a9\uc790 \uc774\ub984 \ub610\ub294 \ube44\ubc00\ubc88\ud638');\n    }\n});\n        <\/code>\n    <\/pre>\n<p>\n        \uc704\uc758 \ucf54\ub4dc\ub294 \ub85c\uadf8\uc778 \uc131\uacf5 \uc2dc \ucfe0\ud0a4\ub97c \uc124\uc815\ud558\ub294 \ubc29\ubc95\uc744 \ubcf4\uc5ec\uc90d\ub2c8\ub2e4. \ucfe0\ud0a4\uc758 \uc18d\uc131\uc73c\ub85c\ub294 <code>maxAge<\/code>\uc640 <code>httpOnly<\/code>\ub97c \uc124\uc815\ud588\uc2b5\ub2c8\ub2e4. <code>httpOnly<\/code> \uc18d\uc131\uc740 JavaScript\uc5d0\uc11c \uc561\uc138\uc2a4\ud560 \uc218 \uc5c6\ub3c4\ub85d \ud558\uc5ec \ubcf4\uc548\uc744 \uac15\ud654\ud569\ub2c8\ub2e4.\n    <\/p>\n<h2>6. \ucfe0\ud0a4\uc640 \uc138\uc158\uc758 \ucc28\uc774\uc810<\/h2>\n<p>\n        \ucfe0\ud0a4\uc640 \uc138\uc158\uc740 \ub458 \ub2e4 \uc0ac\uc6a9\uc790 \uc778\uc99d\uc5d0 \uc0ac\uc6a9\ub418\uc9c0\ub9cc, \uadf8 \ub3d9\uc791 \ubc29\uc2dd\uc740 \ub2e4\ub985\ub2c8\ub2e4:<\/p>\n<ul>\n<li><strong>\ucfe0\ud0a4<\/strong>: \ud074\ub77c\uc774\uc5b8\ud2b8 \uce21\uc5d0 \uc800\uc7a5\ub418\uba70, \uc0ac\uc6a9\uc790\uc758 \ube0c\ub77c\uc6b0\uc800\uc5d0 \ub0a8\uc544 \uc788\ub294 \ub370\uc774\ud130\uc785\ub2c8\ub2e4. \ub530\ub77c\uc11c \uc0ac\uc6a9\uc790\uac00 \ube0c\ub77c\uc6b0\uc800\ub97c \uc885\ub8cc\ud558\ub354\ub77c\ub3c4 \ucfe0\ud0a4\ub294 \ub9cc\ub8cc \uc2dc\uae4c\uc9c0 \uc720\uc9c0\ub429\ub2c8\ub2e4.<\/li>\n<li><strong>\uc138\uc158<\/strong>: \uc11c\ubc84 \uce21\uc5d0 \uc800\uc7a5\ub418\uba70, \ubcf4\ud1b5 \uc0ac\uc6a9\uc790\uac00 \ub85c\uadf8\uc778\ud558\ub294 \ub3d9\uc548 \uc720\uc9c0\ub429\ub2c8\ub2e4. \uc0ac\uc6a9\uc790\uac00 \ub85c\uadf8\uc544\uc6c3\ud558\uac70\ub098 \uc138\uc158\uc774 \ub9cc\ub8cc\ub418\uba74 \uc0ad\uc81c\ub429\ub2c8\ub2e4.<\/li>\n<\/ul>\n<p>        \ucfe0\ud0a4\ub294 \ud074\ub77c\uc774\uc5b8\ud2b8 \uce21\uc5d0\uc11c \uc27d\uac8c \uc811\uadfc\ud560 \uc218 \uc788\ub294 \ubc18\uba74, \uc138\uc158\uc740 \uc11c\ubc84\uc5d0\uc11c \uc548\uc804\ud558\uac8c \uad00\ub9ac\ub418\ubbc0\ub85c \ubcf4\uc548\uc774 \uac15\ud654\ub429\ub2c8\ub2e4.\n    <\/p>\n<h2>7. \ubcf4\uc548 \uac15\ud654\ud558\uae30<\/h2>\n<p>\n        \uc0ac\uc6a9\uc790 \uc778\uc99d\uc744 \ud560 \ub54c \ubcf4\uc548\uc744 \uac15\ud654\ud558\ub294 \uac83\uc740 \ub9e4\uc6b0 \uc911\uc694\ud569\ub2c8\ub2e4. \ub2e4\uc74c\uc740 \uba87 \uac00\uc9c0 \ubcf4\uc548 \uc218\uce59\uc785\ub2c8\ub2e4:<\/p>\n<ul>\n<li><strong>HTTPS \uc0ac\uc6a9<\/strong>: \ubaa8\ub4e0 \ud2b8\ub798\ud53d\uc744 \uc554\ud638\ud654\ud558\uc5ec \uc911\uac04\uc790 \uacf5\uaca9\uc744 \ubc29\uc9c0\ud569\ub2c8\ub2e4.<\/li>\n<li><strong>\uc138\uc158 \ubb34\uc791\uc704\ud654<\/strong>: \uc138\uc158 ID\ub97c \ubb34\uc791\uc704\ub85c \uc0dd\uc131\ud558\uc5ec \uc608\uce21\ud560 \uc218 \uc5c6\ub3c4\ub85d \ud569\ub2c8\ub2e4.<\/li>\n<li><strong>\ucd5c\uc18c \uad8c\ud55c \uc6d0\uce59<\/strong>: \uc0ac\uc6a9\uc790\uac00 \ud544\uc694\ud55c \uad8c\ud55c\ub9cc \ubd80\uc5ec\ud558\uc5ec \uc2dc\uc2a4\ud15c\uc5d0 \ub300\ud55c \uc811\uadfc\uc744 \ucd5c\uc18c\ud654\ud569\ub2c8\ub2e4.<\/li>\n<li><strong>\ube44\ubc00\ubc88\ud638 \ud574\uc2dc\ud654<\/strong>: \uc0ac\uc6a9\uc790\uc758 \ube44\ubc00\ubc88\ud638\ub97c \ud574\uc2dc \uc54c\uace0\ub9ac\uc998(\uc608: bcrypt)\uc744 \uc0ac\uc6a9\ud558\uc5ec \uc548\uc804\ud558\uac8c \uc800\uc7a5\ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>8. \uacb0\ub860<\/h2>\n<p>\n        \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 Express \ud504\ub808\uc784\uc6cc\ud06c\ub97c \uc774\uc6a9\ud558\uc5ec \uc138\uc158 \ubc0f \ucfe0\ud0a4\ub97c \ud65c\uc6a9\ud55c \uc0ac\uc6a9\uc790 \uc778\uc99d \ubc29\ubc95\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uc558\uc2b5\ub2c8\ub2e4. \uae30\ubcf8\uc801\uc778 \uc778\uc99d \uc2dc\uc2a4\ud15c\uc744 \uad6c\ucd95\ud558\ub294 \ub370 \ud544\uc694\ud55c \ucf54\ub4dc\uc640 \uc6d0\ub9ac\ub97c \uc774\ud574\ud588\uae30\ub97c \ubc14\ub78d\ub2c8\ub2e4. \uc0ac\uc6a9\uc790 \uc778\uc99d\uc740 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc911\uc694\ud55c \uad6c\uc131 \uc694\uc18c\uc774\uba70, \uc548\uc804\ud558\uace0 \ud6a8\uc728\uc801\uc778 \ubc29\ubc95\uc73c\ub85c \uad6c\ud604\ud574\uc57c \ud569\ub2c8\ub2e4. \uc774\uc81c \uc5ec\ub7ec\ubd84\uc740 \uc138\uc158\uacfc \ucfe0\ud0a4\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc0ac\uc6a9\uc790 \uc778\uc99d \uc2dc\uc2a4\ud15c\uc744 \uad6c\ucd95\ud558\uace0 \ubcf4\uc548\uc744 \uac15\ud654\ud558\ub294 \ubc29\ubc95\uc744 \ubc30\uc6e0\uc73c\ub2c8, \uc774\ub97c \ubc14\ud0d5\uc73c\ub85c \ub354\uc6b1 \ubc1c\uc804\ub41c \uae30\ub2a5\uc744 \uad6c\ud604\ud574 \ubcf4\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4.\n    <\/p>\n<div class=\"note\">\n<strong>Tip:<\/strong> \uc0ac\uc6a9\uc790 \uc778\uc99d \uc2dc\uc2a4\ud15c\uc744 \uad6c\uc131\ud560 \ub54c\ub294 \ud56d\uc0c1 \ucd5c\uc2e0 \ubcf4\uc548 \ud45c\uc900\uc744 \ub530\ub974\uace0, \uc815\uae30\uc801\uc73c\ub85c \ucf54\ub4dc\ub97c \uac80\ud1a0\ud558\uc5ec \ucde8\uc57d\uc810\uc744 \ubc29\uc9c0\ud558\ub294 \uac83\uc774 \uc911\uc694\ud569\ub2c8\ub2e4.\n    <\/div>\n<h2>9. \ucd94\uac00 \uc790\ub8cc<\/h2>\n<p>\n        \ub354 \uae4a\uc740 \uc774\ud574\ub97c \uc6d0\ud558\uc2e0\ub2e4\uba74 \ub2e4\uc74c\uacfc \uac19\uc740 \uc790\ub8cc\ub4e4\uc744 \ucc38\uace0\ud558\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4:<\/p>\n<ul>\n<li><a href=\"https:\/\/expressjs.com\/\">Express.js \uacf5\uc2dd \ubb38\uc11c<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/expressjs\/session\">express-session \uacf5\uc2dd GitHub<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/expressjs\/cookie-parser\">cookie-parser \uacf5\uc2dd GitHub<\/a><\/li>\n<\/ul>\n<h2>10. Q&amp;A<\/h2>\n<p>\n        \uc9c8\ubb38\uc774 \uc788\uc73c\uc2dc\uba74 \ub313\uae00\uc5d0 \ub0a8\uaca8\uc8fc\uc138\uc694. \ud568\uaed8 \ud574\uacb0\ud574 \ubcf4\ub3c4\ub85d \ud558\uaca0\uc2b5\ub2c8\ub2e4!\n    <\/p>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \uc0ac\uc6a9\uc790 \uc778\uc99d\uc740 \ub9e4\uc6b0 \uc911\uc694\ud55c \uc694\uc18c\uc785\ub2c8\ub2e4. \uc0ac\uc6a9\uc790\uac00 \uc790\uc2e0\uc744 \ud655\uc778\ud560 \uc218 \uc788\ub3c4\ub85d \ud574\uc8fc\uba70, \uc774\ub294 \uac1c\uc778\ud654\ub41c \uacbd\ud5d8\uacfc \ubcf4\uc548\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. \uc774 \uac15\uc88c\uc5d0\uc11c\ub294 Express \ud504\ub808\uc784\uc6cc\ud06c\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc138\uc158\uacfc \ucfe0\ud0a4\ub97c \ud65c\uc6a9\ud55c \uc0ac\uc6a9\uc790 \uc778\uc99d \uc2dc\uc2a4\ud15c\uc744 \uad6c\ucd95\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc124\uba85\ud569\ub2c8\ub2e4. \uc774\ub97c \uc704\ud574 express-session\uacfc cookie-parser \ubbf8\ub4e4\uc6e8\uc5b4\ub97c \uc0ac\uc6a9\ud560 \uac83\uc785\ub2c8\ub2e4. 1. Express \ubc0f \uad00\ub828 \ubaa8\ub4c8 \uc124\uce58 \uac1c\ubc1c\uc744 \uc2dc\uc791\ud558\uae30 \uc704\ud574 \uc6b0\uc120 Express\uc640 \ud544\uc694\ud55c \ubbf8\ub4e4\uc6e8\uc5b4\ub97c \uc124\uce58\ud574\uc57c \ud569\ub2c8\ub2e4. &hellip; <a href=\"https:\/\/atmokpo.com\/w\/38326\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;Express \uac1c\ubc1c \uac15\uc88c, \uc138\uc158 \ubc0f \ucfe0\ud0a4\ub97c \uc774\uc6a9\ud55c \uc0ac\uc6a9\uc790 \uc778\uc99d&#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-38326","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, \uc138\uc158 \ubc0f \ucfe0\ud0a4\ub97c \uc774\uc6a9\ud55c \uc0ac\uc6a9\uc790 \uc778\uc99d - \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\/38326\/\" \/>\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, \uc138\uc158 \ubc0f \ucfe0\ud0a4\ub97c \uc774\uc6a9\ud55c \uc0ac\uc6a9\uc790 \uc778\uc99d - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \uc0ac\uc6a9\uc790 \uc778\uc99d\uc740 \ub9e4\uc6b0 \uc911\uc694\ud55c \uc694\uc18c\uc785\ub2c8\ub2e4. \uc0ac\uc6a9\uc790\uac00 \uc790\uc2e0\uc744 \ud655\uc778\ud560 \uc218 \uc788\ub3c4\ub85d \ud574\uc8fc\uba70, \uc774\ub294 \uac1c\uc778\ud654\ub41c \uacbd\ud5d8\uacfc \ubcf4\uc548\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. \uc774 \uac15\uc88c\uc5d0\uc11c\ub294 Express \ud504\ub808\uc784\uc6cc\ud06c\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc138\uc158\uacfc \ucfe0\ud0a4\ub97c \ud65c\uc6a9\ud55c \uc0ac\uc6a9\uc790 \uc778\uc99d \uc2dc\uc2a4\ud15c\uc744 \uad6c\ucd95\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc124\uba85\ud569\ub2c8\ub2e4. \uc774\ub97c \uc704\ud574 express-session\uacfc cookie-parser \ubbf8\ub4e4\uc6e8\uc5b4\ub97c \uc0ac\uc6a9\ud560 \uac83\uc785\ub2c8\ub2e4. 1. Express \ubc0f \uad00\ub828 \ubaa8\ub4c8 \uc124\uce58 \uac1c\ubc1c\uc744 \uc2dc\uc791\ud558\uae30 \uc704\ud574 \uc6b0\uc120 Express\uc640 \ud544\uc694\ud55c \ubbf8\ub4e4\uc6e8\uc5b4\ub97c \uc124\uce58\ud574\uc57c \ud569\ub2c8\ub2e4. &hellip; \ub354 \ubcf4\uae30 &quot;Express \uac1c\ubc1c \uac15\uc88c, \uc138\uc158 \ubc0f \ucfe0\ud0a4\ub97c \uc774\uc6a9\ud55c \uc0ac\uc6a9\uc790 \uc778\uc99d&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/38326\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-01T17:17:37+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\/38326\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38326\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"Express \uac1c\ubc1c \uac15\uc88c, \uc138\uc158 \ubc0f \ucfe0\ud0a4\ub97c \uc774\uc6a9\ud55c \uc0ac\uc6a9\uc790 \uc778\uc99d\",\"datePublished\":\"2024-11-01T17:17:37+00:00\",\"dateModified\":\"2024-11-26T06:44:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38326\/\"},\"wordCount\":23,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"Express\uc11c\ubc84\uac1c\ubc1c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/38326\/\",\"url\":\"https:\/\/atmokpo.com\/w\/38326\/\",\"name\":\"Express \uac1c\ubc1c \uac15\uc88c, \uc138\uc158 \ubc0f \ucfe0\ud0a4\ub97c \uc774\uc6a9\ud55c \uc0ac\uc6a9\uc790 \uc778\uc99d - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-01T17:17:37+00:00\",\"dateModified\":\"2024-11-26T06:44:38+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38326\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/38326\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/38326\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Express \uac1c\ubc1c \uac15\uc88c, \uc138\uc158 \ubc0f \ucfe0\ud0a4\ub97c \uc774\uc6a9\ud55c \uc0ac\uc6a9\uc790 \uc778\uc99d\"}]},{\"@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, \uc138\uc158 \ubc0f \ucfe0\ud0a4\ub97c \uc774\uc6a9\ud55c \uc0ac\uc6a9\uc790 \uc778\uc99d - \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\/38326\/","og_locale":"ko_KR","og_type":"article","og_title":"Express \uac1c\ubc1c \uac15\uc88c, \uc138\uc158 \ubc0f \ucfe0\ud0a4\ub97c \uc774\uc6a9\ud55c \uc0ac\uc6a9\uc790 \uc778\uc99d - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \uc0ac\uc6a9\uc790 \uc778\uc99d\uc740 \ub9e4\uc6b0 \uc911\uc694\ud55c \uc694\uc18c\uc785\ub2c8\ub2e4. \uc0ac\uc6a9\uc790\uac00 \uc790\uc2e0\uc744 \ud655\uc778\ud560 \uc218 \uc788\ub3c4\ub85d \ud574\uc8fc\uba70, \uc774\ub294 \uac1c\uc778\ud654\ub41c \uacbd\ud5d8\uacfc \ubcf4\uc548\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. \uc774 \uac15\uc88c\uc5d0\uc11c\ub294 Express \ud504\ub808\uc784\uc6cc\ud06c\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc138\uc158\uacfc \ucfe0\ud0a4\ub97c \ud65c\uc6a9\ud55c \uc0ac\uc6a9\uc790 \uc778\uc99d \uc2dc\uc2a4\ud15c\uc744 \uad6c\ucd95\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc124\uba85\ud569\ub2c8\ub2e4. \uc774\ub97c \uc704\ud574 express-session\uacfc cookie-parser \ubbf8\ub4e4\uc6e8\uc5b4\ub97c \uc0ac\uc6a9\ud560 \uac83\uc785\ub2c8\ub2e4. 1. Express \ubc0f \uad00\ub828 \ubaa8\ub4c8 \uc124\uce58 \uac1c\ubc1c\uc744 \uc2dc\uc791\ud558\uae30 \uc704\ud574 \uc6b0\uc120 Express\uc640 \ud544\uc694\ud55c \ubbf8\ub4e4\uc6e8\uc5b4\ub97c \uc124\uce58\ud574\uc57c \ud569\ub2c8\ub2e4. &hellip; \ub354 \ubcf4\uae30 \"Express \uac1c\ubc1c \uac15\uc88c, \uc138\uc158 \ubc0f \ucfe0\ud0a4\ub97c \uc774\uc6a9\ud55c \uc0ac\uc6a9\uc790 \uc778\uc99d\"","og_url":"https:\/\/atmokpo.com\/w\/38326\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-01T17:17:37+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\/38326\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/38326\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"Express \uac1c\ubc1c \uac15\uc88c, \uc138\uc158 \ubc0f \ucfe0\ud0a4\ub97c \uc774\uc6a9\ud55c \uc0ac\uc6a9\uc790 \uc778\uc99d","datePublished":"2024-11-01T17:17:37+00:00","dateModified":"2024-11-26T06:44:38+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/38326\/"},"wordCount":23,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["Express\uc11c\ubc84\uac1c\ubc1c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/38326\/","url":"https:\/\/atmokpo.com\/w\/38326\/","name":"Express \uac1c\ubc1c \uac15\uc88c, \uc138\uc158 \ubc0f \ucfe0\ud0a4\ub97c \uc774\uc6a9\ud55c \uc0ac\uc6a9\uc790 \uc778\uc99d - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-01T17:17:37+00:00","dateModified":"2024-11-26T06:44:38+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/38326\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/38326\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/38326\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"Express \uac1c\ubc1c \uac15\uc88c, \uc138\uc158 \ubc0f \ucfe0\ud0a4\ub97c \uc774\uc6a9\ud55c \uc0ac\uc6a9\uc790 \uc778\uc99d"}]},{"@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":38326,"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":41114,"url":"https:\/\/atmokpo.com\/w\/41114\/","url_meta":{"origin":38326,"position":1},"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":[]},{"id":41118,"url":"https:\/\/atmokpo.com\/w\/41118\/","url_meta":{"origin":38326,"position":2},"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":43354,"url":"https:\/\/atmokpo.com\/w\/43354\/","url_meta":{"origin":38326,"position":3},"title":"[Electron]  012. Electron\uc758 \ubcf4\uc548 \ubaa8\ubc94 \uc0ac\ub840, CSP (Content Security Policy) \uc124\uc815 \ubc0f \uad8c\uc7a5 \uc0ac\ud56d","author":"root","date":"2024\ub144 11\uc6d4 26\uc77c","format":false,"excerpt":"Electron\uc740 \ub2e4\uc591\ud55c \ud50c\ub7ab\ud3fc\uc5d0\uc11c \ub370\uc2a4\ud06c\ud1b1 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud560 \uc218 \uc788\ub294 \ub9e4\uc6b0 \uc720\uc6a9\ud55c \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. \ud558\uc9c0\ub9cc, \ubcf4\uc548\uc758 \uc911\uc694\uc131\uc744 \uac04\uacfc\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 Electron \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0 \ub300\ud55c \ubcf4\uc548 \ubaa8\ubc94 \uc0ac\ub840\uc640 Content Security Policy(CSP) \uc124\uc815 \ubc29\ubc95 \ubc0f \uad8c\uc7a5 \uc0ac\ud56d\uc744 \uae4a\uc774 \uc788\uac8c \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. Electron\uc758 \ubcf4\uc548 \ubb38\uc81c \uc774\ud574\ud558\uae30 Electron\uc740 Chromium\uacfc Node.js\ub97c \uae30\ubc18\uc73c\ub85c \ud558\uc5ec \uc791\ub3d9\ud558\ubbc0\ub85c, \uc774 \ub450 \uae30\uc220\uc758\u2026","rel":"","context":"&quot;electron&quot;\uc5d0\uc11c","block_context":{"text":"electron","link":"https:\/\/atmokpo.com\/w\/category\/electron\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":38432,"url":"https:\/\/atmokpo.com\/w\/38432\/","url_meta":{"origin":38326,"position":4},"title":"FastAPI \uc11c\ubc84\uac1c\ubc1c, \uc774\ubca4\ud2b8 \ubb38\uc11c \ud074\ub798\uc2a4\uc640 \ub77c\uc6b0\ud2b8 \ubcc0\uacbd","author":"root","date":"2024\ub144 11\uc6d4 01\uc77c","format":false,"excerpt":"\uc791\uc131\uc790: \uc870\uad11\ud615 \ub0a0\uc9dc: 2024\ub144 11\uc6d4 26\uc77c 1. FastAPI\ub780? FastAPI\ub294 Python\uc758 \ube44\ub3d9\uae30 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, API \uc11c\ubc84\ub97c \uac1c\ubc1c\ud558\ub294 \ub370 \ucd5c\uc801\ud654\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. Python\uc758 \ud0c0\uc785 \ud78c\ud2b8\ub97c \ud65c\uc6a9\ud558\uc5ec \uac15\ub825\ud55c \ub370\uc774\ud130 \uac80\uc99d \ubc0f \ubb38\uc11c\ud654 \uae30\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. FastAPI\ub294 \uc2a4\ud0c0\ud2b8\uc5c5\uc5d0\uc11c \ub300\uaddc\ubaa8 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0 \uc774\ub974\uae30\uae4c\uc9c0 \ub2e4\uc591\ud55c \ud504\ub85c\uc81d\ud2b8\uc5d0 \uc801\ud569\ud558\uba70, OpenAPI\uc640 JSON Schema\ub97c \uc9c0\uc6d0\ud558\uc5ec \uc790\ub3d9\uc73c\ub85c API \ubb38\uc11c\ub97c \uc0dd\uc131\ud569\ub2c8\ub2e4. \uc774\ub7ec\ud55c \ud2b9\uc9d5 \ub355\ubd84\uc5d0 FastAPI\ub294\u2026","rel":"","context":"&quot;FastAPI\uc11c\ubc84\uac1c\ubc1c&quot;\uc5d0\uc11c","block_context":{"text":"FastAPI\uc11c\ubc84\uac1c\ubc1c","link":"https:\/\/atmokpo.com\/w\/category\/fastapi%ec%84%9c%eb%b2%84%ea%b0%9c%eb%b0%9c\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":43334,"url":"https:\/\/atmokpo.com\/w\/43334\/","url_meta":{"origin":38326,"position":5},"title":"[Electron]  004. Electron \ud658\uacbd \uc124\uc815\ud558\uae30, \uae30\ubcf8 \ud504\ub85c\uc81d\ud2b8 \uad6c\uc870 \uc124\uba85","author":"root","date":"2024\ub144 11\uc6d4 26\uc77c","format":false,"excerpt":"004. Electron \ud658\uacbd \uc124\uc815\ud558\uae30, \uae30\ubcf8 \ud504\ub85c\uc81d\ud2b8 \uad6c\uc870 \uc124\uba85 Electron\uc740 \uc6f9 \uae30\uc220\uc744 \ud65c\uc6a9\ud558\uc5ec \ud06c\ub85c\uc2a4 \ud50c\ub7ab\ud3fc \ub370\uc2a4\ud06c\ud1b1 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud560 \uc218 \uc788\uac8c \ud574\uc8fc\ub294 \uc624\ud508 \uc18c\uc2a4 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 Electron \uac1c\ubc1c\uc744 \uc2dc\uc791\ud558\uae30 \uc704\ud55c \ud658\uacbd \uc124\uc815 \ubc29\ubc95\uacfc \uae30\ubcf8 \ud504\ub85c\uc81d\ud2b8 \uad6c\uc870\ub97c \uc790\uc138\ud788 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. 1. Electron \uc124\uce58 \uc900\ube44 Electron\uc740 Node.js \uc704\uc5d0\uc11c \uc791\ub3d9\ud558\ubbc0\ub85c \uba3c\uc800 Node.js\ub97c \uc124\uce58\ud574\uc57c \ud569\ub2c8\ub2e4. Node.js\ub294\u2026","rel":"","context":"&quot;electron&quot;\uc5d0\uc11c","block_context":{"text":"electron","link":"https:\/\/atmokpo.com\/w\/category\/electron\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38326","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=38326"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38326\/revisions"}],"predecessor-version":[{"id":38327,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38326\/revisions\/38327"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=38326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=38326"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=38326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}