Skip to content

DailyScrum 201123

GunBros edited this page Nov 23, 2020 · 1 revision

BE

  • DB + Redis์— ๋ฐ์ดํ„ฐ ์„ธํŒ… (์„ํ˜„)

    • ID, ์ขŒํ‘œ๊ฐ’(x์ขŒํ‘œ, y์ขŒํ‘œ, 20์”ฉ ์ฐจ์ด๋‚˜๋„๋ก), ์ƒํƒœ, ์ƒ‰๊น”
    • ์ƒํƒœ
      • ์˜ˆ๋งค๋œ ์ƒํƒœ -> ํšŒ์ƒ‰
      • ์˜ˆ๋งค ๋˜์ง€ ์•Š์€ ์ƒํƒœ -> ์—ฐ๋‘์ƒ‰
      • ํด๋ฆญ๋œ ์ƒํƒœ -> ๋ถ„ํ™์ƒ‰
      • ์ทจ์†Œ์ค‘์ธ ์ƒํƒœ -> ๊ฒ€์ •์ƒ‰
  • ์†Œ์ผ“ ํ†ต์‹ ์„ ํ†ตํ•œ Redis ๋ฐ์ดํ„ฐ ๋ณ€๊ฒฝ (์„ํ˜„)

  • ํšŒ์ฐจ id : A

  • io.emit('clickSeat', ํšŒ์ฐจ id, seatId, seatData)

  • io.on('receiveData', (seats)=>{

})

  • const socket = io(http://localhost:8080/A, { transports: ["websocket"], upgrade: false, });

FE

  • socket ํŒจํ‚ค์ง€ ์„ค์น˜ + ํ†ต์‹  ํ™•์ธ
  • canvas์— ์ขŒ์„ ํ‘œํ˜„ํ•˜๊ธฐ (๊ตญ์‹ )
  • ํด๋ฆญ ์ด๋ฒคํŠธ ์ฒ˜๋ฆฌ ํ•˜๊ธฐ (๊ตญ์‹ )
  • ์ขŒ์„ ์„ ํƒ ํŽ˜์ด์ง€ ๊ตฌํ˜„, canvas๋“ค์–ด๊ฐ€๋Š” ๋ถ€๋ถ„ ๋นผ๊ณ  (์ง€์—ฐ)
    • ํŽ˜์ด์ง€๊ฐ€ ๋„˜์–ด๊ฐ€๋ฉด ์†Œ์ผ“์„ ๋‹ซ์•„์คŒ
Clone this wiki locally