{"id":38370,"date":"2024-11-01T17:17:59","date_gmt":"2024-11-01T17:17:59","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=38370"},"modified":"2024-11-26T06:44:30","modified_gmt":"2024-11-26T06:44:30","slug":"express-%ea%b0%9c%eb%b0%9c-%ea%b0%95%ec%a2%8c-mongodb%ec%99%80-mongoose%eb%a5%bc-%ec%9d%b4%ec%9a%a9%ed%95%9c-%eb%8d%b0%ec%9d%b4%ed%84%b0%eb%b2%a0%ec%9d%b4%ec%8a%a4-%ec%97%b0%eb%8f%99","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/38370\/","title":{"rendered":"Express \uac1c\ubc1c \uac15\uc88c, MongoDB\uc640 Mongoose\ub97c \uc774\uc6a9\ud55c \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\ub3d9"},"content":{"rendered":"<p><body><\/p>\n<p>\uc774 \uac15\uc88c\uc5d0\uc11c\ub294 <strong>Express.js<\/strong> \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub97c \uc0ac\uc6a9\ud558\uc5ec <strong>Node.js<\/strong> \uc11c\ubc84\ub97c \uad6c\ucd95\ud558\uace0, <strong>MongoDB<\/strong> \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640\uc758 \uc5f0\ub3d9\uc744 \uc704\ud574 <strong>Mongoose<\/strong> \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \uc0ac\uc6a9\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc124\uba85\ud569\ub2c8\ub2e4. \uc774 \uac15\uc88c\ub97c \ud1b5\ud574 \uc5ec\ub7ec\ubd84\uc740 Express \uc11c\ubc84\ub97c \uc124\uc815\ud558\uace0 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \ubaa8\ub378\uc744 \uc815\uc758\ud558\uba70 \ub370\uc774\ud130 CRUD(Create, Read, Update, Delete) \uc791\uc5c5\uc744 \uc218\ud589\ud558\ub294 \ubc29\ubc95\uc744 \ubc30\uc6b0\uac8c \ub420 \uac83\uc785\ub2c8\ub2e4.<\/p>\n<h2>\ubaa9\ucc28<\/h2>\n<ol>\n<li><a href=\"#section1\">Express.js \uc18c\uac1c<\/a><\/li>\n<li><a href=\"#section2\">MongoDB \uc18c\uac1c<\/a><\/li>\n<li><a href=\"#section3\">Mongoose\ub780?<\/a><\/li>\n<li><a href=\"#section4\">Express \uc11c\ubc84 \uc900\ube44\ud558\uae30<\/a><\/li>\n<li><a href=\"#section5\">MongoDB \uc5f0\ub3d9\ud558\uae30<\/a><\/li>\n<li><a href=\"#section6\">CRUD \uae30\ub2a5 \uad6c\ud604\ud558\uae30<\/a><\/li>\n<li><a href=\"#section7\">\uacb0\ub860<\/a><\/li>\n<\/ol>\n<h2 id=\"section1\">1. Express.js \uc18c\uac1c<\/h2>\n<p><strong>Express.js<\/strong>\ub294 Node.js\ub97c \uc704\ud55c \ucd5c\uc18c\ud654\ub418\uace0 \uc720\uc5f0\ud55c \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. \uc774 \ud504\ub808\uc784\uc6cc\ud06c\ub294 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ubc0f API\ub97c \uad6c\ucd95\ud558\ub294 \ub370 \ud544\uc694\ud55c \ub9ce\uc740 \uae30\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. Express\ub294 \ubbf8\ub4e4\uc6e8\uc5b4 \uac1c\ub150\uc744 \uc0ac\uc6a9\ud558\uc5ec \uc694\uccad-\uc751\ub2f5 \uc0ac\uc774\ud074\uc744 \ucc98\ub9ac\ud558\uba70, \uc774\ub97c \ud1b5\ud574 \ub2e4\uc591\ud55c \uc694\uccad\uc5d0 \ub300\ud55c \uc720\uc5f0\ud55c \ub77c\uc6b0\ud305\uacfc \uc751\ub2f5 \ucc98\ub9ac\uac00 \uac00\ub2a5\ud569\ub2c8\ub2e4.<\/p>\n<p>Express\uc758 \uc8fc\uc694 \ud2b9\uc9d5\uc73c\ub85c\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li>\uacbd\ub7c9\uc131\uacfc \ube60\ub978 \uc131\ub2a5<\/li>\n<li>\ubbf8\ub4e4\uc6e8\uc5b4\ub97c \ud1b5\ud55c \ud655\uc7a5 \uac00\ub2a5\uc131<\/li>\n<li>RESTful API \uad6c\ucd95\uc744 \uc704\ud55c \uc0ac\uc6a9 \uc6a9\uc774\uc131<\/li>\n<li>\ub2e4\uc591\ud55c \ub370\uc774\ud130 \ud3ec\ub9f7 \uc9c0\uc6d0 (JSON, XML \ub4f1)<\/li>\n<\/ul>\n<h2 id=\"section2\">2. MongoDB \uc18c\uac1c<\/h2>\n<p><strong>MongoDB<\/strong>\ub294 \ube44\uad00\uacc4\ud615(NoSQL) \ub370\uc774\ud130\ubca0\uc774\uc2a4\ub85c, \uc720\uc5f0\ud55c \ub370\uc774\ud130 \ubaa8\ub378\ub9c1\uc744 \uc9c0\uc6d0\ud569\ub2c8\ub2e4. JSON\uacfc \uc720\uc0ac\ud55c BSON(Binary JSON) \ud615\uc2dd\uc73c\ub85c \ub370\uc774\ud130\ub97c \uc800\uc7a5\ud558\uae30 \ub54c\ubb38\uc5d0, \uac1d\uccb4 \uc9c0\ud5a5 \ud504\ub85c\uadf8\ub798\ubc0d\uc5d0 \uce5c\uc219\ud55c \uac1c\ubc1c\uc790\ub4e4\uc5d0\uac8c \uc778\uae30\uac00 \ub9ce\uc2b5\ub2c8\ub2e4. MongoDB\ub294 \uc2a4\ucf00\uc77c \uc544\uc6c3\uc774 \uc6a9\uc774\ud558\uace0 \ub300\uc6a9\ub7c9 \ub370\uc774\ud130 \uc800\uc7a5\uc5d0 \uc801\ud569\ud55c \ud2b9\uc131\uc744 \uac00\uc9c0\uace0 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<p>MongoDB\uc758 \uc8fc\uc694 \ud2b9\uc9d5\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li>\uc720\uc5f0\ud55c \uc2a4\ud0a4\ub9c8: \ub370\uc774\ud130 \uad6c\uc870\ub97c \uc0ac\uc804\uc5d0 \uc815\uc758\ud560 \ud544\uc694 \uc5c6\uc774, \uc11c\ub85c \ub2e4\ub978 \ub370\uc774\ud130 \uad6c\uc870\ub97c \uac19\uc740 \uceec\ub809\uc158\uc5d0 \uc800\uc7a5\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li>\uc218\ud3c9 \ud655\uc7a5: \ub370\uc774\ud130 \ubd84\uc0b0 \ubc0f \ubcf5\uc81c\ub97c \ud1b5\ud574 \uc720\uc5f0\ud558\uac8c \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc131\ub2a5\uc744 \ud655\uc7a5\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li>\uac15\ub825\ud55c \ucffc\ub9ac \uba54\ucee4\ub2c8\uc998: \ub2e4\uc591\ud55c \ucffc\ub9ac \ubc18\ud658 \uae30\ub2a5\uc744 \uc9c0\uc6d0\ud558\uc5ec \ubcf5\uc7a1\ud55c \ub370\uc774\ud130 \uac80\uc0c9\uc774 \uac00\ub2a5\ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2 id=\"section3\">3. Mongoose\ub780?<\/h2>\n<p><strong>Mongoose<\/strong>\ub294 MongoDB\ub97c Node.js \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uacfc \uc5f0\uacb0\ud558\ub294 ODM(Object Data Modeling) \ub77c\uc774\ube0c\ub7ec\ub9ac\uc785\ub2c8\ub2e4. Mongoose\ub294 MongoDB\uc758 \ub370\uc774\ud130\ub97c \ub354 \uc27d\uac8c \ub2e4\ub8f0 \uc218 \uc788\ub3c4\ub85d \uc2a4\ud0a4\ub9c8 \uae30\ubc18 \ubaa8\ub378\ub9c1\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. \uc774\ub97c \ud1b5\ud574 \ub370\uc774\ud130\uc758 \uad6c\uc870\ub97c \uc815\uc758\ud558\uace0, \uc720\ud6a8\uc131 \uac80\uc0ac, \ucffc\ub9ac \ube4c\ub354\uc640 \uac19\uc740 \uae30\ub2a5\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. Mongoose\ub97c \uc0ac\uc6a9\ud558\uba74 MongoDB\uc758 \ubaa8\ub4e0 \uae30\ub2a5\uc744 \ud6a8\uc728\uc801\uc73c\ub85c \ud65c\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<p>Mongoose\uc758 \uc8fc\uc694 \uae30\ub2a5\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li>\uc2a4\ud0a4\ub9c8 \uc815\uc758: CRUD \uc791\uc5c5\uc5d0 \ud544\uc694\ud55c \ub370\uc774\ud130 \uad6c\uc870\ub97c \uba85\ud655\ud788 \uc815\uc758\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li>\ubbf8\ub4e4\uc6e8\uc5b4: \ub370\uc774\ud130 \uc800\uc7a5 \ub610\ub294 \uc5c5\ub370\uc774\ud2b8 \uc804\uc5d0 \uc2e4\ud589\ub418\ub294 \uc804\/\ud6c4\ucc98\ub9ac\uae30\ub97c \uc791\uc131\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li>\ub0b4\uc7a5 \uc720\ud6a8\uc131 \uac80\uc0ac: \ub370\uc774\ud130 \uc800\uc7a5 \uc2dc \uc720\ud6a8\uc131\uc744 \uac80\uc0ac\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2 id=\"section4\">4. Express \uc11c\ubc84 \uc900\ube44\ud558\uae30<\/h2>\n<p>\uc774\uc81c Express \uc11c\ubc84\ub97c \uad6c\ucd95\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uba3c\uc800 Node.js\uac00 \uc124\uce58\ub418\uc5b4 \uc788\uc5b4\uc57c \ud569\ub2c8\ub2e4. \uc544\ub798\uc640 \uac19\uc774 \ud504\ub85c\uc81d\ud2b8\ub97c \uc0dd\uc131\ud558\uace0 \ud544\uc694\ud55c \ud328\ud0a4\uc9c0\ub97c \uc124\uce58\ud569\ub2c8\ub2e4.<\/p>\n<pre class=\"example-code\">\nmkdir express-mongo-example\ncd express-mongo-example\nnpm init -y\nnpm install express mongoose body-parser\n<\/pre>\n<p>\uc774\uc81c \uac04\ub2e8\ud55c Express \uc11c\ubc84\ub97c \ub9cc\ub4e4\uc5b4 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. <code>server.js<\/code> \ud30c\uc77c\uc744 \uc0dd\uc131\ud558\uace0 \ub2e4\uc74c \ucf54\ub4dc\ub97c \uc791\uc131\ud569\ub2c8\ub2e4.<\/p>\n<pre class=\"example-code\">\nconst express = require('express');\nconst bodyParser = require('body-parser');\nconst mongoose = require('mongoose');\n\nconst app = express();\napp.use(bodyParser.json());\n\n\/\/ MongoDB \uc5f0\uacb0\nmongoose.connect('mongodb:\/\/localhost:27017\/example', { useNewUrlParser: true, useUnifiedTopology: true })\n    .then(() =&gt; console.log('MongoDB \uc5f0\uacb0 \uc131\uacf5'))\n    .catch(err =&gt; console.error('MongoDB \uc5f0\uacb0 \uc2e4\ud328:', err));\n\napp.get('\/', (req, res) =&gt; {\n    res.send('Express \uc11c\ubc84\uac00 \uc2e4\ud589 \uc911\uc785\ub2c8\ub2e4.');\n});\n\nconst PORT = 3000;\napp.listen(PORT, () =&gt; {\n    console.log(`\uc11c\ubc84\uac00 \ud3ec\ud2b8 ${PORT}\uc5d0\uc11c \uc2e4\ud589 \uc911\uc785\ub2c8\ub2e4.`);\n});\n<\/pre>\n<p>\uc704 \ucf54\ub4dc\ub97c \uc2e4\ud589\ud558\uae30 \uc704\ud574 \uc544\ub798 \uba85\ub839\uc5b4\ub97c \ud130\ubbf8\ub110\uc5d0 \uc785\ub825\ud569\ub2c8\ub2e4.<\/p>\n<pre class=\"example-code\">\nnode server.js\n<\/pre>\n<p>\ube0c\ub77c\uc6b0\uc800\uc5d0\uc11c <code>http:\/\/localhost:3000<\/code>\uc744 \uc785\ub825\ud558\uba74 &#8220;Express \uc11c\ubc84\uac00 \uc2e4\ud589 \uc911\uc785\ub2c8\ub2e4.&#8221;\ub77c\ub294 \uba54\uc2dc\uc9c0\ub97c \ud655\uc778\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h2 id=\"section5\">5. MongoDB \uc5f0\ub3d9\ud558\uae30<\/h2>\n<p>Mongoose\ub97c \uc0ac\uc6a9\ud558\uc5ec MongoDB\uc5d0 \uc5f0\uacb0\ud558\uace0, \ub370\uc774\ud130 \ubaa8\ub378\uc744 \uc815\uc758\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. <code>models<\/code> \ud3f4\ub354\ub97c \uc0dd\uc131\ud558\uace0, \uadf8 \uc548\uc5d0 <code>User.js<\/code> \ud30c\uc77c\uc744 \uc0dd\uc131\ud569\ub2c8\ub2e4. \ub2e4\uc74c\uacfc \uac19\uc774 \uc0ac\uc6a9\uc790 \ubaa8\ub378\uc744 \uc815\uc758\ud569\ub2c8\ub2e4.<\/p>\n<pre class=\"example-code\">\nconst mongoose = require('mongoose');\n\nconst userSchema = new mongoose.Schema({\n    name: { type: String, required: true },\n    email: { type: String, required: true, unique: true },\n    age: { type: Number, min: 0 }\n});\n\nmodule.exports = mongoose.model('User', userSchema);\n<\/pre>\n<p>\uc774\uc81c <code>server.js<\/code> \ud30c\uc77c\uc5d0\uc11c \uc704 \ubaa8\ub378\uc744 \ubd88\ub7ec\uc640\uc11c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<pre class=\"example-code\">\nconst User = require('.\/models\/User');\n<\/pre>\n<p>MongoDB\uc5d0 \ub370\uc774\ud130 \uc0bd\uc785\uc744 \uc704\ud55c API\ub97c \ucd94\uac00\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. <code>POST \/api\/users<\/code> \uc5d4\ub4dc\ud3ec\uc778\ud2b8\ub97c \ub9cc\ub4e4\uace0, \uc0ac\uc6a9\uc790 \ub370\uc774\ud130\ub97c \uc218\uc2e0\ud558\uc5ec \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc5d0 \uc800\uc7a5\ud569\ub2c8\ub2e4.<\/p>\n<pre class=\"example-code\">\napp.post('\/api\/users', (req, res) =&gt; {\n    const user = new User(req.body);\n    user.save()\n        .then(() =&gt; res.status(201).send('\uc0ac\uc6a9\uc790 \uc0dd\uc131 \uc644\ub8cc.'))\n        .catch(err =&gt; res.status(400).send('\uc0ac\uc6a9\uc790 \uc0dd\uc131 \uc2e4\ud328: ' + err.message));\n});\n<\/pre>\n<p>\uc704 \ucf54\ub4dc\ub97c \ud1b5\ud574 \ud074\ub77c\uc774\uc5b8\ud2b8\uc5d0\uc11c \uc804\uc1a1\ud55c JSON \ub370\uc774\ud130\ub97c MongoDB\uc5d0 \uc800\uc7a5\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774\uc81c Postman \ub610\ub294 Curl\uc744 \uc0ac\uc6a9\ud558\uc5ec \ud14c\uc2a4\ud2b8\ud574 \ubcfc \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h2 id=\"section6\">6. CRUD \uae30\ub2a5 \uad6c\ud604\ud558\uae30<\/h2>\n<p>\uc774\uc81c MongoDB\uc640\uc758 \uc5f0\ub3d9\uc774 \uc644\ub8cc\ub418\uc5c8\uc73c\ubbc0\ub85c, Complete CRUD(\uc0dd\uc131, \uc870\ud68c, \uc218\uc815, \uc0ad\uc81c) \uae30\ub2a5\uc744 \uad6c\ud604\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>6.1 Create<\/h3>\n<p>\uc704\uc5d0\uc11c \uc774\ubbf8 <code>POST \/api\/users<\/code> API\ub97c \uad6c\ud604\ud588\uc2b5\ub2c8\ub2e4. \uc774\uc81c \uc0ac\uc6a9\uc790 \uc0dd\uc131\uc744 \uc704\ud574 JSON \ub370\uc774\ud130\ub97c \uc804\uc1a1\ud558\uba74 \ub429\ub2c8\ub2e4.<\/p>\n<h3>6.2 Read<\/h3>\n<p>\uc0ac\uc6a9\uc790 \ub370\uc774\ud130\ub97c \uc870\ud68c\ud558\ub294 API\ub97c \uc0dd\uc131\ud558\uaca0\uc2b5\ub2c8\ub2e4. <code>GET \/api\/users<\/code> \uc5d4\ub4dc\ud3ec\uc778\ud2b8\ub97c \ucd94\uac00\ud558\uc5ec \ubaa8\ub4e0 \uc0ac\uc6a9\uc790 \ub370\uc774\ud130\ub97c \uac00\uc838\uc624\ub294 \uae30\ub2a5\uc744 \uad6c\ud604\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<pre class=\"example-code\">\napp.get('\/api\/users', (req, res) =&gt; {\n    User.find()\n        .then(users =&gt; res.status(200).json(users))\n        .catch(err =&gt; res.status(500).send('\uc0ac\uc6a9\uc790 \uc870\ud68c \uc2e4\ud328: ' + err.message));\n});\n<\/pre>\n<h3>6.3 Update<\/h3>\n<p>\ud2b9\uc815 \uc0ac\uc6a9\uc790\uc758 \uc815\ubcf4\ub97c \uc218\uc815\ud560 \uc218 \uc788\ub294 <code>PUT \/api\/users\/:id<\/code> \uc5d4\ub4dc\ud3ec\uc778\ud2b8\ub97c \ucd94\uac00\ud569\ub2c8\ub2e4.<\/p>\n<pre class=\"example-code\">\napp.put('\/api\/users\/:id', (req, res) =&gt; {\n    User.findByIdAndUpdate(req.params.id, req.body, { new: true })\n        .then(updatedUser =&gt; res.status(200).json(updatedUser))\n        .catch(err =&gt; res.status(400).send('\uc0ac\uc6a9\uc790 \uc218\uc815 \uc2e4\ud328: ' + err.message));\n});\n<\/pre>\n<h3>6.4 Delete<\/h3>\n<p>\uc0ac\uc6a9\uc790\ub97c \uc0ad\uc81c\ud558\ub294 <code>DELETE \/api\/users\/:id<\/code> \uc5d4\ub4dc\ud3ec\uc778\ud2b8\ub97c \ucd94\uac00\ud569\ub2c8\ub2e4.<\/p>\n<pre class=\"example-code\">\napp.delete('\/api\/users\/:id', (req, res) =&gt; {\n    User.findByIdAndDelete(req.params.id)\n        .then(() =&gt; res.status(200).send('\uc0ac\uc6a9\uc790 \uc0ad\uc81c \uc644\ub8cc.'))\n        .catch(err =&gt; res.status(400).send('\uc0ac\uc6a9\uc790 \uc0ad\uc81c \uc2e4\ud328: ' + err.message));\n});\n<\/pre>\n<h2 id=\"section7\">7. \uacb0\ub860<\/h2>\n<p>\uc774 \uac15\uc88c\ub97c \ud1b5\ud574 Express.js\uc640 Mongoose\ub97c \uc0ac\uc6a9\ud558\uc5ec MongoDB\uc5d0 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\ub3d9\ud558\ub294 \ubc29\ubc95\uc744 \ubc30\uc6e0\uc2b5\ub2c8\ub2e4. \uc6b0\ub9ac\ub294 \uae30\ubcf8\uc801\uc778 CRUD \uae30\ub2a5\uc744 \ubaa8\ub450 \uad6c\ud604\ud558\uc600\uc73c\uba70, \uc774\ub7ec\ud55c \uae30\ub2a5\uc744 \uae30\ubc18\uc73c\ub85c \ub354 \ubcf5\uc7a1\ud55c \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ucd94\uac00\uc801\uc73c\ub85c \ud658\uacbd\ubcc0\uc218 \uc124\uc815, \uc5d0\ub7ec \ud578\ub4e4\ub9c1, \uc0ac\uc6a9\uc790 \uc778\uc99d \ub4f1\uc744 \uace0\ub824\ud55c\ub2e4\uba74 \ub354 \uc644\ubcbd\ud55c \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud560 \uc218 \uc788\uc744 \uac83\uc785\ub2c8\ub2e4. Express\uc640 MongoDB\uc758 \uc870\ud569\uc740 \ub9ce\uc740 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \ub9e4\uc6b0 \uc720\uc6a9\ud558\uac8c \uc0ac\uc6a9\ub418\ubbc0\ub85c, \uc774 \uae30\uc220 \uc2a4\ud0dd\uc5d0 \ub300\ud574 \uc9c0\uc18d\uc801\uc73c\ub85c \uc5f0\uad6c\ud558\uace0 \uc2e4\uc2b5\ud558\ub294 \uac83\uc744 \ucd94\ucc9c\ub4dc\ub9bd\ub2c8\ub2e4.<\/p>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc774 \uac15\uc88c\uc5d0\uc11c\ub294 Express.js \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub97c \uc0ac\uc6a9\ud558\uc5ec Node.js \uc11c\ubc84\ub97c \uad6c\ucd95\ud558\uace0, MongoDB \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640\uc758 \uc5f0\ub3d9\uc744 \uc704\ud574 Mongoose \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \uc0ac\uc6a9\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc124\uba85\ud569\ub2c8\ub2e4. \uc774 \uac15\uc88c\ub97c \ud1b5\ud574 \uc5ec\ub7ec\ubd84\uc740 Express \uc11c\ubc84\ub97c \uc124\uc815\ud558\uace0 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \ubaa8\ub378\uc744 \uc815\uc758\ud558\uba70 \ub370\uc774\ud130 CRUD(Create, Read, Update, Delete) \uc791\uc5c5\uc744 \uc218\ud589\ud558\ub294 \ubc29\ubc95\uc744 \ubc30\uc6b0\uac8c \ub420 \uac83\uc785\ub2c8\ub2e4. \ubaa9\ucc28 Express.js \uc18c\uac1c MongoDB \uc18c\uac1c Mongoose\ub780? Express \uc11c\ubc84 \uc900\ube44\ud558\uae30 MongoDB \uc5f0\ub3d9\ud558\uae30 CRUD \uae30\ub2a5 \uad6c\ud604\ud558\uae30 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/38370\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;Express \uac1c\ubc1c \uac15\uc88c, MongoDB\uc640 Mongoose\ub97c \uc774\uc6a9\ud55c \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\ub3d9&#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-38370","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, MongoDB\uc640 Mongoose\ub97c \uc774\uc6a9\ud55c \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\ub3d9 - \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\/38370\/\" \/>\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, MongoDB\uc640 Mongoose\ub97c \uc774\uc6a9\ud55c \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\ub3d9 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\uc774 \uac15\uc88c\uc5d0\uc11c\ub294 Express.js \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub97c \uc0ac\uc6a9\ud558\uc5ec Node.js \uc11c\ubc84\ub97c \uad6c\ucd95\ud558\uace0, MongoDB \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640\uc758 \uc5f0\ub3d9\uc744 \uc704\ud574 Mongoose \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \uc0ac\uc6a9\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc124\uba85\ud569\ub2c8\ub2e4. \uc774 \uac15\uc88c\ub97c \ud1b5\ud574 \uc5ec\ub7ec\ubd84\uc740 Express \uc11c\ubc84\ub97c \uc124\uc815\ud558\uace0 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \ubaa8\ub378\uc744 \uc815\uc758\ud558\uba70 \ub370\uc774\ud130 CRUD(Create, Read, Update, Delete) \uc791\uc5c5\uc744 \uc218\ud589\ud558\ub294 \ubc29\ubc95\uc744 \ubc30\uc6b0\uac8c \ub420 \uac83\uc785\ub2c8\ub2e4. \ubaa9\ucc28 Express.js \uc18c\uac1c MongoDB \uc18c\uac1c Mongoose\ub780? Express \uc11c\ubc84 \uc900\ube44\ud558\uae30 MongoDB \uc5f0\ub3d9\ud558\uae30 CRUD \uae30\ub2a5 \uad6c\ud604\ud558\uae30 &hellip; \ub354 \ubcf4\uae30 &quot;Express \uac1c\ubc1c \uac15\uc88c, MongoDB\uc640 Mongoose\ub97c \uc774\uc6a9\ud55c \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\ub3d9&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/38370\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-01T17:17:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:44:30+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\/38370\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38370\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"Express \uac1c\ubc1c \uac15\uc88c, MongoDB\uc640 Mongoose\ub97c \uc774\uc6a9\ud55c \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\ub3d9\",\"datePublished\":\"2024-11-01T17:17:59+00:00\",\"dateModified\":\"2024-11-26T06:44:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38370\/\"},\"wordCount\":93,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"Express\uc11c\ubc84\uac1c\ubc1c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/38370\/\",\"url\":\"https:\/\/atmokpo.com\/w\/38370\/\",\"name\":\"Express \uac1c\ubc1c \uac15\uc88c, MongoDB\uc640 Mongoose\ub97c \uc774\uc6a9\ud55c \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\ub3d9 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-01T17:17:59+00:00\",\"dateModified\":\"2024-11-26T06:44:30+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38370\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/38370\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/38370\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Express \uac1c\ubc1c \uac15\uc88c, MongoDB\uc640 Mongoose\ub97c \uc774\uc6a9\ud55c \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\ub3d9\"}]},{\"@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, MongoDB\uc640 Mongoose\ub97c \uc774\uc6a9\ud55c \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\ub3d9 - \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\/38370\/","og_locale":"ko_KR","og_type":"article","og_title":"Express \uac1c\ubc1c \uac15\uc88c, MongoDB\uc640 Mongoose\ub97c \uc774\uc6a9\ud55c \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\ub3d9 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\uc774 \uac15\uc88c\uc5d0\uc11c\ub294 Express.js \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub97c \uc0ac\uc6a9\ud558\uc5ec Node.js \uc11c\ubc84\ub97c \uad6c\ucd95\ud558\uace0, MongoDB \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640\uc758 \uc5f0\ub3d9\uc744 \uc704\ud574 Mongoose \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \uc0ac\uc6a9\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc124\uba85\ud569\ub2c8\ub2e4. \uc774 \uac15\uc88c\ub97c \ud1b5\ud574 \uc5ec\ub7ec\ubd84\uc740 Express \uc11c\ubc84\ub97c \uc124\uc815\ud558\uace0 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \ubaa8\ub378\uc744 \uc815\uc758\ud558\uba70 \ub370\uc774\ud130 CRUD(Create, Read, Update, Delete) \uc791\uc5c5\uc744 \uc218\ud589\ud558\ub294 \ubc29\ubc95\uc744 \ubc30\uc6b0\uac8c \ub420 \uac83\uc785\ub2c8\ub2e4. \ubaa9\ucc28 Express.js \uc18c\uac1c MongoDB \uc18c\uac1c Mongoose\ub780? Express \uc11c\ubc84 \uc900\ube44\ud558\uae30 MongoDB \uc5f0\ub3d9\ud558\uae30 CRUD \uae30\ub2a5 \uad6c\ud604\ud558\uae30 &hellip; \ub354 \ubcf4\uae30 \"Express \uac1c\ubc1c \uac15\uc88c, MongoDB\uc640 Mongoose\ub97c \uc774\uc6a9\ud55c \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\ub3d9\"","og_url":"https:\/\/atmokpo.com\/w\/38370\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-01T17:17:59+00:00","article_modified_time":"2024-11-26T06:44:30+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\/38370\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/38370\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"Express \uac1c\ubc1c \uac15\uc88c, MongoDB\uc640 Mongoose\ub97c \uc774\uc6a9\ud55c \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\ub3d9","datePublished":"2024-11-01T17:17:59+00:00","dateModified":"2024-11-26T06:44:30+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/38370\/"},"wordCount":93,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["Express\uc11c\ubc84\uac1c\ubc1c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/38370\/","url":"https:\/\/atmokpo.com\/w\/38370\/","name":"Express \uac1c\ubc1c \uac15\uc88c, MongoDB\uc640 Mongoose\ub97c \uc774\uc6a9\ud55c \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\ub3d9 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-01T17:17:59+00:00","dateModified":"2024-11-26T06:44:30+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/38370\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/38370\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/38370\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"Express \uac1c\ubc1c \uac15\uc88c, MongoDB\uc640 Mongoose\ub97c \uc774\uc6a9\ud55c \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\ub3d9"}]},{"@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":43378,"url":"https:\/\/atmokpo.com\/w\/43378\/","url_meta":{"origin":38370,"position":0},"title":"[Electron]  009. Electron\uacfc Node.js \ud1b5\ud569\ud558\uae30, Node.js \uae30\ub2a5\uc744 Electron\uc5d0\uc11c \ud65c\uc6a9\ud558\ub294 \ubc29\ubc95","author":"root","date":"2024\ub144 11\uc6d4 26\uc77c","format":false,"excerpt":"Node.js \uae30\ub2a5\uc744 Electron\uc5d0\uc11c \ud65c\uc6a9\ud558\ub294 \ubc29\ubc95 1. \uc11c\ub860 Electron\uc740 \ub370\uc2a4\ud06c\ud0d1 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ub9cc\ub4e4\uae30 \uc704\ud55c \uac15\ub825\ud55c \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \ud06c\ub85c\uc2a4 \ud50c\ub7ab\ud3fc \uc9c0\uc6d0\uc744 \ud1b5\ud574 HTML, CSS, JavaScript\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud560 \uc218 \uc788\uac8c \ud574\uc90d\ub2c8\ub2e4. Node.js\ub294 \uc11c\ubc84 \uc0ac\uc774\ub4dc\uc5d0\uc11c \uc0ac\uc6a9\ub418\ub294 JavaScript \ud658\uacbd\uc73c\ub85c, \ud074\ub77c\uc774\uc5b8\ud2b8\uc640 \uc11c\ubc84 \uac04\uc758 \uc0c1\ud638 \uc791\uc6a9\uc744 \ud1b5\ud569\ud560 \uc218 \uc788\uac8c \ud574\uc8fc\ub294 \uc911\uc694\ud55c \uc5ed\ud560\uc744 \uc218\ud589\ud569\ub2c8\ub2e4. \uc774 \ub450 \uae30\uc220\uc744 \ud1b5\ud569\ud558\uba74 \ud48d\ubd80\ud55c\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":38332,"url":"https:\/\/atmokpo.com\/w\/38332\/","url_meta":{"origin":38370,"position":1},"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":38370,"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":41114,"url":"https:\/\/atmokpo.com\/w\/41114\/","url_meta":{"origin":38370,"position":3},"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":41106,"url":"https:\/\/atmokpo.com\/w\/41106\/","url_meta":{"origin":38370,"position":4},"title":"11.Nest.js\ub85c RESTful API \uad6c\ucd95\ud558\uae30, Nest.js\uc5d0\uc11c \ucee8\ud2b8\ub864\ub7ec\uc640 \uc11c\ube44\uc2a4 \uad6c\ud604\ud558\uae30","author":"root","date":"2024\ub144 11\uc6d4 06\uc77c","format":false,"excerpt":"\ud604\ub300 \uc6f9 \uac1c\ubc1c\uc5d0\uc11c RESTful API\ub294 \ub370\uc774\ud130\uc640 \uc11c\ube44\uc2a4\ub97c \ud074\ub77c\uc774\uc5b8\ud2b8\uc640 \uc11c\ubc84 \uac04\uc5d0 \ud6a8\uacfc\uc801\uc73c\ub85c \uacf5\uc720\ud558\ub294 \ub370 \ud544\uc218\uc801\uc785\ub2c8\ub2e4. Nest.js\ub294 Node.js \uae30\ubc18\uc758 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \ud655\uc7a5\uc131\uacfc \uc720\uc9c0\ubcf4\uc218\uc131\uc744 \uace0\ub824\ud558\uc5ec \uc124\uacc4\ub418\uc5c8\uc2b5\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 Nest.js\ub97c \uc0ac\uc6a9\ud558\uc5ec RESTful API\ub97c \uad6c\ucd95\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \ub610\ud55c, API\uc758 \uae30\ubcf8\uc744 \uc774\ud574\ud558\uae30 \uc704\ud574 \ucee8\ud2b8\ub864\ub7ec\uc640 \uc11c\ube44\uc2a4\uc758 \uad6c\ud604 \ubc29\ubc95\uc5d0 \ub300\ud574\uc11c\ub3c4 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. Nest.js \uc18c\uac1c Nest.js\ub294\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":43340,"url":"https:\/\/atmokpo.com\/w\/43340\/","url_meta":{"origin":38370,"position":5},"title":"[Electron]  020. Electron\uacfc \ud504\ub860\ud2b8\uc5d4\ub4dc \ud504\ub808\uc784\uc6cc\ud06c\uc758 \ud1b5\ud569, SPA(Single Page Application) \uac1c\ubc1c\ud558\uae30","author":"root","date":"2024\ub144 11\uc6d4 26\uc77c","format":false,"excerpt":"Electron\uc740 \uc6f9 \uae30\uc220\uc744 \uc774\uc6a9\ud574 \ub370\uc2a4\ud06c\ud1b1 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud560 \uc218 \uc788\ub294 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, HTML, CSS, JavaScript\ub97c \uc0ac\uc6a9\ud558\uc5ec \ud06c\ub85c\uc2a4 \ud50c\ub7ab\ud3fc \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ub9cc\ub4e4 \uc218 \uc788\uc2b5\ub2c8\ub2e4. SPA(Single Page Application)\ub294 \uc0ac\uc6a9\uc790 \uacbd\ud5d8\uc744 \ud5a5\uc0c1\uc2dc\ud0a4\uae30 \uc704\ud574 \ud398\uc774\uc9c0 \uac04 \uc804\ud658\uc774 \ube60\ub974\uace0 \ubd80\ub4dc\ub7fd\uac8c \uc9c4\ud589\ub418\ub294 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc785\ub2c8\ub2e4. \uc774\ubc88 \uae00\uc5d0\uc11c\ub294 Electron\uacfc \ucd5c\uc2e0 \ud504\ub860\ud2b8\uc5d4\ub4dc \ud504\ub808\uc784\uc6cc\ud06c\ub97c \ud1b5\ud569\ud558\uc5ec SPA\ub97c \uac1c\ubc1c\ud558\ub294 \ubc29\ubc95\uc744 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. Electron \uac1c\uc694 Electron\uc740\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\/38370","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=38370"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38370\/revisions"}],"predecessor-version":[{"id":38371,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38370\/revisions\/38371"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=38370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=38370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=38370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}