Skip to content

codeitboost-3/.github

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 

Repository files navigation

๐ŸŒŒ ๊ธฐ์–ต ์ €์žฅ ๋ฐ ๊ณต์œ  ์„œ๋น„์Šค, ์กฐ๊ฐ์ง‘

์„ ํƒํ•œ ๊ธฐ์ˆ  ์Šคํƒ ๋ฐ ์‚ฌ์šฉ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ

  • FE : React
  • BE : Node.js, Express

ํ”„๋กœ์ ํŠธ ํด๋” ๊ตฌ์กฐ

์ปจ๋ฒค์…˜

ํ”„๋ก ํŠธ ์ฝ”๋”ฉ ์ปจ๋ฒค์…˜

  • space์™€ tab ํ˜ผ์šฉํ•˜์ง€ ์•Š๊ธฐ

  • ํ•œ ์ค„์— ํ•˜๋‚˜์˜ ๋ฌธ์žฅ๋งŒ ํ—ˆ์šฉ

  • ๋ฌธ์žฅ ์ข…๋ฃŒ ์‹œ ์„ธ๋ฏธ์ฝœ๋ก  ๋ฐ˜๋“œ์‹œ ์‚ฌ์šฉ

  • ๋ณ€์ˆ˜์™€ ํ•จ์ˆ˜์˜ ์ด๋ฆ„์€ ์นด๋ฉœ ์ผ€์ด์Šค ์‚ฌ์šฉ

  • ํด๋ž˜์Šค์™€ ์ปดํฌ๋„ŒํŠธ์˜ ์ด๋ฆ„์€ ํŒŒ์Šค์นผ ์ผ€์ด์Šค ์‚ฌ์šฉ

  • ๋ณ€์ˆ˜ ์„ ์–ธํ•  ๋•Œ const์™€ let ์‚ฌ์šฉ

  • ๋ฆฐํŒ…-ESLint, ํฌ๋งคํŒ…-Prettier ์‚ฌ์šฉ

    ์ฐธ๊ณ : ์ฝ”๋”ฉ์ปจ๋ฒค์…˜ | TOAST UI :: Make Your Web Delicious!

๋ฐฑ ์ฝ”๋”ฉ ์ปจ๋ฒค์…˜

  • ์ฝ”๋“œ ์•ž ๋’ค์— ๊ณต๋ฐฑ ์‚ฌ์šฉํ•˜๊ธฐ (์—ฐ์‚ฐ์ž ๋“ฑ)
  • ์ฝค๋งˆ ๋’ค์—๋Š” ๋„์–ด์“ฐ๊ธฐ
//bad
app.listen(3000,()=>console.log('Server Started'))

//good
app.listen(3000, () => console.log('Server Started'));
  • ์ž‘์€ ๋”ฐ์˜ดํ‘œ ์‚ฌ์šฉํ•˜๊ธฐ
// bad
const a = "No"

// good
const b = 'Yes';
  • ์ค‘๊ด„ํ˜ธ ์—ด๊ธฐ ์ „์— ์ค„ ๋ฐ”๊พธ์ง€ ์•Š๊ธฐ
  • ์ค‘๊ด„ํ˜ธ ๋‹ซ๊ธฐ ์ „์— ์ค„ ๋ฐ”๊พธ๊ธฐ
if (n < 0) {
  alert(`Power ${n} is not supported`);
};
  • ๋ชจ๋“  ๊ตฌ๋ฌธ ๋์— ์„ธ๋ฏธ์ฝœ๋ก  ๋ถ™์ด๊ธฐ
  • ๊ณต๋ฐฑ 2์นธ ๋“ค์—ฌ์“ฐ๊ธฐ
//bad
async function getColorSurvey(id) {
    const res = await axios.get(`https://learn.codeit.kr/api/color-surveys/${id}`)
  return res.data
}

//good
async function getColorSurvey(id) {
  const res = await axios.get(`https://learn.codeit.kr/api/color-surveys/${id}`);
  return res.data;
};
  • ๊ฐ€๋กœ ๊ธธ์ด ๋„ˆ๋ฌด ๊ธธ๊ฒŒ ํ•˜์ง€ ์•Š๊ธฐ

