Skip to content

๐Ÿ› ๏ธ ํ”„๋กœ์ ํŠธ ๊ตฌ๋™์„ ์œ„ํ•œ ์„ค์ •

์ตœ์ค€ํ˜ธ edited this page May 1, 2024 · 8 revisions

ํ”„๋กœ์ ํŠธ ์„ค์น˜๋ถ€ํ„ฐ ๊ตฌ๋™๊นŒ์ง€ ์ผ๋ จ์˜ ๊ณผ์ •์„ ๋‹ด์•„๋ดค์Šต๋‹ˆ๋‹ค :)

์˜จ๋ณด๋”ฉ ๊ณผ์ •์— ํ™œ์šฉํ•ด์ฃผ์„ธ์š”!

git clone

git clone https://github.com/BCSDLab/KOIN_API_V2

Docker Desktop ์„ค์น˜

๋ณธ ํ”„๋กœ์ ํŠธ์—์„œ๋Š” TestContainer๋ฅผ ํ™œ์šฉํ•˜์—ฌ ํ…Œ์ŠคํŠธ๋ฅผ ๊ตฌ๋™ํ•ฉ๋‹ˆ๋‹ค. ํ…Œ์ŠคํŠธ๋ฅผ ๊ตฌ๋™ํ•˜๊ธฐ ์œ„ํ•ด Docker๋ฅผ ์„ค์น˜ํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค.

๊ฐ OS์— ๋งž๋Š” Docker Desktop์„ ์„ค์น˜ํ•ด์ฃผ์„ธ์š”!

์„ค์น˜ ์‚ฌ์ดํŠธ: https://www.docker.com/products/docker-desktop/

๋„์ž…๋ฐฐ๊ฒฝ ๋ฐ TestContainer ์ดˆ๊ธฐ ์„ค์ • ๊ณผ์ •์€ ์•„๋ž˜ ๋ธ”๋กœ๊ทธ๋ฅผ ์ฐธ๊ณ ํ•ด์ฃผ์„ธ์š”

Database ์„ค์ •ํ•˜๊ธฐ

KOIN ์„œ๋น„์Šค๋Š” MySQL, Redis, MongoDB๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.

๋กœ์ปฌ์— ๋ชจ๋“  DB๋ฅผ ์„ค์น˜ํ•˜๋Š”๊ฒŒ ๋ถ€๋‹ด๋œ๋‹ค๋ฉด Docker๋ฅผ ํ™œ์šฉํ•˜์—ฌ ์•„์ฃผ์•„์ฃผ ํŽธํ•˜๊ฒŒ ๊ตฌ์„ฑํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

GUI, CLI ๋ณธ์ธ์ด ์„ ํ˜ธํ•˜๋Š” ๋ฐฉ์‹์— ๋งž๊ฒŒ ์ฐธ๊ณ ํ•˜์—ฌ ๊ตฌ์„ฑํ•˜๋ฉด๋ฉ๋‹ˆ๋‹ค.

โš™๏ธ ํ”„๋กœ์ ํŠธ ์„ค์ •ํŒŒ์ผ ๊ตฌ์„ฑ

Q: DB๋Š” MySQL, Redis, Mongo 3๊ฐœ๋ฅผ ์‚ฌ์šฉํ•˜๋Š”๋ฐ ํฌํŠธ ์„ค์ •์€ ์™œ MySQL๋งŒ ์žˆ๋‚˜์š”?

A: ๊ฐ๊ฐ์˜ DB์— ๋Œ€ํ•ด์„œ default port๋ฅผ ์‚ฌ์šฉํ•˜๊ธฐ ๋•Œ๋ฌธ์— application.yml์— ๋ณ„๋„๋กœ redis, mongo์— ๋Œ€ํ•œ ํฌํŠธ ์„ค์ •์ด ์—†์Šต๋‹ˆ๋‹ค!

SpringBoot์—์„œ ๊ฐ DB์— ๋Œ€ํ•œ default ๊ฐ’์„ ์„ค์ •ํ•ด๋’€์Šต๋‹ˆ๋‹ค.

default port ์ฐธ๊ณ 

  • MySQL: 3306
  • Redis: 6379
  • Mongo: 27017

ํ…Œ์ŠคํŠธ ๊ตฌ๋™ํ•ด๋ณด๊ธฐ

image

๋กœ์ปฌ์—์„œ ํ…Œ์ŠคํŠธ๋ฅผ ๊ตฌ๋™ํ•ด๋ณผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๋กœ์ปฌ์—์„œ ์‹คํ–‰ํ•˜๊ธฐ

image image

swagger ์ ‘์†ํ•ด๋ณด๊ธฐ

image

/depts API ํ˜ธ์ถœํ•ด๋ณด๊ธฐ

image
Clone this wiki locally