{"id":41074,"date":"2024-11-06T02:46:29","date_gmt":"2024-11-06T02:46:29","guid":{"rendered":"https:\/\/atmokpo.com\/w\/?p=41074"},"modified":"2024-11-26T06:37:40","modified_gmt":"2024-11-26T06:37:40","slug":"42-nest-js%ec%99%80-next-js%ec%97%90%ec%84%9c-%ec%9b%b9%ec%86%8c%ec%bc%93-%ed%99%9c%ec%9a%a9%ed%95%98%ea%b8%b0-nest-js%ec%97%90%ec%84%9c-%ec%8b%a4%ec%8b%9c%ea%b0%84-%ed%86%b5%ec%8b%a0-%ea%b5%ac","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/41074\/","title":{"rendered":"42.Nest.js\uc640 Next.js\uc5d0\uc11c \uc6f9\uc18c\ucf13 \ud65c\uc6a9\ud558\uae30, Nest.js\uc5d0\uc11c \uc2e4\uc2dc\uac04 \ud1b5\uc2e0 \uad6c\ud604\ud558\uae30"},"content":{"rendered":"<p><body><\/p>\n<p>\uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 Nest.js\uc640 Next.js\ub97c \ud65c\uc6a9\ud558\uc5ec \uc2e4\uc2dc\uac04 \ud1b5\uc2e0\uc744 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \uc6f9\uc18c\ucf13(WebSocket)\uc740 \ud074\ub77c\uc774\uc5b8\ud2b8\uc640 \uc11c\ubc84 \uac04\uc758 \uc591\ubc29\ud5a5 \ud1b5\uc2e0\uc744 \uac00\ub2a5\ud558\uac8c \ud558\ub294 \ud504\ub85c\ud1a0\ucf5c\uc785\ub2c8\ub2e4. \uc774\ub97c \ud1b5\ud574 \uc815\ubcf4\ub97c \uc2e4\uc2dc\uac04\uc73c\ub85c \uc8fc\uace0 \ubc1b\uc744 \uc218 \uc788\uc73c\uba70, \ud2b9\ud788 \ucc44\ud305 \uc560\ud50c\ub9ac\ucf00\uc774\uc158, \uc2e4\uc2dc\uac04 \ub300\uc2dc\ubcf4\ub4dc \ub4f1\uacfc \uac19\uc740 \uc751\uc6a9 \ud504\ub85c\uadf8\ub7a8\uc5d0\uc11c \uc720\uc6a9\ud569\ub2c8\ub2e4.<\/p>\n<h2>1. \uc6f9\uc18c\ucf13\uc758 \uae30\ucd08 \uc774\ud574<\/h2>\n<p>\uc6f9\uc18c\ucf13\uc740 HTTP \uae30\ubc18\uc758 \ud1b5\uc2e0 \ucc44\ub110\ub85c, \ub9e4\ubc88 \uc5f0\uacb0\uc744 \uc0c8\ub85c \uc5ec\ub294 \ub300\uc2e0\uc5d0 \ud55c \ubc88 \uc5f0\uacb0\ub41c \uc774\ud6c4\ub85c \uc9c0\uc18d\uc801\uc778 \uc5f0\uacb0\uc744 \uc720\uc9c0\ud558\uc5ec \uc591\ubc29\ud5a5 \ud1b5\uc2e0\uc744 \uac00\ub2a5\ud558\uac8c \ud569\ub2c8\ub2e4. \uc774\ub85c \uc778\ud574 \ud074\ub77c\uc774\uc5b8\ud2b8\uc640 \uc11c\ubc84 \uac04\uc758 \ub370\uc774\ud130 \uc804\uc1a1 \uc18d\ub3c4\uac00 \ube68\ub77c\uc9c0\uace0, \ubd88\ud544\uc694\ud55c \uc624\ubc84\ud5e4\ub4dc\uac00 \uc904\uc5b4\ub4dc\ub294 \uc7a5\uc810\uc774 \uc788\uc2b5\ub2c8\ub2e4. <\/p>\n<h3>1.1 \uc6f9\uc18c\ucf13\uc758 \ub3d9\uc791 \uad6c\uc870<\/h3>\n<pre>\n1. \ud074\ub77c\uc774\uc5b8\ud2b8\uac00 WebSocket \uc11c\ubc84\uc5d0 \uc5f0\uacb0 \uc694\uccad.\n2. \uc11c\ubc84\ub294 \uc694\uccad\uc744 \uc218\ub77d\ud558\uc5ec \uc5f0\uacb0\uc744 \uc644\uc131.\n3. \ud074\ub77c\uc774\uc5b8\ud2b8\uc640 \uc11c\ubc84\uac00 \uc5f0\uacb0\ub41c \ud6c4 \uc591\ubc29\ud5a5\uc73c\ub85c \ub370\uc774\ud130 \uc804\uc1a1.\n4. \ud074\ub77c\uc774\uc5b8\ud2b8 \ub610\ub294 \uc11c\ubc84\uac00 \uc5f0\uacb0\uc744 \uc885\ub8cc.\n<\/pre>\n<h2>2. Nest.js\uc5d0\uc11c \uc6f9\uc18c\ucf13 \uad6c\ud604\ud558\uae30<\/h2>\n<p>Nest.js\ub294 Node.js\ub97c \uc704\ud55c \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \uc6f9\uc18c\ucf13\uc744 \uc27d\uac8c \uad6c\ud604\ud560 \uc218 \uc788\ub3c4\ub85d \ub3c4\uc640\uc8fc\ub294 &#8216;socket.io&#8217; \ud328\ud0a4\uc9c0\ub97c \uc9c0\uc6d0\ud569\ub2c8\ub2e4. \uba3c\uc800 Nest.js \ud504\ub85c\uc81d\ud2b8\ub97c \uc0dd\uc131\ud558\uace0 \ud544\uc694\ud55c \ud328\ud0a4\uc9c0\ub97c \uc124\uce58\ud558\ub294 \ubc29\ubc95\uc744 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>2.1 Nest.js \ud504\ub85c\uc81d\ud2b8 \uc0dd\uc131<\/h3>\n<pre><code>npm install -g @nestjs\/cli\nnest new websocket-demo\ncd websocket-demo\n<\/code><\/pre>\n<h3>2.2 \ud544\uc694\ud55c \ud328\ud0a4\uc9c0 \uc124\uce58<\/h3>\n<p>\uc6f9\uc18c\ucf13 \uae30\ub2a5\uc744 \uc0ac\uc6a9\ud558\uae30 \uc704\ud574 socket.io\uc640 \uad00\ub828 \ud328\ud0a4\uc9c0\ub97c \uc124\uce58\ud569\ub2c8\ub2e4:<\/p>\n<pre><code>npm install --save @nestjs\/platform-socket.io socket.io<\/code><\/pre>\n<h3>2.3 \uc6f9\uc18c\ucf13 \ubaa8\ub4c8 \uc0dd\uc131<\/h3>\n<p>\uc6f9\uc18c\ucf13\uc744 \uad6c\ud604\ud558\uae30 \uc704\ud574 \uc0c8\ub85c\uc6b4 \ubaa8\ub4c8\uacfc \uc11c\ube44\uc2a4\ub97c \uc0dd\uc131\ud569\ub2c8\ub2e4:<\/p>\n<pre><code>nest g module chat\nnest g service chat\nnest g gateway chat\n<\/code><\/pre>\n<h3>2.4 \uc6f9\uc18c\ucf13 \uac8c\uc774\ud2b8\uc6e8\uc774 \uad6c\ud604<\/h3>\n<p>\uc0dd\uc131\ub41c chat.gateway.ts \ud30c\uc77c\uc744 \ub2e4\uc74c\uacfc \uac19\uc774 \uc218\uc815\ud558\uc5ec \uc6f9\uc18c\ucf13 \uae30\ub2a5\uc744 \uad6c\ud604\ud569\ub2c8\ub2e4:<\/p>\n<pre class=\"example\"><code>import { WebSocketGateway, WebSocketServer, SubscribeMessage, WebSocketIconService } from '@nestjs\/websockets';\nimport { Server } from 'socket.io';\n\n@WebSocketGateway()\nexport class ChatGateway {\n  @WebSocketServer() server: Server;\n\n  @SubscribeMessage('message')\n  handleMessage(client: any, payload: { sender: string; content: string }): void {\n    this.server.emit('message', payload);\n  }\n}\n<\/code><\/pre>\n<h3>2.5 \uc11c\ube44\uc2a4\uc5d0 \ub85c\uc9c1 \ucd94\uac00<\/h3>\n<p>chat.service.ts\uc5d0 \ube44\uc988\ub2c8\uc2a4 \ub85c\uc9c1\uc744 \ucd94\uac00\ud558\uc5ec \ub354 \ubcf5\uc7a1\ud55c \uae30\ub2a5\uc744 \uad6c\ud604\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, \uc0ac\uc6a9\uc790 \ubaa9\ub85d \uad00\ub9ac, \uba54\uc2dc\uc9c0 \uc800\uc7a5 \ub4f1\uc744 \ucd94\uac00\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>3. Next.js\uc5d0\uc11c \uc6f9\uc18c\ucf13 \ud074\ub77c\uc774\uc5b8\ud2b8 \uad6c\ud604\ud558\uae30<\/h2>\n<p>Next.js\uc5d0\uc11c\ub294 \ube0c\ub77c\uc6b0\uc800\uc5d0\uc11c \uc6f9\uc18c\ucf13 \uc11c\ubc84\uc640 \ud1b5\uc2e0\ud558\ub294 \ud074\ub77c\uc774\uc5b8\ud2b8\ub97c \uc27d\uac8c \uc0dd\uc131\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. socket.io-client \ud328\ud0a4\uc9c0\ub97c \uc0ac\uc6a9\ud558\uba74 \uae30\uc874\uc758 socket.io \uc11c\ubc84\uc640 \uc27d\uac8c \uc5f0\uacb0\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>3.1 Next.js \ud504\ub85c\uc81d\ud2b8 \uc0dd\uc131<\/h3>\n<pre><code>npx create-next-app websocket-client\ncd websocket-client\nnpm install socket.io-client<\/code><\/pre>\n<h3>3.2 \uc6f9\uc18c\ucf13 \ud074\ub77c\uc774\uc5b8\ud2b8 \uad6c\ud604<\/h3>\n<p>Next.js\uc758 pages\/index.tsx \ud30c\uc77c\uc744 \uc218\uc815\ud558\uc5ec \uc6f9\uc18c\ucf13 \uc5f0\uacb0\uc744 \uad6c\ud604\ud569\ub2c8\ub2e4:<\/p>\n<pre class=\"example\"><code>import { useEffect, useState } from 'react';\nimport { io } from 'socket.io-client';\n\nconst socket = io('http:\/\/localhost:3000'); \/\/ Nest.js \uc11c\ubc84\uc758 \uc8fc\uc18c\n\nexport default function Home() {\n  const [messages, setMessages] = useState([]);\n  const [input, setInput] = useState('');\n\n  useEffect(() =&gt; {\n    socket.on('message', (message) =&gt; {\n      setMessages((prev) =&gt; [...prev, message]);\n    });\n\n    return () =&gt; {\n      socket.off('message');\n    };\n  }, []);\n\n  const sendMessage = () =&gt; {\n    socket.emit('message', { sender: 'User', content: input });\n    setInput('');\n  };\n\n  return (\n    <div>\n      <h1>WebSocket Chat<\/h1>\n      <div>\n        {messages.map((msg, index) =&gt; (\n          <div key=\"{index}\">{msg.sender}: {msg.content}<\/div>\n        ))}\n      <\/div>\n      <input ==\"\" onchange=\"{(e)\" value=\"{input}\"\/> setInput(e.target.value)}\n        placeholder=\"Type a message\"\n      \/&gt;\n      <button onclick=\"{sendMessage}\">Send<\/button>\n    <\/div>\n  );\n}\n<\/code><\/pre>\n<h2>4. Nest.js\uc640 Next.js \uc5f0\uacb0\ud558\uae30<\/h2>\n<p>Nest.js \uc11c\ubc84\ub97c \uc2e4\ud589\ud558\uace0 Next.js \ud074\ub77c\uc774\uc5b8\ud2b8\ub97c \ud1b5\ud574 \uc5f0\uacb0\ud558\uba74, \ud074\ub77c\uc774\uc5b8\ud2b8\uac00 Nest.js \uc11c\ubc84\uc640 \uc2e4\uc2dc\uac04\uc73c\ub85c \uba54\uc2dc\uc9c0\ub97c \uc8fc\uace0\ubc1b\uc744 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ub97c \ud1b5\ud574 \uac04\ub2e8\ud55c \ucc44\ud305 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uad6c\ud604\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>4.1 Nest.js \uc11c\ubc84 \uc2e4\ud589<\/h3>\n<pre><code>npm run start<\/code><\/pre>\n<h3>4.2 Next.js \ud074\ub77c\uc774\uc5b8\ud2b8 \uc2e4\ud589<\/h3>\n<pre><code>npm run dev<\/code><\/pre>\n<p>\ube0c\ub77c\uc6b0\uc800\uc5d0\uc11c <code>http:\/\/localhost:3000<\/code>\uc5d0 \uc811\uc18d\ud558\uba74 \uc6f9\uc18c\ucf13 \ud074\ub77c\uc774\uc5b8\ud2b8\uac00 \uc2e4\ud589\ub418\uace0, \ub2e4\ub978 \ube0c\ub77c\uc6b0\uc800\uc5d0\uc11c \uac19\uc740 \uc8fc\uc18c\ub85c \uc811\uc18d\ud558\uc5ec \uba54\uc2dc\uc9c0\ub97c \uc8fc\uace0\ubc1b\ub294 \uc2e4\uc2dc\uac04 \ud1b5\uc2e0\uc774 \uac00\ub2a5\ud574\uc9d1\ub2c8\ub2e4.<\/p>\n<h2>5. \uacb0\ub860<\/h2>\n<p>Nest.js\uc640 Next.js\ub97c \ud65c\uc6a9\ud558\uc5ec \uac04\ub2e8\ud55c \uc6f9\uc18c\ucf13 \uae30\ubc18\uc758 \uc2e4\uc2dc\uac04 \ud1b5\uc2e0 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ub9cc\ub4e4 \uc218 \uc788\uc5c8\uc2b5\ub2c8\ub2e4. \uc6f9\uc18c\ucf13\uc740 \uc2e4\uc2dc\uac04 \ub370\uc774\ud130\ub97c \uc804\ub2ec\ud558\ub294\ub370 \ub9e4\uc6b0 \uc720\uc6a9\ud558\uba70, \ub2e4\uc591\ud55c \ubd84\uc57c\uc5d0\uc11c \ud65c\uc6a9\ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\ub97c \ud1b5\ud574 \uc5ec\ub7ec\ubd84\uc774 \uc6f9\uc18c\ucf13\uc758 \uae30\ucd08\ub97c \uc774\ud574\ud558\uace0, Nest.js\uc640 Next.js\uc5d0\uc11c \uc27d\uac8c \uad6c\ud604\ud560 \uc218 \uc788\ub294 \ubc29\ubc95\uc744 \ubc30\uc6b8 \uc218 \uc788\uc5c8\uae30\ub97c \ubc14\ub78d\ub2c8\ub2e4.<\/p>\n<h2>6. \ucd94\uac00\uc801\uc778 \ud559\uc2b5 \uc790\ub8cc<\/h2>\n<ul>\n<li><a href=\"https:\/\/nestjs.com\/\" target=\"_blank\" rel=\"noopener\">Nest.js \uacf5\uc2dd \ubb38\uc11c<\/a><\/li>\n<li><a href=\"https:\/\/nextjs.org\/docs\" target=\"_blank\" rel=\"noopener\">Next.js \uacf5\uc2dd \ubb38\uc11c<\/a><\/li>\n<li><a href=\"https:\/\/socket.io\/docs\/\" target=\"_blank\" rel=\"noopener\">Socket.IO \uacf5\uc2dd \ubb38\uc11c<\/a><\/li>\n<li><a href=\"https:\/\/developer.mozilla.org\/ko\/docs\/Web\/API\/WebSockets_API\" target=\"_blank\" rel=\"noopener\">MDN WebSockets API<\/a><\/li>\n<\/ul>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 Nest.js\uc640 Next.js\ub97c \ud65c\uc6a9\ud558\uc5ec \uc2e4\uc2dc\uac04 \ud1b5\uc2e0\uc744 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \uc6f9\uc18c\ucf13(WebSocket)\uc740 \ud074\ub77c\uc774\uc5b8\ud2b8\uc640 \uc11c\ubc84 \uac04\uc758 \uc591\ubc29\ud5a5 \ud1b5\uc2e0\uc744 \uac00\ub2a5\ud558\uac8c \ud558\ub294 \ud504\ub85c\ud1a0\ucf5c\uc785\ub2c8\ub2e4. \uc774\ub97c \ud1b5\ud574 \uc815\ubcf4\ub97c \uc2e4\uc2dc\uac04\uc73c\ub85c \uc8fc\uace0 \ubc1b\uc744 \uc218 \uc788\uc73c\uba70, \ud2b9\ud788 \ucc44\ud305 \uc560\ud50c\ub9ac\ucf00\uc774\uc158, \uc2e4\uc2dc\uac04 \ub300\uc2dc\ubcf4\ub4dc \ub4f1\uacfc \uac19\uc740 \uc751\uc6a9 \ud504\ub85c\uadf8\ub7a8\uc5d0\uc11c \uc720\uc6a9\ud569\ub2c8\ub2e4. 1. \uc6f9\uc18c\ucf13\uc758 \uae30\ucd08 \uc774\ud574 \uc6f9\uc18c\ucf13\uc740 HTTP \uae30\ubc18\uc758 \ud1b5\uc2e0 \ucc44\ub110\ub85c, \ub9e4\ubc88 \uc5f0\uacb0\uc744 \uc0c8\ub85c \uc5ec\ub294 \ub300\uc2e0\uc5d0 \ud55c \ubc88 \uc5f0\uacb0\ub41c &hellip; <a href=\"https:\/\/atmokpo.com\/w\/41074\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;42.Nest.js\uc640 Next.js\uc5d0\uc11c \uc6f9\uc18c\ucf13 \ud65c\uc6a9\ud558\uae30, Nest.js\uc5d0\uc11c \uc2e4\uc2dc\uac04 \ud1b5\uc2e0 \uad6c\ud604\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":[223],"tags":[],"class_list":["post-41074","post","type-post","status-publish","format-standard","hentry","category-nextjs"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>42.Nest.js\uc640 Next.js\uc5d0\uc11c \uc6f9\uc18c\ucf13 \ud65c\uc6a9\ud558\uae30, Nest.js\uc5d0\uc11c \uc2e4\uc2dc\uac04 \ud1b5\uc2e0 \uad6c\ud604\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\/41074\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"42.Nest.js\uc640 Next.js\uc5d0\uc11c \uc6f9\uc18c\ucf13 \ud65c\uc6a9\ud558\uae30, Nest.js\uc5d0\uc11c \uc2e4\uc2dc\uac04 \ud1b5\uc2e0 \uad6c\ud604\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 Nest.js\uc640 Next.js\ub97c \ud65c\uc6a9\ud558\uc5ec \uc2e4\uc2dc\uac04 \ud1b5\uc2e0\uc744 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \uc6f9\uc18c\ucf13(WebSocket)\uc740 \ud074\ub77c\uc774\uc5b8\ud2b8\uc640 \uc11c\ubc84 \uac04\uc758 \uc591\ubc29\ud5a5 \ud1b5\uc2e0\uc744 \uac00\ub2a5\ud558\uac8c \ud558\ub294 \ud504\ub85c\ud1a0\ucf5c\uc785\ub2c8\ub2e4. \uc774\ub97c \ud1b5\ud574 \uc815\ubcf4\ub97c \uc2e4\uc2dc\uac04\uc73c\ub85c \uc8fc\uace0 \ubc1b\uc744 \uc218 \uc788\uc73c\uba70, \ud2b9\ud788 \ucc44\ud305 \uc560\ud50c\ub9ac\ucf00\uc774\uc158, \uc2e4\uc2dc\uac04 \ub300\uc2dc\ubcf4\ub4dc \ub4f1\uacfc \uac19\uc740 \uc751\uc6a9 \ud504\ub85c\uadf8\ub7a8\uc5d0\uc11c \uc720\uc6a9\ud569\ub2c8\ub2e4. 1. \uc6f9\uc18c\ucf13\uc758 \uae30\ucd08 \uc774\ud574 \uc6f9\uc18c\ucf13\uc740 HTTP \uae30\ubc18\uc758 \ud1b5\uc2e0 \ucc44\ub110\ub85c, \ub9e4\ubc88 \uc5f0\uacb0\uc744 \uc0c8\ub85c \uc5ec\ub294 \ub300\uc2e0\uc5d0 \ud55c \ubc88 \uc5f0\uacb0\ub41c &hellip; \ub354 \ubcf4\uae30 &quot;42.Nest.js\uc640 Next.js\uc5d0\uc11c \uc6f9\uc18c\ucf13 \ud65c\uc6a9\ud558\uae30, Nest.js\uc5d0\uc11c \uc2e4\uc2dc\uac04 \ud1b5\uc2e0 \uad6c\ud604\ud558\uae30&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/41074\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-06T02:46:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:37:40+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:site\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"root\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/41074\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/41074\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"42.Nest.js\uc640 Next.js\uc5d0\uc11c \uc6f9\uc18c\ucf13 \ud65c\uc6a9\ud558\uae30, Nest.js\uc5d0\uc11c \uc2e4\uc2dc\uac04 \ud1b5\uc2e0 \uad6c\ud604\ud558\uae30\",\"datePublished\":\"2024-11-06T02:46:29+00:00\",\"dateModified\":\"2024-11-26T06:37:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/41074\/\"},\"wordCount\":78,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"nextjs\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/41074\/\",\"url\":\"https:\/\/atmokpo.com\/w\/41074\/\",\"name\":\"42.Nest.js\uc640 Next.js\uc5d0\uc11c \uc6f9\uc18c\ucf13 \ud65c\uc6a9\ud558\uae30, Nest.js\uc5d0\uc11c \uc2e4\uc2dc\uac04 \ud1b5\uc2e0 \uad6c\ud604\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-06T02:46:29+00:00\",\"dateModified\":\"2024-11-26T06:37:40+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/41074\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/41074\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/41074\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"42.Nest.js\uc640 Next.js\uc5d0\uc11c \uc6f9\uc18c\ucf13 \ud65c\uc6a9\ud558\uae30, Nest.js\uc5d0\uc11c \uc2e4\uc2dc\uac04 \ud1b5\uc2e0 \uad6c\ud604\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":"42.Nest.js\uc640 Next.js\uc5d0\uc11c \uc6f9\uc18c\ucf13 \ud65c\uc6a9\ud558\uae30, Nest.js\uc5d0\uc11c \uc2e4\uc2dc\uac04 \ud1b5\uc2e0 \uad6c\ud604\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\/41074\/","og_locale":"ko_KR","og_type":"article","og_title":"42.Nest.js\uc640 Next.js\uc5d0\uc11c \uc6f9\uc18c\ucf13 \ud65c\uc6a9\ud558\uae30, Nest.js\uc5d0\uc11c \uc2e4\uc2dc\uac04 \ud1b5\uc2e0 \uad6c\ud604\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 Nest.js\uc640 Next.js\ub97c \ud65c\uc6a9\ud558\uc5ec \uc2e4\uc2dc\uac04 \ud1b5\uc2e0\uc744 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \uc6f9\uc18c\ucf13(WebSocket)\uc740 \ud074\ub77c\uc774\uc5b8\ud2b8\uc640 \uc11c\ubc84 \uac04\uc758 \uc591\ubc29\ud5a5 \ud1b5\uc2e0\uc744 \uac00\ub2a5\ud558\uac8c \ud558\ub294 \ud504\ub85c\ud1a0\ucf5c\uc785\ub2c8\ub2e4. \uc774\ub97c \ud1b5\ud574 \uc815\ubcf4\ub97c \uc2e4\uc2dc\uac04\uc73c\ub85c \uc8fc\uace0 \ubc1b\uc744 \uc218 \uc788\uc73c\uba70, \ud2b9\ud788 \ucc44\ud305 \uc560\ud50c\ub9ac\ucf00\uc774\uc158, \uc2e4\uc2dc\uac04 \ub300\uc2dc\ubcf4\ub4dc \ub4f1\uacfc \uac19\uc740 \uc751\uc6a9 \ud504\ub85c\uadf8\ub7a8\uc5d0\uc11c \uc720\uc6a9\ud569\ub2c8\ub2e4. 1. \uc6f9\uc18c\ucf13\uc758 \uae30\ucd08 \uc774\ud574 \uc6f9\uc18c\ucf13\uc740 HTTP \uae30\ubc18\uc758 \ud1b5\uc2e0 \ucc44\ub110\ub85c, \ub9e4\ubc88 \uc5f0\uacb0\uc744 \uc0c8\ub85c \uc5ec\ub294 \ub300\uc2e0\uc5d0 \ud55c \ubc88 \uc5f0\uacb0\ub41c &hellip; \ub354 \ubcf4\uae30 \"42.Nest.js\uc640 Next.js\uc5d0\uc11c \uc6f9\uc18c\ucf13 \ud65c\uc6a9\ud558\uae30, Nest.js\uc5d0\uc11c \uc2e4\uc2dc\uac04 \ud1b5\uc2e0 \uad6c\ud604\ud558\uae30\"","og_url":"https:\/\/atmokpo.com\/w\/41074\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-06T02:46:29+00:00","article_modified_time":"2024-11-26T06:37:40+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"1\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/41074\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/41074\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"42.Nest.js\uc640 Next.js\uc5d0\uc11c \uc6f9\uc18c\ucf13 \ud65c\uc6a9\ud558\uae30, Nest.js\uc5d0\uc11c \uc2e4\uc2dc\uac04 \ud1b5\uc2e0 \uad6c\ud604\ud558\uae30","datePublished":"2024-11-06T02:46:29+00:00","dateModified":"2024-11-26T06:37:40+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/41074\/"},"wordCount":78,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["nextjs"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/41074\/","url":"https:\/\/atmokpo.com\/w\/41074\/","name":"42.Nest.js\uc640 Next.js\uc5d0\uc11c \uc6f9\uc18c\ucf13 \ud65c\uc6a9\ud558\uae30, Nest.js\uc5d0\uc11c \uc2e4\uc2dc\uac04 \ud1b5\uc2e0 \uad6c\ud604\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-06T02:46:29+00:00","dateModified":"2024-11-26T06:37:40+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/41074\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/41074\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/41074\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"42.Nest.js\uc640 Next.js\uc5d0\uc11c \uc6f9\uc18c\ucf13 \ud65c\uc6a9\ud558\uae30, Nest.js\uc5d0\uc11c \uc2e4\uc2dc\uac04 \ud1b5\uc2e0 \uad6c\ud604\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\/41074","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=41074"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/41074\/revisions"}],"predecessor-version":[{"id":41075,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/41074\/revisions\/41075"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=41074"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=41074"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=41074"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}