๋„ค์ด๋ฐ ์ •๋ฆฌ

  • ์“ฐ์ž„์ƒˆ ๋“œ๋Ÿฌ๋‚˜๋Š” ์ด๋ฆ„ ์“ฐ๊ธฐ
  • ์นด๋ฉœ์ผ€์ด์Šค : ๋ณ€์ˆ˜, ํ•จ์ˆ˜ ๋“ฑ (myName, getColor)
  • ํŒŒ์Šค์นผ ํ‘œ๊ธฐ๋ฒ•: ํด๋ž˜์Šค (UserProfile)
  • ์Šค๋„ค์ดํฌ ํ‘œ๊ธฐ๋ฒ• + ๋Œ€๋ฌธ์ž : ์ƒ์ˆ˜ (DEFAULT_LANGUAGE)

๋ณ€์ˆ˜

  • const๋ฅผ ๊ธฐ๋ณธ์œผ๋กœ ์‚ฌ์šฉ, ํ•„์š”์‹œ let ์‚ฌ์šฉ ( var ์‚ฌ์šฉํ•˜์ง€ ์•Š๊ธฐ )
  • ํ•œ ๋ฒˆ์— ๋ณ€์ˆ˜ ํ•˜๋‚˜๋งŒ ์„ ์–ธํ•˜๊ธฐ
// bad
var a = 1, b = 2;

// good
const a = 1;
const b = 2;

ํ•จ์ˆ˜

  • arrow function ๋ฌธ๋ฒ•(=>)๊ณผ ๋น„๊ต ์—ฐ์‚ฐ์ž (<=,ย >=)๋ฅผ ํ•จ๊ป˜ ์‚ฌ์šฉํ•  ๊ฒฝ์šฐ, ์†Œ๊ด„ํ˜ธ(())๋ฅผ ์ด์šฉํ•˜์—ฌ ํ‘œํ˜„ํ•˜๊ธฐ
// bad
const itemHeight = item => item.height > 256 ? item.largeSize : item.smallSize;

// good
const itemHeight = (item) => {
  const { height, largeSize, smallSize } = item;
  return height > 256 ? largeSize : smallSize;
};
  • ํ•จ์ˆ˜ ์ด์™ธ์˜ ๋ธ”๋ก (if๋‚˜ while๊ฐ™์€) ์•ˆ์—์„œ ํ•จ์ˆ˜๋ฅผ ์„ ์–ธํ•˜์ง€ ์•Š๊ธฐ
// bad
let i;
for (i = 10; i; i--) {
    (function() { 
      return i; 
    })();
}

// bad
while(i) {
    let a = function() {
      return i;
    };
    a();
}

// good
const a = function() {};
let i;
for (i = 10; i; i--) {
    a();
}
  • ํŒŒ๋ผ๋ฏธํ„ฐ ๊ธฐ๋ณธ๊ฐ’์€ ๊ฐ€์žฅ ๋’ค์— ์œ„์น˜ํ•˜๊ธฐ

์—ญํ•  ๋ถ„๋‹ด

  • ์ด์—ฐ์ˆ˜ : ๊ทธ๋ฃน/๋Œ“๊ธ€ FE
  • ์žฅ๋‹คํ˜„ : ๊ฒŒ์‹œ๊ธ€(์ถ”์–ต)/๋ฐฐ์ง€ ๊ธฐ๋Šฅ FE
  • ์œ ์ˆ˜๋นˆ : ๊ฒŒ์‹œ๊ธ€(์ถ”์–ต) BE
  • ์žฅ์ง€์ธ : ๊ทธ๋ฃน BE, ํŒ€์žฅ
  • ํ•œ์ •ํ˜„ : ๋Œ“๊ธ€/๋ฐฐ์ง€ BE

ํŒŒํŠธ๋ณ„ ๋ ˆํฌ ๋งํฌ

FE

https://github.com/codeitboost-3/FE

BE

https://github.com/codeitboost-3/BE

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published