Skip to content

๋™๊ทผํŒ€์˜ ๐Ÿ“ฎ๋จธ-์“ฑ ๋ ˆํ„ฐ๐Ÿ“ฎ ๋ ˆํฌ์ง€ํ† ๋ฆฌ์ž…๋‹ˆ๋‹ค

Notifications You must be signed in to change notification settings

prgrms-fe-devcourse/FEDC4_MUSSEUK_LETTER_Donggeun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“ฎย ๋จธ-์“ฑ๋ ˆํ„ฐ

๋ฐ๋ธŒ์ฝ”์Šค ๋‚ด์—์„œ ์ต๋ช…/๊ธฐ๋ช…์œผ๋กœ ํŽธ์ง€๋ฅผ ๋ณด๋‚ด๋Š” SNS ์„œ๋น„์Šค

โžก๏ธ ์„œ๋น„์Šค ์ด์šฉํ•˜๊ธฐ
โžก๏ธ ๋…ธ์…˜ ํŽ˜์ด์ง€ ๋ณด๋Ÿฌ๊ฐ€๊ธฐ

๊ธฐํš ๋ฐฐ๊ฒฝ

image

ํ”ผ์–ด๋ฆฌ๋ทฐ๋ฅผ ์ง„ํ–‰ํ•˜๋ฉด์„œ ์ „ํ•˜์ง€ ๋ชปํ•œ ๋ง๋“ค์ด ์žˆ์–ด ์•„์‰ฝ์ง€ ์•Š์œผ์…จ๋‚˜์š”? ๋˜๋Š” ๋ฐ๋ธŒ์ฝ”์Šค์— ์ฐธ์—ฌํ•˜๋Š” ๊ต์œก์ƒ๋“ค์—๊ฒŒ ์ง„์‹ค๋œ ๋งˆ์Œ์„ ํ‘œํ˜„ํ•˜์ง€ ๋ชปํ•œ ์ˆœ๊ฐ„์ด ์žˆ์ง€๋Š” ์•Š์œผ์…จ๋‚˜์š”? ๐Ÿ˜„

๋จธ-์“ฑ๋ ˆํ„ฐ๋Š” ์ต๋ช…/๊ธฐ๋ช…์„ ํ†ตํ•ด์„œ ๋‹ค๋ฅธ ๊ต์œก์ƒ๋“ค์—๊ฒŒ ๋งˆ์Œ์„ ์ „๋‹ฌํ•˜๊ธฐ ์œ„ํ•œ ์„œ๋น„์Šค๊ฐ€ ์žˆ๋‹ค๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™๋‹ค๋Š” ๋ฐฐ๊ฒฝ์— ๊ธฐํšํ•œ SNS ์„œ๋น„์Šค์ž…๋‹ˆ๋‹ค.

์‚ฌ์šฉ์ž๋Š” ๋‹ค์–‘ํ•œ ๋จธ์“ฑ์ด ํ…Œ๋งˆ๋ฅผ ์„ ํƒํ•ด์„œ ์นœ๊ตฌ๋“ค์—๊ฒŒ ๋จธ์“ฑ์ด๋ฅผ ๊พธ๋ฉฐ๋‹ฌ๋ผ๊ณ  ๊ณต์œ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๋จธ์“ฑ์ด์—๊ฒŒ ์žฅ์‹์Šคํ‹ฐ์ปค๋ฅผ ํ•˜๋‚˜ํ•˜๋‚˜ ๋ถ™์ด๋ฉด์„œ ํ‰์†Œ์— ํ•˜์ง€ ๋ชปํ–ˆ๋˜ ์‘์›๊ณผ ํ”ผ๋“œ๋ฐฑ์˜ ํŽธ์ง€๋ฅผ ์ „์†กํ•ด ๋งˆ์Œ์„ ์ „๋‹ฌํ•ด๋ณด์„ธ์š”๐Ÿ“ฎ

ํŒจํ‚ค์ง€

yarn ์„ค์น˜ ์‚ฌ์ „ ์ž‘์—…

  1. yarn์ด ํ™œ์„ฑํ™” ๋˜์–ด ์žˆ์ง€ ์•Š๋‹ค๋ฉด ํ„ฐ๋ฏธ๋„์—์„œ corepack enable ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค. (์ตœ์ดˆ ํ•œ๋ฒˆ)
  2. vscode์— ZipFS ์ต์Šคํ…์…˜์ด ์„ค์น˜๋˜์–ด ์žˆ์ง€ ์•Š๋‹ค๋ฉด ์„ค์น˜ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. (yarn berry๊ฐ€ ํŒจํ‚ค์ง€๋ฅผ zip ํŒŒ์ผ๋กœ ๊ด€๋ฆฌํ•˜๊ธฐ ๋•Œ๋ฌธ์—, vscode์—์„œ ์ด ๋‚ด์šฉ์„ ๊ฐ€์ ธ์™€์„œ ์“ฐ๋ ค๋ฉด ์ต์Šคํ…์…˜์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.)

image

