{"id":38394,"date":"2024-11-01T17:18:09","date_gmt":"2024-11-01T17:18:09","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=38394"},"modified":"2024-11-26T06:44:26","modified_gmt":"2024-11-26T06:44:26","slug":"express-%ea%b0%9c%eb%b0%9c-%ea%b0%95%ec%a2%8c-%ed%94%84%eb%a1%9c%ec%a0%9d%ed%8a%b8-%ea%b5%ac%ec%a1%b0-%eb%b0%8f-%ed%8c%8c%ec%9d%bc-%ea%b5%ac%ec%84%b1-%ec%9d%b4%ed%95%b4%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/38394\/","title":{"rendered":"Express \uac1c\ubc1c \uac15\uc88c, \ud504\ub85c\uc81d\ud2b8 \uad6c\uc870 \ubc0f \ud30c\uc77c \uad6c\uc131 \uc774\ud574\ud558\uae30"},"content":{"rendered":"<p><body><\/p>\n<h2>1. \uc11c\ub860<\/h2>\n<p>\n        Express.js\ub294 Node.js\ub97c \uc704\ud55c \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, RESTful API\ub97c \uc27d\uac8c \uad6c\ucd95\ud560 \uc218 \uc788\ub3c4\ub85d \ub3c4\uc640\uc900\ub2e4.<br \/>\n        \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 Express\ub85c \ubc31\uc5d4\ub4dc \uc11c\ubc84\ub97c \uac1c\ubc1c\ud558\uae30 \uc704\ud55c \ud504\ub85c\uc81d\ud2b8 \uad6c\uc870\uc640 \ud30c\uc77c \uad6c\uc131\uc744 \uae4a\uc774 \uc788\uac8c \uc54c\uc544\ubcf4\uaca0\ub2e4.<br \/>\n        \ub610\ud55c \ucd5c\uc801\uc758 \uac1c\ubc1c \ud658\uacbd\uc744 \uc704\ud55c \uae30\ubcf8\uc801\uc778 \uc124\uc815 \ubc29\ubc95\uacfc \uc608\uc81c\ub97c \uc81c\uacf5\ud560 \uc608\uc815\uc774\ub2e4.\n    <\/p>\n<h2>2. Express.js\ub780?<\/h2>\n<p>\n        Express.js\ub294 \uacbd\ub7c9\ud654\ub41c Node.js \uc6f9 \uc5b4\ud50c\ub9ac\ucf00\uc774\uc158 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \uc6f9 \uc11c\ubc84 \ubc0f API \uad6c\ucd95\uc744<br \/>\n        \uc704\ud55c \ub2e4\uc591\ud55c \uae30\ub2a5\ub4e4\uc744 \uc81c\uacf5\ud55c\ub2e4. \uae30\ubcf8\uc801\uc73c\ub85c \ub77c\uc6b0\ud305, \ubbf8\ub4e4\uc6e8\uc5b4 \uc9c0\uc6d0, HTTP \uc694\uccad \ubc0f \uc751\ub2f5 \ucc98\ub9ac \ub4f1\uc744<br \/>\n        \uc6a9\uc774\ud558\uac8c \ud560 \uc218 \uc788\ub3c4\ub85d \uc9c0\uc6d0\ud55c\ub2e4. Express\ub97c \uc0ac\uc6a9\ud558\uba74 \ub354\uc6b1 \ud6a8\uc728\uc801\uc73c\ub85c \uc6f9 \uc11c\ubc84\ub97c \uad6c\ucd95\ud560 \uc218 \uc788\ub2e4.\n    <\/p>\n<h2>3. \ud504\ub85c\uc81d\ud2b8 \uad6c\uc870 \ub9cc\ub4e4\uae30<\/h2>\n<p>\n        Express \ud504\ub85c\uc81d\ud2b8\uc758 \uad6c\uc870\ub97c \uc81c\ub300\ub85c \uc774\ud574\ud558\uba74 \ucf54\ub4dc \uc720\uc9c0 \ubcf4\uc218\uc640 \ud655\uc7a5\uc131\uc774 \ud5a5\uc0c1\ub41c\ub2e4.<br \/>\n        \uc5ec\uae30\uc11c\ub294 \uc77c\ubc18\uc801\uc73c\ub85c \uc0ac\uc6a9\ud558\ub294 Express \ud504\ub85c\uc81d\ud2b8 \uad6c\uc870\ub97c \uc124\uba85\ud558\uaca0\ub2e4.<br \/>\n        \uc544\ub798\uc758 \uad6c\uc870\ub294 \uae30\ubcf8\uc801\uc778 \ud30c\uc77c\uacfc \ud3f4\ub354\ub85c \uad6c\uc131\ub418\uc5b4 \uc788\ub2e4.\n    <\/p>\n<pre>\n        <code>\n        \/my-express-app\n        \u251c\u2500\u2500 node_modules\/\n        \u251c\u2500\u2500 src\/\n        \u2502   \u251c\u2500\u2500 controllers\/\n        \u2502   \u251c\u2500\u2500 models\/\n        \u2502   \u251c\u2500\u2500 routes\/\n        \u2502   \u251c\u2500\u2500 middlewares\/\n        \u2502   \u251c\u2500\u2500 config\/\n        \u2502   \u2514\u2500\u2500 app.js\n        \u251c\u2500\u2500 .env\n        \u251c\u2500\u2500 .gitignore\n        \u251c\u2500\u2500 package.json\n        \u2514\u2500\u2500 README.md\n        <\/code>\n        <\/pre>\n<h3>3.1. root \ub514\ub809\ud1a0\ub9ac<\/h3>\n<p>\n        \ubaa8\ub4e0 Express \ud504\ub85c\uc81d\ud2b8\ub294 \ucd5c\uc0c1\uc704 \ub514\ub809\ud130\ub9ac\uc5d0\uc11c \uc2dc\uc791\ud55c\ub2e4. \uc774 \ub514\ub809\ud130\ub9ac\uc5d0\ub294<br \/>\n        \ud504\ub85c\uc81d\ud2b8\uc758 \uba54\ud0c0\ub370\uc774\ud130\uc640 \uc758\uc874\uc131\uc744 \uc815\uc758\ud558\ub294 <code>package.json<\/code> \ud30c\uc77c\uc774 \ud3ec\ud568\ub41c\ub2e4.<br \/>\n        <code>node_modules<\/code> \ud3f4\ub354\ub294 \uc124\uce58\ub41c \ud328\ud0a4\uc9c0\ub97c \ud3ec\ud568\ud558\uba70,<br \/>\n        <code>.env<\/code> \ud30c\uc77c\uc740 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \ud658\uacbd \ubcc0\uc218 \uc124\uc815\uc744 \uc704\ud55c \ud30c\uc77c\uc774\ub2e4.<br \/>\n        <code>.gitignore<\/code> \ud30c\uc77c\uc740 Git\uc5d0 \ud3ec\ud568\ud558\uc9c0 \uc54a\uc744 \ud30c\uc77c\ub4e4\uc744 \uc815\uc758\ud55c\ub2e4.\n    <\/p>\n<h3>3.2. src \ud3f4\ub354<\/h3>\n<p>\n<code>src<\/code> \ud3f4\ub354\ub294 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc2e4\uc81c \ucf54\ub4dc\uac00 \uc704\uce58\ud558\ub294 \uacf3\uc774\ub2e4.<br \/>\n        \uc774 \ud3f4\ub354 \ub0b4\uc758 \uad6c\uc131 \uc694\uc18c\ub4e4\uc740 \ub2e4\uc74c\uacfc \uac19\ub2e4:\n    <\/p>\n<ul>\n<li>\n<strong>controllers\/:<\/strong> \ube44\uc988\ub2c8\uc2a4 \ub85c\uc9c1\uc774 \ud3ec\ud568\ub41c \ud30c\uc77c\ub4e4\uc774 \uc704\uce58\ud55c\ub2e4.<br \/>\n            \ud074\ub77c\uc774\uc5b8\ud2b8\uc758 \uc694\uccad\uc744 \ucc98\ub9ac\ud558\uace0, \ud544\uc694\ud55c \ub370\uc774\ud130\ub97c \uac00\uc838\uc624\uba70, \uc751\ub2f5\uc744 \ubc18\ud658\ud558\ub294 \uc5ed\ud560\uc744 \ud55c\ub2e4.\n        <\/li>\n<li>\n<strong>models\/:<\/strong> \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640\uc758 \uc0c1\ud638\uc791\uc6a9\uc744 \uc704\ud55c \ubaa8\ub378\ub4e4\uc774\ub2e4.<br \/>\n            \uc77c\ubc18\uc801\uc73c\ub85c ORM(Object Relational Mapping) \ub77c\uc774\ube0c\ub7ec\ub9ac\uc640 \ud568\uaed8 \uc0ac\uc6a9\ub41c\ub2e4.\n        <\/li>\n<li>\n<strong>routes\/:<\/strong> HTTP \uc694\uccad\uc744 \ud2b9\uc815 \ucee8\ud2b8\ub864\ub7ec\ub85c \ub77c\uc6b0\ud305\ud558\ub294 \uc5ed\ud560\uc744 \ud55c\ub2e4.<br \/>\n            \uac01 API \uc5d4\ub4dc\ud3ec\uc778\ud2b8\uc5d0 \ub300\ud55c \uacbd\ub85c\ub97c \uc815\uc758\ud55c\ub2e4.\n        <\/li>\n<li>\n<strong>middlewares\/:<\/strong> \uc694\uccad\uacfc \uc751\ub2f5 \uc0ac\uc774\uc5d0 \uc2e4\ud589\ub418\ub294 \ud568\uc218\ub4e4\ub85c,<br \/>\n            \uc778\uc99d, \ub85c\uae45, \uc5d0\ub7ec \ucc98\ub9ac \ub4f1\uc744 \uc704\ud55c \ubbf8\ub4e4\uc6e8\uc5b4\ub97c \ud3ec\ud568\ud55c\ub2e4.\n        <\/li>\n<li>\n<strong>config\/:<\/strong> \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc124\uc815 \uc815\ubcf4\ub97c \uc800\uc7a5\ud558\ub294 \ud3f4\ub354\ub85c,<br \/>\n            \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\uacb0 \uc815\ubcf4\ub098 \uc678\ubd80 \uc11c\ube44\uc2a4 API \ud0a4 \ub4f1\uc744 \ud3ec\ud568\ud560 \uc218 \uc788\ub2e4.\n        <\/li>\n<li>\n<strong>app.js:<\/strong> \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ucd08\uae30\ud654\ud558\uace0, \ub77c\uc6b0\ud130\ub97c \uc124\uc815\ud558\uba70,<br \/>\n            \uc11c\ubc84\ub97c \uc2dc\uc791\ud558\ub294 \ub4f1 \ud575\uc2ec \uae30\ub2a5\uc744 \uad6c\ud604\ud558\ub294 \ud30c\uc77c\uc774\ub2e4.\n        <\/li>\n<\/ul>\n<h2>4. Express \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uc0dd\uc131\ud558\uae30<\/h2>\n<p>\n        \uc774\uc81c \uc2e4\uc81c Express \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc0dd\uc131\ud574 \ubcf4\uaca0\ub2e4.<br \/>\n        \uc544\ub798 \ub2e8\uacc4\uc5d0 \ub530\ub77c \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc124\uc815\ud558\uace0, \ud30c\uc77c \uad6c\uc870\ub97c \uad6c\uc131\ud560 \uac83\uc774\ub2e4.\n    <\/p>\n<h3>4.1. \ud504\ub85c\uc81d\ud2b8 \ucd08\uae30\ud654<\/h3>\n<pre>\n        <code>\n        mkdir my-express-app\n        cd my-express-app\n        npm init -y\n        <\/code>\n    <\/pre>\n<p>\uc704 \uba85\ub839\uc5b4\ub97c \ud1b5\ud574 \uc0c8\ub85c\uc6b4 \ub514\ub809\ud1a0\ub9ac\ub97c \uc0dd\uc131\ud558\uace0, Node.js \ud504\ub85c\uc81d\ud2b8\ub97c \ucd08\uae30\ud654\ud55c\ub2e4.<\/p>\n<h3>4.2. Express \uc124\uce58<\/h3>\n<pre>\n        <code>\n        npm install express\n        <\/code>\n    <\/pre>\n<p>Express \ud328\ud0a4\uc9c0\ub97c \uc124\uce58\ud55c\ub2e4.<\/p>\n<h3>4.3. \uae30\ubcf8 \uc11c\ubc84 \uc124\uc815\ud558\uae30<\/h3>\n<p>\n<code>src\/app.js<\/code> \ud30c\uc77c\uc744 \uc0dd\uc131\ud558\uace0 \uae30\ubcf8 \uc11c\ubc84 \ucf54\ub4dc\ub97c \uc791\uc131\ud574 \ubcf4\uc790.\n    <\/p>\n<pre>\n        <code>\n        const express = require('express');\n        const app = express();\n        const PORT = process.env.PORT || 3000;\n\n        app.get('\/', (req, res) =&gt; {\n            res.send('Hello, Express!');\n        });\n\n        app.listen(PORT, () =&gt; {\n            console.log(`Server is running on http:\/\/localhost:${PORT}`);\n        });\n        <\/code>\n    <\/pre>\n<h3>4.4. \uc11c\ubc84 \uc2e4\ud589<\/h3>\n<p>\n        \uc11c\ubc84\ub97c \uc2e4\ud589\ud558\uae30 \uc704\ud574 \uc544\ub798 \uba85\ub839\uc5b4\ub97c \uc0ac\uc6a9\ud55c\ub2e4.\n    <\/p>\n<pre>\n        <code>\n        node src\/app.js\n        <\/code>\n    <\/pre>\n<p>\ube0c\ub77c\uc6b0\uc800\uc5d0\uc11c <code>http:\/\/localhost:3000<\/code>\uc5d0 \uc811\uadfc\ud558\uc5ec &#8220;Hello, Express!&#8221; \uba54\uc2dc\uc9c0\ub97c \ud655\uc778\ud560 \uc218 \uc788\ub2e4.<\/p>\n<h2>5. \ub77c\uc6b0\ud305 \uad6c\ud604\ud558\uae30<\/h2>\n<p>\n        Express\uc758 \ub77c\uc6b0\ud305 \uae30\ub2a5\uc744 \uc0ac\uc6a9\ud558\uc5ec API \uc5d4\ub4dc\ud3ec\uc778\ud2b8\ub97c \ucd94\uac00\ud558\uaca0\ub2e4.<br \/>\n        <code>routes<\/code> \ud3f4\ub354\ub97c \uc0dd\uc131\ud558\uace0 <code>userRoutes.js<\/code> \ud30c\uc77c\uc744 \ub9cc\ub4e4\uc5b4 \uc0ac\uc6a9\uc790 \uad00\ub828 \ub77c\uc6b0\ud305\uc744 \uc791\uc131\ud574 \ubcf4\uc790.\n    <\/p>\n<pre>\n        <code>\n        \/\/ src\/routes\/userRoutes.js\n        const express = require('express');\n        const router = express.Router();\n\n        \/\/ \uc0ac\uc6a9\uc790 \ubaa9\ub85d \uc870\ud68c\n        router.get('\/users', (req, res) =&gt; {\n            res.json([{ id: 1, name: 'John' }, { id: 2, name: 'Jane' }]);\n        });\n\n        \/\/ \uc0ac\uc6a9\uc790 \ucd94\uac00\n        router.post('\/users', (req, res) =&gt; {\n            \/\/ \uc0ac\uc6a9\uc790 \ucd94\uac00 \ub85c\uc9c1 \uad6c\ud604\n            res.status(201).json({ id: 3, name: req.body.name });\n        });\n\n        module.exports = router;\n        <\/code>\n    <\/pre>\n<h3>5.1. \ub77c\uc6b0\ud130 \uc5f0\uacb0\ud558\uae30<\/h3>\n<p>\n<code>app.js<\/code> \ud30c\uc77c\uc5d0\uc11c <code>userRoutes<\/code>\ub97c import \ud558\uace0,<br \/>\n        \uc774\ub97c Express \uc571\uc5d0 \uc5f0\uacb0\ud558\uc790.\n    <\/p>\n<pre>\n        <code>\n        const express = require('express');\n        const app = express();\n        const userRoutes = require('.\/routes\/userRoutes');\n\n        app.use(express.json()); \/\/ JSON \uc694\uccad \ubcf8\ubb38 \ud30c\uc2f1\n        app.use('\/api', userRoutes); \/\/ '\/api' \uacbd\ub85c\ub85c \ub77c\uc6b0\ud130 \uc5f0\uacb0\n\n        const PORT = process.env.PORT || 3000;\n\n        app.listen(PORT, () =&gt; {\n            console.log(`Server is running on http:\/\/localhost:${PORT}`);\n        });\n        <\/code>\n    <\/pre>\n<h3>5.2. API \ud14c\uc2a4\ud2b8\ud558\uae30<\/h3>\n<p>\n        Postman \ub610\ub294 curl\uc744 \uc0ac\uc6a9\ud558\uc5ec API\ub97c \ud14c\uc2a4\ud2b8\ud560 \uc218 \uc788\ub2e4.<br \/>\n        <code>GET \/api\/users<\/code> \uc694\uccad\uc744 \ubcf4\ub0b4\uba74, \uc0ac\uc6a9\uc790 \ubaa9\ub85d\uc744 \ud655\uc778\ud560 \uc218 \uc788\uc744 \uac83\uc774\ub2e4.\n    <\/p>\n<h2>6. \ube44\uc988\ub2c8\uc2a4 \ub85c\uc9c1 \ubd84\ub9ac\ud558\uae30<\/h2>\n<p>\n        \ube44\uc988\ub2c8\uc2a4 \ub85c\uc9c1\uc744 \ucee8\ud2b8\ub864\ub7ec\ub85c \ubd84\ub9ac\ud558\uc5ec \ucf54\ub4dc\ub97c \ub354 \uae54\ub054\ud558\uace0 \uc720\uc9c0\ubcf4\uc218\ud558\uae30 \uc27d\uac8c \ub9cc\ub4e4\uc790.<br \/>\n        <code>controllers<\/code> \ud3f4\ub354\ub97c \uc0dd\uc131\ud558\uace0 <code>userController.js<\/code> \ud30c\uc77c\uc744 \ucd94\uac00\ud558\uc790.\n    <\/p>\n<pre>\n        <code>\n        \/\/ src\/controllers\/userController.js\n        exports.getUsers = (req, res) =&gt; {\n            res.json([{ id: 1, name: 'John' }, { id: 2, name: 'Jane' }]);\n        };\n\n        exports.addUser = (req, res) =&gt; {\n            res.status(201).json({ id: 3, name: req.body.name });\n        };\n        <\/code>\n    <\/pre>\n<h3>6.1. \ucee8\ud2b8\ub864\ub7ec\uc640 \ub77c\uc6b0\ud130 \uc5f0\uacb0\ud558\uae30<\/h3>\n<p>\n<code>userRoutes.js<\/code>\uc5d0\uc11c \ub77c\uc6b0\ud130\ub97c \uc218\uc815\ud558\uc5ec \ucee8\ud2b8\ub864\ub7ec\ub97c \uc0ac\uc6a9\ud55c\ub2e4.\n    <\/p>\n<pre>\n        <code>\n        const express = require('express');\n        const router = express.Router();\n        const userController = require('..\/controllers\/userController');\n\n        router.get('\/users', userController.getUsers);\n        router.post('\/users', userController.addUser);\n\n        module.exports = router;\n        <\/code>\n    <\/pre>\n<h2>7. \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\uacb0\ud558\uae30<\/h2>\n<p>\n        \uc774\uc81c MongoDB\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640 \uc5f0\uacb0\ud558\ub294 \ubc29\ubc95\uc744 \uc0b4\ud3b4\ubcf4\uaca0\ub2e4.<br \/>\n        <code>mongoose<\/code> \ud328\ud0a4\uc9c0\ub97c \uc124\uce58\ud558\uace0, \uac04\ub2e8\ud55c \uac8c\uc2dc\ud310 \uc608\uc81c\ub97c \uad6c\ud604\ud574\ubcf4\uc790.\n    <\/p>\n<pre>\n        <code>\n        npm install mongoose\n        <\/code>\n    <\/pre>\n<h3>7.1. \ubaa8\ub378 \uc815\uc758\ud558\uae30<\/h3>\n<p>\n<code>models<\/code> \ud3f4\ub354\ub97c \uc0dd\uc131\ud558\uace0 <code>User.js<\/code> \ud30c\uc77c\uc744 \ub9cc\ub4e4\uc5b4<br \/>\n        \uc0ac\uc6a9\uc790 \ubaa8\ub378\uc744 \uc815\uc758\ud558\uc790.\n    <\/p>\n<pre>\n        <code>\n        \/\/ src\/models\/User.js\n        const mongoose = require('mongoose');\n\n        const userSchema = new mongoose.Schema({\n            name: {\n                type: String,\n                required: true\n            }\n        });\n\n        module.exports = mongoose.model('User', userSchema);\n        <\/code>\n    <\/pre>\n<h3>7.2. \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\uacb0 \uc124\uc815\ud558\uae30<\/h3>\n<pre>\n        <code>\n        const mongoose = require('mongoose');\n        const express = require('express');\n        const userRoutes = require('.\/routes\/userRoutes');\n\n        const app = express();\n        mongoose.connect(process.env.MONGODB_URI, { useNewUrlParser: true, useUnifiedTopology: true })\n            .then(() =&gt; console.log('MongoDB Connected'))\n            .catch(err =&gt; console.error('MongoDB connection error:', err));\n\n        app.use(express.json());\n        app.use('\/api', userRoutes);\n        \/\/ ...\n        <\/code>\n    <\/pre>\n<h3>7.3. \uc0ac\uc6a9\uc790 \ucd94\uac00 \uae30\ub2a5 \uc218\uc815\ud558\uae30<\/h3>\n<p>\n        \uc0ac\uc6a9\uc790\ub97c \ucd94\uac00\ud560 \ub54c \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc5d0 \uae30\ub85d\ud558\ub3c4\ub85d \uae30\ub2a5\uc744 \uc218\uc815\ud558\uc790.\n    <\/p>\n<pre>\n        <code>\n        \/\/ src\/controllers\/userController.js\n        const User = require('..\/models\/User');\n\n        exports.addUser = async (req, res) =&gt; {\n            try {\n                const newUser = new User({ name: req.body.name });\n                await newUser.save();\n                res.status(201).json(newUser);\n            } catch (error) {\n                res.status(500).json({ message: error.message });\n            }\n        };\n        <\/code>\n    <\/pre>\n<h2>8. \uacb0\ub860<\/h2>\n<p>\n        \uc774\ubc88 \uac15\uc88c\ub97c \ud1b5\ud574 Express.js \ud504\ub85c\uc81d\ud2b8\uc758 \uad6c\uc870\uc640 \ud30c\uc77c \uad6c\uc131\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uc558\ub2e4.<br \/>\n        Express\ub97c \uae30\ubc18\uc73c\ub85c \ud55c \ubc31\uc5d4\ub4dc \uc11c\ubc84\ub97c \uac04\ub2e8\ud558\uac8c \uad6c\ud604\ud574 \ubcf4\uc558\uace0, \ube44\uc988\ub2c8\uc2a4 \ub85c\uc9c1\uacfc \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\uacb0\uc744<br \/>\n        \ud1b5\ud574 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uae30\ub2a5\uc744 \ud655\uc7a5\ud558\ub294 \ubc29\ubc95\uc744 \ubc30\uc6e0\ub2e4.<br \/>\n        \uc774\ub7ec\ud55c \uae30\ucd08 \uc9c0\uc2dd\uc744 \ubc14\ud0d5\uc73c\ub85c \ub354 \ubcf5\uc7a1\ud55c \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc73c\ub85c \ubc1c\uc804\uc2dc\ud0ac \uc218 \uc788\uc744 \uac83\uc774\ub2e4.\n    <\/p>\n<h4>\ucd94\uac00 \uc790\ub8cc<\/h4>\n<ul>\n<li><a href=\"https:\/\/expressjs.com\/kr\/\">Express.js \uacf5\uc2dd \ubb38\uc11c<\/a><\/li>\n<li><a href=\"https:\/\/mongoosejs.com\/\">Mongoose \uacf5\uc2dd \ubb38\uc11c<\/a><\/li>\n<\/ul>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \uc11c\ub860 Express.js\ub294 Node.js\ub97c \uc704\ud55c \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, RESTful API\ub97c \uc27d\uac8c \uad6c\ucd95\ud560 \uc218 \uc788\ub3c4\ub85d \ub3c4\uc640\uc900\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 Express\ub85c \ubc31\uc5d4\ub4dc \uc11c\ubc84\ub97c \uac1c\ubc1c\ud558\uae30 \uc704\ud55c \ud504\ub85c\uc81d\ud2b8 \uad6c\uc870\uc640 \ud30c\uc77c \uad6c\uc131\uc744 \uae4a\uc774 \uc788\uac8c \uc54c\uc544\ubcf4\uaca0\ub2e4. \ub610\ud55c \ucd5c\uc801\uc758 \uac1c\ubc1c \ud658\uacbd\uc744 \uc704\ud55c \uae30\ubcf8\uc801\uc778 \uc124\uc815 \ubc29\ubc95\uacfc \uc608\uc81c\ub97c \uc81c\uacf5\ud560 \uc608\uc815\uc774\ub2e4. 2. Express.js\ub780? Express.js\ub294 \uacbd\ub7c9\ud654\ub41c Node.js \uc6f9 \uc5b4\ud50c\ub9ac\ucf00\uc774\uc158 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \uc6f9 \uc11c\ubc84 \ubc0f API \uad6c\ucd95\uc744 \uc704\ud55c \ub2e4\uc591\ud55c \uae30\ub2a5\ub4e4\uc744 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/38394\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;Express \uac1c\ubc1c \uac15\uc88c, \ud504\ub85c\uc81d\ud2b8 \uad6c\uc870 \ubc0f \ud30c\uc77c \uad6c\uc131 \uc774\ud574\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-38394","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, \ud504\ub85c\uc81d\ud2b8 \uad6c\uc870 \ubc0f \ud30c\uc77c \uad6c\uc131 \uc774\ud574\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\/38394\/\" \/>\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, \ud504\ub85c\uc81d\ud2b8 \uad6c\uc870 \ubc0f \ud30c\uc77c \uad6c\uc131 \uc774\ud574\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"1. \uc11c\ub860 Express.js\ub294 Node.js\ub97c \uc704\ud55c \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, RESTful API\ub97c \uc27d\uac8c \uad6c\ucd95\ud560 \uc218 \uc788\ub3c4\ub85d \ub3c4\uc640\uc900\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 Express\ub85c \ubc31\uc5d4\ub4dc \uc11c\ubc84\ub97c \uac1c\ubc1c\ud558\uae30 \uc704\ud55c \ud504\ub85c\uc81d\ud2b8 \uad6c\uc870\uc640 \ud30c\uc77c \uad6c\uc131\uc744 \uae4a\uc774 \uc788\uac8c \uc54c\uc544\ubcf4\uaca0\ub2e4. \ub610\ud55c \ucd5c\uc801\uc758 \uac1c\ubc1c \ud658\uacbd\uc744 \uc704\ud55c \uae30\ubcf8\uc801\uc778 \uc124\uc815 \ubc29\ubc95\uacfc \uc608\uc81c\ub97c \uc81c\uacf5\ud560 \uc608\uc815\uc774\ub2e4. 2. Express.js\ub780? Express.js\ub294 \uacbd\ub7c9\ud654\ub41c Node.js \uc6f9 \uc5b4\ud50c\ub9ac\ucf00\uc774\uc158 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \uc6f9 \uc11c\ubc84 \ubc0f API \uad6c\ucd95\uc744 \uc704\ud55c \ub2e4\uc591\ud55c \uae30\ub2a5\ub4e4\uc744 &hellip; \ub354 \ubcf4\uae30 &quot;Express \uac1c\ubc1c \uac15\uc88c, \ud504\ub85c\uc81d\ud2b8 \uad6c\uc870 \ubc0f \ud30c\uc77c \uad6c\uc131 \uc774\ud574\ud558\uae30&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/38394\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-01T17:18:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:44:26+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\/38394\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38394\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"Express \uac1c\ubc1c \uac15\uc88c, \ud504\ub85c\uc81d\ud2b8 \uad6c\uc870 \ubc0f \ud30c\uc77c \uad6c\uc131 \uc774\ud574\ud558\uae30\",\"datePublished\":\"2024-11-01T17:18:09+00:00\",\"dateModified\":\"2024-11-26T06:44:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38394\/\"},\"wordCount\":60,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"Express\uc11c\ubc84\uac1c\ubc1c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/38394\/\",\"url\":\"https:\/\/atmokpo.com\/w\/38394\/\",\"name\":\"Express \uac1c\ubc1c \uac15\uc88c, \ud504\ub85c\uc81d\ud2b8 \uad6c\uc870 \ubc0f \ud30c\uc77c \uad6c\uc131 \uc774\ud574\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-01T17:18:09+00:00\",\"dateModified\":\"2024-11-26T06:44:26+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38394\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/38394\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/38394\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Express \uac1c\ubc1c \uac15\uc88c, \ud504\ub85c\uc81d\ud2b8 \uad6c\uc870 \ubc0f \ud30c\uc77c \uad6c\uc131 \uc774\ud574\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, \ud504\ub85c\uc81d\ud2b8 \uad6c\uc870 \ubc0f \ud30c\uc77c \uad6c\uc131 \uc774\ud574\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\/38394\/","og_locale":"ko_KR","og_type":"article","og_title":"Express \uac1c\ubc1c \uac15\uc88c, \ud504\ub85c\uc81d\ud2b8 \uad6c\uc870 \ubc0f \ud30c\uc77c \uad6c\uc131 \uc774\ud574\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"1. \uc11c\ub860 Express.js\ub294 Node.js\ub97c \uc704\ud55c \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, RESTful API\ub97c \uc27d\uac8c \uad6c\ucd95\ud560 \uc218 \uc788\ub3c4\ub85d \ub3c4\uc640\uc900\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 Express\ub85c \ubc31\uc5d4\ub4dc \uc11c\ubc84\ub97c \uac1c\ubc1c\ud558\uae30 \uc704\ud55c \ud504\ub85c\uc81d\ud2b8 \uad6c\uc870\uc640 \ud30c\uc77c \uad6c\uc131\uc744 \uae4a\uc774 \uc788\uac8c \uc54c\uc544\ubcf4\uaca0\ub2e4. \ub610\ud55c \ucd5c\uc801\uc758 \uac1c\ubc1c \ud658\uacbd\uc744 \uc704\ud55c \uae30\ubcf8\uc801\uc778 \uc124\uc815 \ubc29\ubc95\uacfc \uc608\uc81c\ub97c \uc81c\uacf5\ud560 \uc608\uc815\uc774\ub2e4. 2. Express.js\ub780? Express.js\ub294 \uacbd\ub7c9\ud654\ub41c Node.js \uc6f9 \uc5b4\ud50c\ub9ac\ucf00\uc774\uc158 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \uc6f9 \uc11c\ubc84 \ubc0f API \uad6c\ucd95\uc744 \uc704\ud55c \ub2e4\uc591\ud55c \uae30\ub2a5\ub4e4\uc744 &hellip; \ub354 \ubcf4\uae30 \"Express \uac1c\ubc1c \uac15\uc88c, \ud504\ub85c\uc81d\ud2b8 \uad6c\uc870 \ubc0f \ud30c\uc77c \uad6c\uc131 \uc774\ud574\ud558\uae30\"","og_url":"https:\/\/atmokpo.com\/w\/38394\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-01T17:18:09+00:00","article_modified_time":"2024-11-26T06:44:26+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\/38394\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/38394\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"Express \uac1c\ubc1c \uac15\uc88c, \ud504\ub85c\uc81d\ud2b8 \uad6c\uc870 \ubc0f \ud30c\uc77c \uad6c\uc131 \uc774\ud574\ud558\uae30","datePublished":"2024-11-01T17:18:09+00:00","dateModified":"2024-11-26T06:44:26+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/38394\/"},"wordCount":60,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["Express\uc11c\ubc84\uac1c\ubc1c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/38394\/","url":"https:\/\/atmokpo.com\/w\/38394\/","name":"Express \uac1c\ubc1c \uac15\uc88c, \ud504\ub85c\uc81d\ud2b8 \uad6c\uc870 \ubc0f \ud30c\uc77c \uad6c\uc131 \uc774\ud574\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-01T17:18:09+00:00","dateModified":"2024-11-26T06:44:26+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/38394\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/38394\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/38394\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"Express \uac1c\ubc1c \uac15\uc88c, \ud504\ub85c\uc81d\ud2b8 \uad6c\uc870 \ubc0f \ud30c\uc77c \uad6c\uc131 \uc774\ud574\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":[],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38394","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=38394"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38394\/revisions"}],"predecessor-version":[{"id":38395,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38394\/revisions\/38395"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=38394"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=38394"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=38394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}