{"id":38362,"date":"2024-11-01T17:17:55","date_gmt":"2024-11-01T17:17:55","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=38362"},"modified":"2024-11-26T06:44:31","modified_gmt":"2024-11-26T06:44:31","slug":"express-%ea%b0%9c%eb%b0%9c-%ea%b0%95%ec%a2%8c-postgresql%ea%b3%bc-sequelize%eb%a5%bc-%ec%9d%b4%ec%9a%a9%ed%95%9c-%ea%b4%80%ea%b3%84%ed%98%95-%eb%8d%b0%ec%9d%b4%ed%84%b0%eb%b2%a0%ec%9d%b4%ec%8a%a4","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/38362\/","title":{"rendered":"Express \uac1c\ubc1c \uac15\uc88c, PostgreSQL\uacfc Sequelize\ub97c \uc774\uc6a9\ud55c \uad00\uacc4\ud615 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\ub3d9"},"content":{"rendered":"<p><body><\/p>\n<article>\n<section>\n<h2>1. \uc11c\ub860<\/h2>\n<p>\n                Node.js\ub294 \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc744 \uc9c0\uc6d0\ud558\ub294 \uc11c\ubc84 \uc0ac\uc774\ub4dc \ud50c\ub7ab\ud3fc\uc73c\ub85c, \uadf8 \uc911 Express.js\ub294 \uac04\uacb0\ud558\uace0 \uac15\ub825\ud55c \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ud504\ub808\uc784\uc6cc\ud06c\ub85c \ub110\ub9ac \uc0ac\uc6a9\ub429\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 PostgreSQL \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640 ORM(Object Relational Mapping) \ub77c\uc774\ube0c\ub7ec\ub9ac\uc778 Sequelize\ub97c \ud65c\uc6a9\ud558\uc5ec Express \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0 \uad00\uacc4\ud615 \ub370\uc774\ud130\ubca0\uc774\uc2a4\ub97c \uc5f0\uacb0\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.\n            <\/p>\n<\/section>\n<section>\n<h2>2. \ud658\uacbd \uc124\uc815<\/h2>\n<p>\uc6b0\uc120, \ud504\ub85c\uc81d\ud2b8\ub97c \uc704\ud574 Node.js \ubc0f PostgreSQL\uc774 \uc124\uce58\ub418\uc5b4 \uc788\uc5b4\uc57c \ud569\ub2c8\ub2e4. PostgreSQL \uc124\uce58 \ud6c4 \ub370\uc774\ud130\ubca0\uc774\uc2a4\ub97c \uc0dd\uc131\ud558\uace0 \ub2e4\uc74c \ub2e8\uacc4\ub97c \uc9c4\ud589\ud569\ub2c8\ub2e4.<\/p>\n<h3>2.1. Node.js \ud504\ub85c\uc81d\ud2b8 \uc0dd\uc131<\/h3>\n<pre><code>mkdir express-postgresql-example\ncd express-postgresql-example\nnpm init -y<\/code><\/pre>\n<h3>2.2. \ud544\uc694\ud55c \ud328\ud0a4\uc9c0 \uc124\uce58<\/h3>\n<p>Express, Sequelize, pg (PostgreSQL \ub4dc\ub77c\uc774\ubc84), \uad00\ub828 \ud328\ud0a4\uc9c0\ub97c \uc124\uce58\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>npm install express sequelize pg pg-hstore<\/code><\/pre>\n<\/section>\n<section>\n<h2>3. PostgreSQL \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc124\uc815<\/h2>\n<p>\n                PostgreSQL \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc5d0 \uc811\uc18d\ud558\uc5ec \uc544\ub798\uc640 \uac19\uc774 \ub370\uc774\ud130\ubca0\uc774\uc2a4\ub97c \uc0dd\uc131\ud569\ub2c8\ub2e4.<br \/>\n                \uba85\ub839\uc904\uc5d0\uc11c psql\uc744 \uc2e4\ud589\ud55c \ud6c4 \ub2e4\uc74c SQL \uba85\ub839\uc5b4\ub97c \uc785\ub825\ud569\ub2c8\ub2e4.\n            <\/p>\n<pre><code>CREATE DATABASE example_db;<\/code><\/pre>\n<p>\ud14c\uc774\ube14 \uad6c\uc870\ub97c \ub2e4\uc74c\uacfc \uac19\uc774 \uc124\uc815\ud558\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<pre><code>CREATE TABLE users (\n    id SERIAL PRIMARY KEY,\n    name VARCHAR(100),\n    email VARCHAR(100) UNIQUE\n);<\/code><\/pre>\n<h3>3.1. Sequelize \ubaa8\ub378 \uc0dd\uc131<\/h3>\n<p>Sequelize\ub97c \ud1b5\ud574 \uc704\uc758 users \ud14c\uc774\ube14\uc5d0 \ub300\ud55c \ubaa8\ub378\uc744 \uc0dd\uc131\ud569\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>4. Express \uc11c\ubc84 \uc124\uc815<\/h2>\n<p>\uc774\uc81c Express \uc11c\ubc84\ub97c \uc124\uc815\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. server.js \ud30c\uc77c\uc744 \ub9cc\ub4e4\uc5b4 \uc8fc\uc2ed\uc2dc\uc624.<\/p>\n<pre><code>const express = require('express');\nconst { Sequelize, DataTypes } = require('sequelize');\n\n\/\/ \uc11c\ubc84 \ubc0f \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc124\uc815\nconst app = express();\nconst sequelize = new Sequelize('example_db', 'username', 'password', {\n    host: 'localhost',\n    dialect: 'postgres'\n});\n\n\/\/ \ubaa8\ub378 \uc815\uc758\nconst User = sequelize.define('User', {\n    name: {\n        type: DataTypes.STRING,\n        allowNull: false\n    },\n    email: {\n        type: DataTypes.STRING,\n        allowNull: false,\n        unique: true\n    }\n}, {\n    tableName: 'users'\n});\n\n\/\/ \ubbf8\ub4e4\uc6e8\uc5b4\napp.use(express.json());\n\n\/\/ RESTful API \uad6c\ud604\napp.get('\/users', async (req, res) =&gt; {\n    const users = await User.findAll();\n    res.json(users);\n});\n\napp.post('\/users', async (req, res) =&gt; {\n    const { name, email } = req.body;\n    const user = await User.create({ name, email });\n    res.status(201).json(user);\n});\n\n\/\/ \uc11c\ubc84 \uc2dc\uc791\nconst PORT = process.env.PORT || 3000;\napp.listen(PORT, async () =&gt; {\n    try {\n        await sequelize.authenticate();\n        console.log('Database connected');\n        console.log(`Server is running on http:\/\/localhost:${PORT}`);\n    } catch (error) {\n        console.error('Unable to connect to the database:', error);\n    }\n});<\/code><\/pre>\n<\/section>\n<section>\n<h2>5. \ub370\uc774\ud130 CRUD \uc791\uc5c5<\/h2>\n<h3>5.1. Create (\uc0dd\uc131)<\/h3>\n<p>POST \/users \uc5d4\ub4dc\ud3ec\uc778\ud2b8\ub97c \ud1b5\ud574 \uc0ac\uc6a9\uc790\ub97c \uc0dd\uc131\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc694\uccad \ubcf8\ubb38\uc5d0 \uc0ac\uc6a9\uc790 \uc774\ub984\uacfc \uc774\uba54\uc77c\uc744 \ud3ec\ud568\ud574\uc57c \ud569\ub2c8\ub2e4.<\/p>\n<h3>5.2. Read (\uc870\ud68c)<\/h3>\n<p>GET \/users \uc5d4\ub4dc\ud3ec\uc778\ud2b8\ub97c \ud638\ucd9c\ud558\uba74 \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc5d0 \uc788\ub294 \ubaa8\ub4e0 \uc0ac\uc6a9\uc790\uac00 \ubc18\ud658\ub429\ub2c8\ub2e4.<\/p>\n<h3>5.3. Update (\uc218\uc815)<\/h3>\n<pre><code>app.put('\/users\/:id', async (req, res) =&gt; {\n    const { id } = req.params;\n    const { name, email } = req.body;\n    const user = await User.findByPk(id);\n    if (user) {\n        user.name = name;\n        user.email = email;\n        await user.save();\n        res.json(user);\n    } else {\n        res.status(404).json({ message: 'User not found' });\n    }\n});<\/code><\/pre>\n<h3>5.4. Delete (\uc0ad\uc81c)<\/h3>\n<pre><code>app.delete('\/users\/:id', async (req, res) =&gt; {\n    const { id } = req.params;\n    const user = await User.destroy({ where: { id } });\n    if (user) {\n        res.status(204).send();\n    } else {\n        res.status(404).json({ message: 'User not found' });\n    }\n});<\/code><\/pre>\n<\/section>\n<section>\n<h2>6. Sequelize \uc751\uc6a9: \uad00\uacc4 \uc124\uc815<\/h2>\n<p>Sequelize\ub294 \ubaa8\ub378 \uac04\uc758 \uad00\uacc4\ub97c \uc124\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, \uc0ac\uc6a9\uc790\uac00 \uc5ec\ub7ec \uac8c\uc2dc\uae00\uc744 \uc791\uc131\ud558\ub294 \uad6c\uc870\ub85c \ub9cc\ub4e4\uae30 \uc704\ud574 Post \ubaa8\ub378\uc744 \ucd94\uac00\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<pre><code>const Post = sequelize.define('Post', {\n    title: {\n        type: DataTypes.STRING,\n        allowNull: false\n    },\n    content: {\n        type: DataTypes.TEXT,\n        allowNull: false\n    }\n}, {\n    tableName: 'posts'\n});\n\n\/\/ \uad00\uacc4 \uc124\uc815\nUser.hasMany(Post);\nPost.belongsTo(User);<\/code><\/pre>\n<p>\uc774\uc81c \uc0ac\uc6a9\uc790\ub294 \uc5ec\ub7ec \uac8c\uc2dc\uae00\uc744 \uac00\uc9c8 \uc218 \uc788\uc73c\uba70, \uac8c\uc2dc\uae00\uc740 \ud558\ub098\uc758 \uc0ac\uc6a9\uc790\uc5d0\uac8c \uc18d\ud569\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>7. \ub370\uc774\ud130\ubca0\uc774\uc2a4 \ub9c8\uc774\uadf8\ub808\uc774\uc158<\/h2>\n<p>Sequelize CLI\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub370\uc774\ud130\ubca0\uc774\uc2a4\ub97c \ub9c8\uc774\uadf8\ub808\uc774\uc158\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uba3c\uc800, sequelize-cli \ud328\ud0a4\uc9c0\ub97c \uc124\uce58\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>npm install --save-dev sequelize-cli<\/code><\/pre>\n<p>\uadf8\ub9ac\uace0 \ub2e4\uc74c \uba85\ub839\uc5b4\ub85c \ub9c8\uc774\uadf8\ub808\uc774\uc158\uc744 \uc0dd\uc131\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>npx sequelize-cli migration:generate --name create-users<\/code><\/pre>\n<h3>\ub9c8\uc774\uadf8\ub808\uc774\uc158 \ud30c\uc77c \uc791\uc131<\/h3>\n<p>\uc0dd\uc131\ub41c \ud30c\uc77c\uc5d0 \ub2e4\uc74c \ub0b4\uc6a9\uc744 \ucd94\uac00\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>module.exports = {\n    up: async (queryInterface, Sequelize) =&gt; {\n        await queryInterface.createTable('users', {\n            id: {\n                type: Sequelize.INTEGER,\n                autoIncrement: true,\n                primaryKey: true\n            },\n            name: {\n                type: Sequelize.STRING,\n                allowNull: false\n            },\n            email: {\n                type: Sequelize.STRING,\n                allowNull: false,\n                unique: true\n            },\n            createdAt: {\n                allowNull: false,\n                type: Sequelize.DATE\n            },\n            updatedAt: {\n                allowNull: false,\n                type: Sequelize.DATE\n            }\n        });\n    },\n    down: async (queryInterface, Sequelize) =&gt; {\n        await queryInterface.dropTable('users');\n    }\n};<\/code><\/pre>\n<p>\ub9c8\uc774\uadf8\ub808\uc774\uc158\uc744 \uc2e4\ud589\ud558\uc5ec \ud14c\uc774\ube14\uc744 \uc0dd\uc131\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>npx sequelize-cli db:migrate<\/code><\/pre>\n<\/section>\n<section>\n<h2>8. \uc131\ub2a5 \ucd5c\uc801\ud654<\/h2>\n<p>\ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640\uc758 \uc5f0\uacb0\uc744 \ucd5c\uc801\ud654\ud558\uace0, \ud544\uc694\ud55c \uacbd\uc6b0 \uc778\ub371\uc2a4\ub97c \ucd94\uac00\ud558\uc5ec \ucffc\ub9ac \uc131\ub2a5\uc744 \uac1c\uc120\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. Sequelize\ub294 \ucffc\ub9ac \ucd5c\uc801\ud654\ub97c \uc704\ud55c \ub2e4\uc591\ud55c \uc635\uc158\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>User.findAll({\n    where: { email: { [Op.like]: '%@gmail.com%' } },\n    order: [['createdAt', 'DESC']],\n    limit: 10\n});<\/code><\/pre>\n<\/section>\n<section>\n<h2>9. \uacb0\ub860<\/h2>\n<p>\n                \ubcf8 \uac15\uc88c\ub97c \ud1b5\ud574 Express.js\uc640 PostgreSQL, Sequelize\ub97c \uc774\uc6a9\ud55c \uc6f9 \uc11c\ubc84\uc758 \uae30\ubcf8\uc801\uc778 \uad6c\uc870\uc640 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\ub3d9 \ubc29\ubc95\uc744 \uc775\ud614\uc2b5\ub2c8\ub2e4. \uc774\uc640 \uac19\uc740 \uad6c\uc131\uc744 \ud1b5\ud574 RESTful API\ub97c \ud6a8\uc728\uc801\uc73c\ub85c \uad6c\ucd95\ud560 \uc218 \uc788\uc73c\uba70, \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640 \uc0c1\ud638\uc791\uc6a9\ud558\ub294 \uac15\ub825\ud55c \uae30\ub2a5\uc744 \ud65c\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n            <\/p>\n<\/section>\n<\/article>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \uc11c\ub860 Node.js\ub294 \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc744 \uc9c0\uc6d0\ud558\ub294 \uc11c\ubc84 \uc0ac\uc774\ub4dc \ud50c\ub7ab\ud3fc\uc73c\ub85c, \uadf8 \uc911 Express.js\ub294 \uac04\uacb0\ud558\uace0 \uac15\ub825\ud55c \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ud504\ub808\uc784\uc6cc\ud06c\ub85c \ub110\ub9ac \uc0ac\uc6a9\ub429\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 PostgreSQL \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640 ORM(Object Relational Mapping) \ub77c\uc774\ube0c\ub7ec\ub9ac\uc778 Sequelize\ub97c \ud65c\uc6a9\ud558\uc5ec Express \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0 \uad00\uacc4\ud615 \ub370\uc774\ud130\ubca0\uc774\uc2a4\ub97c \uc5f0\uacb0\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 2. \ud658\uacbd \uc124\uc815 \uc6b0\uc120, \ud504\ub85c\uc81d\ud2b8\ub97c \uc704\ud574 Node.js \ubc0f PostgreSQL\uc774 \uc124\uce58\ub418\uc5b4 \uc788\uc5b4\uc57c \ud569\ub2c8\ub2e4. PostgreSQL \uc124\uce58 \ud6c4 \ub370\uc774\ud130\ubca0\uc774\uc2a4\ub97c \uc0dd\uc131\ud558\uace0 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/38362\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;Express \uac1c\ubc1c \uac15\uc88c, PostgreSQL\uacfc Sequelize\ub97c \uc774\uc6a9\ud55c \uad00\uacc4\ud615 \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-38362","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, PostgreSQL\uacfc Sequelize\ub97c \uc774\uc6a9\ud55c \uad00\uacc4\ud615 \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\/38362\/\" \/>\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, PostgreSQL\uacfc Sequelize\ub97c \uc774\uc6a9\ud55c \uad00\uacc4\ud615 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\ub3d9 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"1. \uc11c\ub860 Node.js\ub294 \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc744 \uc9c0\uc6d0\ud558\ub294 \uc11c\ubc84 \uc0ac\uc774\ub4dc \ud50c\ub7ab\ud3fc\uc73c\ub85c, \uadf8 \uc911 Express.js\ub294 \uac04\uacb0\ud558\uace0 \uac15\ub825\ud55c \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ud504\ub808\uc784\uc6cc\ud06c\ub85c \ub110\ub9ac \uc0ac\uc6a9\ub429\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 PostgreSQL \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640 ORM(Object Relational Mapping) \ub77c\uc774\ube0c\ub7ec\ub9ac\uc778 Sequelize\ub97c \ud65c\uc6a9\ud558\uc5ec Express \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0 \uad00\uacc4\ud615 \ub370\uc774\ud130\ubca0\uc774\uc2a4\ub97c \uc5f0\uacb0\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 2. \ud658\uacbd \uc124\uc815 \uc6b0\uc120, \ud504\ub85c\uc81d\ud2b8\ub97c \uc704\ud574 Node.js \ubc0f PostgreSQL\uc774 \uc124\uce58\ub418\uc5b4 \uc788\uc5b4\uc57c \ud569\ub2c8\ub2e4. PostgreSQL \uc124\uce58 \ud6c4 \ub370\uc774\ud130\ubca0\uc774\uc2a4\ub97c \uc0dd\uc131\ud558\uace0 &hellip; \ub354 \ubcf4\uae30 &quot;Express \uac1c\ubc1c \uac15\uc88c, PostgreSQL\uacfc Sequelize\ub97c \uc774\uc6a9\ud55c \uad00\uacc4\ud615 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\ub3d9&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/38362\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-01T17:17:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:44:31+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\/38362\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38362\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"Express \uac1c\ubc1c \uac15\uc88c, PostgreSQL\uacfc Sequelize\ub97c \uc774\uc6a9\ud55c \uad00\uacc4\ud615 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\ub3d9\",\"datePublished\":\"2024-11-01T17:17:55+00:00\",\"dateModified\":\"2024-11-26T06:44:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38362\/\"},\"wordCount\":57,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"Express\uc11c\ubc84\uac1c\ubc1c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/38362\/\",\"url\":\"https:\/\/atmokpo.com\/w\/38362\/\",\"name\":\"Express \uac1c\ubc1c \uac15\uc88c, PostgreSQL\uacfc Sequelize\ub97c \uc774\uc6a9\ud55c \uad00\uacc4\ud615 \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:55+00:00\",\"dateModified\":\"2024-11-26T06:44:31+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38362\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/38362\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/38362\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Express \uac1c\ubc1c \uac15\uc88c, PostgreSQL\uacfc Sequelize\ub97c \uc774\uc6a9\ud55c \uad00\uacc4\ud615 \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, PostgreSQL\uacfc Sequelize\ub97c \uc774\uc6a9\ud55c \uad00\uacc4\ud615 \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\/38362\/","og_locale":"ko_KR","og_type":"article","og_title":"Express \uac1c\ubc1c \uac15\uc88c, PostgreSQL\uacfc Sequelize\ub97c \uc774\uc6a9\ud55c \uad00\uacc4\ud615 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\ub3d9 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"1. \uc11c\ub860 Node.js\ub294 \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc744 \uc9c0\uc6d0\ud558\ub294 \uc11c\ubc84 \uc0ac\uc774\ub4dc \ud50c\ub7ab\ud3fc\uc73c\ub85c, \uadf8 \uc911 Express.js\ub294 \uac04\uacb0\ud558\uace0 \uac15\ub825\ud55c \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ud504\ub808\uc784\uc6cc\ud06c\ub85c \ub110\ub9ac \uc0ac\uc6a9\ub429\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 PostgreSQL \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640 ORM(Object Relational Mapping) \ub77c\uc774\ube0c\ub7ec\ub9ac\uc778 Sequelize\ub97c \ud65c\uc6a9\ud558\uc5ec Express \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0 \uad00\uacc4\ud615 \ub370\uc774\ud130\ubca0\uc774\uc2a4\ub97c \uc5f0\uacb0\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 2. \ud658\uacbd \uc124\uc815 \uc6b0\uc120, \ud504\ub85c\uc81d\ud2b8\ub97c \uc704\ud574 Node.js \ubc0f PostgreSQL\uc774 \uc124\uce58\ub418\uc5b4 \uc788\uc5b4\uc57c \ud569\ub2c8\ub2e4. PostgreSQL \uc124\uce58 \ud6c4 \ub370\uc774\ud130\ubca0\uc774\uc2a4\ub97c \uc0dd\uc131\ud558\uace0 &hellip; \ub354 \ubcf4\uae30 \"Express \uac1c\ubc1c \uac15\uc88c, PostgreSQL\uacfc Sequelize\ub97c \uc774\uc6a9\ud55c \uad00\uacc4\ud615 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\ub3d9\"","og_url":"https:\/\/atmokpo.com\/w\/38362\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-01T17:17:55+00:00","article_modified_time":"2024-11-26T06:44:31+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\/38362\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/38362\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"Express \uac1c\ubc1c \uac15\uc88c, PostgreSQL\uacfc Sequelize\ub97c \uc774\uc6a9\ud55c \uad00\uacc4\ud615 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\ub3d9","datePublished":"2024-11-01T17:17:55+00:00","dateModified":"2024-11-26T06:44:31+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/38362\/"},"wordCount":57,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["Express\uc11c\ubc84\uac1c\ubc1c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/38362\/","url":"https:\/\/atmokpo.com\/w\/38362\/","name":"Express \uac1c\ubc1c \uac15\uc88c, PostgreSQL\uacfc Sequelize\ub97c \uc774\uc6a9\ud55c \uad00\uacc4\ud615 \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:55+00:00","dateModified":"2024-11-26T06:44:31+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/38362\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/38362\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/38362\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"Express \uac1c\ubc1c \uac15\uc88c, PostgreSQL\uacfc Sequelize\ub97c \uc774\uc6a9\ud55c \uad00\uacc4\ud615 \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":[],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38362","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=38362"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38362\/revisions"}],"predecessor-version":[{"id":38363,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38362\/revisions\/38363"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=38362"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=38362"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=38362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}