VsCode ํƒ€์ž…์Šคํฌ๋ฆฝํŠธ ๋ฒ„์ „ ์„ค์ •

  1. ๋ ˆํฌ์ง€ํ† ๋ฆฌ ํด๋ก  ํ›„ ํ”„๋กœ์ ํŠธ์˜ ๋ฃจํŠธ ํด๋”๋กœ ๋“ค์–ด๊ฐ€์„œ ํ„ฐ๋ฏธ๋„์— yarn ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค.
  2. ํƒ€์ž…์Šคํฌ๋ฆฝํŠธ ๋ฒ„์ „์„ yarn sdk์™€ ๋งž์ถ”๊ธฐ ์œ„ํ•ด ์•„๋ฌด .ts ํŒŒ์ผ์ด๋‚˜ ๋“ค์–ด๊ฐ€์„œ cmd + shift + p ํ›„์— Select TypeScript Version ๋ฅผ ์ž…๋ ฅ ํ›„ Use Workspace Version ์„ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

image

ํ”„๋ก ํŠธ์—”๋“œ ๊ฐœ๋ฐœ ์„œ๋ฒ„ ์‹คํ–‰ ๋ฐฉ๋ฒ•

  1. ํ”„๋ก ํŠธ์—”๋“œ์—์„œ ์‚ฌ์šฉํ•  .env ํŒŒ์ผ ๋‚ด์šฉ์„ /packages/web/.env ํŒŒ์ผ๋กœ ์ž‘์„ฑํ•ฉ๋‹ˆ๋‹ค.
  2. yarn web dev ๋ฅผ ์ž…๋ ฅํ•˜๋ฉด ๊ฐœ๋ฐœ ์„œ๋ฒ„๊ฐ€ ์‹คํ–‰๋ฉ๋‹ˆ๋‹ค.
  3. yarn web build ๋ฅผ ์ž…๋ ฅํ•˜๋ฉด ํ”„๋ก ํŠธ์—”๋“œ ์ฝ”๋“œ๋ฅผ ๋นŒ๋“œํ•ฉ๋‹ˆ๋‹ค.

์Šฌ๋ž™ ์„œ๋ฒ„ ์‹คํ–‰ ๋ฐฉ๋ฒ•

  1. ์Šฌ๋ž™ ์„œ๋ฒ„์—์„œ ์‚ฌ์šฉํ•  .env ํŒŒ์ผ ๋‚ด์šฉ์„ /packages/slack/.env ํŒŒ์ผ๋กœ ์ž‘์„ฑํ•ฉ๋‹ˆ๋‹ค.
  2. yarn slack dev ๋ฅผ ์ž…๋ ฅํ•˜๋ฉด ๊ฐœ๋ฐœ ์„œ๋ฒ„๊ฐ€ ์‹คํ–‰๋ฉ๋‹ˆ๋‹ค.
  3. yarn slack build ๋ฅผ ์ž…๋ ฅํ•˜๋ฉด ์Šฌ๋ž™ ์„œ๋ฒ„ ์ฝ”๋“œ๋ฅผ ๋นŒ๋“œํ•ฉ๋‹ˆ๋‹ค.
  4. yarn slack start ๋ฅผ ์ž…๋ ฅํ•˜๋ฉด ๋นŒ๋“œํ•œ ์ฝ”๋“œ๋กœ ์„œ๋ฒ„๋ฅผ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.

ํŒจํ‚ค์ง€ ์„ค์น˜

๋ฃจํŠธ ๋””๋ ‰ํ† ๋ฆฌ์˜ package.json์˜ scripts๋กœ ์ด๋Ÿฌํ•œ ๋‚ด์šฉ์„ ์ ์–ด๋‘์—ˆ์Šต๋‹ˆ๋‹ค:

"common": "yarn workspace common",
"slack": "yarn workspace slack", // Express ์•ฑ
"web": "yarn workspace web", // React ์•ฑ
  • React ์•ฑ์— ๋Œ€ํ•ด์„œ axios๋ฅผ ์„ค์น˜: yarn web add axios
  • React ์•ฑ์— ๋Œ€ํ•ด์„œ axios๋ฅผ ์ œ๊ฑฐ: yarn web remove axios
  • Express ์•ฑ์— ๋Œ€ํ•ด์„œ dotenv๋ฅผ ์„ค์น˜: yarn slack add dotenv

๊ธฐ์ˆ  ์Šคํƒ

์–ธ์–ด ๋ฐ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ย 
ํŒจํ‚ค์ง€ ๋ฐ ๋นŒ๋“œ ํ™˜๊ฒฝ ย 
์Šคํƒ€์ผ๋ง ย 
๋„คํŠธ์›Œํฌ ๋ฐ ์„œ๋ฒ„ ์ƒํƒœ ๊ด€๋ฆฌ ย 
์ฝ”๋“œ ํฌ๋งทํŒ… ย 
ํผ ๋ฐ์ดํ„ฐ ๊ด€๋ฆฌ ย 
๊ธฐํƒ€ ย 

ํŒ€ ์†Œ๊ฐœ

๋‚จ๊ถํ˜ธ์ˆ˜ ๋ฐ•์ฃผ์—ฐ ์‹ ํ˜ธ์› ์ด์ƒํ›ˆ ์šฐํ˜„์ง€

About

๋™๊ทผํŒ€์˜ ๐Ÿ“ฎ๋จธ-์“ฑ ๋ ˆํ„ฐ๐Ÿ“ฎ ๋ ˆํฌ์ง€ํ† ๋ฆฌ์ž…๋‹ˆ๋‹ค

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published