React-boilerplate๋ž€?

Blackeichiยท2023๋…„ 1์›” 16์ผ
0

๐Ÿ“Œboilerplate(๋ณด์ผ๋Ÿฌ ํ”Œ๋ ˆ์ดํŠธ)๋ž€?

์ปดํ“จํ„ฐ ํ”„๋กœ๊ทธ๋ž˜๋ฐ์—์„œ, ๋ณด์ผ๋Ÿฌ ํ”Œ๋ ˆ์ดํŠธ ์ฝ”๋“œ ๋˜๋Š” ๊ฐ„๋‹จํžˆ ๋ณด์ผ๋Ÿฌ ํ”Œ๋ ˆ์ดํŠธ(boilplate code)๋Š” ๋ณ€ํ˜•์ด ๊ฑฐ์˜ ์—†๋Š” ์—ฌ๋Ÿฌ ์žฅ์†Œ์—์„œ ๋ฐ˜๋ณต๋˜๋Š” ์ฝ”๋“œ์˜ ์„น์…˜์ด๋‹ค. ์ƒ์„ธํ•œ ์–ธ์–ด๋ฅผ ์‚ฌ์šฉํ•  ๋•Œ ํ”„๋กœ๊ทธ๋ž˜๋จธ๋Š” ์‚ฌ์†Œํ•œ ๊ธฐ๋Šฅ๋งŒ ์ˆ˜ํ–‰ํ•˜๊ธฐ ์œ„ํ•ด ๋งŽ์€ boilerplate ์ฝ”๋“œ๋ฅผ ์ž‘์„ฑํ•ด์•ผ ํ•œ๋‹ค.
๋ณด์ผ๋Ÿฌ ํ”Œ๋ ˆ์ดํŠธ์˜ ํ•„์š”์„ฑ์€ ๋ฉ”ํƒ€ํ”„๋กœ๊ทธ๋ž˜๋ฐ(์ปดํ“จํ„ฐ๊ฐ€ ํ•„์š”ํ•œ ๋ณด์ผ๋Ÿฌ ํ”Œ๋ ˆ์ดํŠธ ์ฝ”๋“œ๋ฅผ ์ž๋™์œผ๋กœ ์ž‘์„ฑํ•˜๊ฑฐ๋‚˜ ์ปดํŒŒ์ผ ์‹œ ์‚ฝ์ž…ํ•˜๋„๋ก ํ•จ), ๊ตฌ์„ฑ์— ๋Œ€ํ•œ ๊ทœ์น™(์ข‹์€ ๊ธฐ๋ณธ๊ฐ’์„ ์ œ๊ณตํ•˜์—ฌ ๋ชจ๋“  ํ”„๋กœ์ ํŠธ์—์„œ ํ”„๋กœ๊ทธ๋žจ ์„ธ๋ถ€์‚ฌํ•ญ์„ ์ง€์ •ํ•  ํ•„์š”์„ฑ์„ ์ค„์ด๋Š” ๊ฒƒ), ๋ชจ๋ธ ๊ตฌ๋™ ์—”์ง„๊ณผ ๊ฐ™์€ ๋†’์€ ์ˆ˜์ค€์˜ ๋ฉ”์ปค๋‹ˆ์ฆ˜์„ ํ†ตํ•ด ์ค„์ผ ์ˆ˜ ์žˆ๋‹ค(๋ชจ๋ธ ๋ฐ ๋ชจ๋ธ ๋Œ€ ์ฝ”๋“œ ์ƒ์„ฑ๊ธฐ๋ฅผ ์‚ฌ์šฉํ•˜๋ฏ€๋กœ ์ˆ˜๋™ ๋ณด์ผ๋Ÿฌ ํ”Œ๋ ˆ์ดํŠธ ์ฝ”๋“œ๊ฐ€ ํ•„์š” ์—†์Œ).
-์œ„ํ‚ค๋ฐฑ๊ณผ-

์ฆ‰ ๋ณด์ผ๋Ÿฌ ํ”Œ๋ ˆ์ดํŠธ๋ž€ '๋ณ„ ์ˆ˜์ • ์—†์ด ๋ฐ˜๋ณต์ ์œผ๋กœ ์‚ฌ์šฉ๋˜๋Š” ์ฝ”๋“œ'๋ฅผ ์ž๋™์œผ๋กœ ์ƒ์„ฑํ•ด์ฃผ๋Š” ๊ฒƒ์ด๋‹ค.

์›๋ž˜ ๋ณด์ผ๋Ÿฌํ”Œ๋ ˆ์ดํŠธ๋Š” 19์„ธ๊ธฐ์— ์ฆ๊ธฐ ๋ณด์ผ๋Ÿฌ๋ฅผ ๋งŒ๋“ค๋•Œ ํ‹€๋กœ ์‚ฌ์šฉํ•˜๋Š” ๊ฐ•์ฒ ํŒ์„ ์˜๋ฏธํ–ˆ๋‹ค. ๋ณด์ผ๋Ÿฌํ”Œ๋ ˆ์ดํŠธ์—๋Š” ๋ณด์ผ๋Ÿฌ ์ด๋ฆ„ ๋“ฑ์˜ ์ œ์กฐ ์ •๋ณด๊ฐ€ ์Œ๊ฐ์œผ๋กœ ์ƒˆ๊ฒจ์ ธ ์žˆ์–ด์„œ ๋ณด์ผ๋Ÿฌํ”Œ๋ ˆ์ดํŠธ๋ฅผ ํ†ต๊ณผํ•œ ๊ฐ•์ฒ ํŒ์—๋Š” ๋ณด์ผ๋Ÿฌ ์ด๋ฆ„ ๋“ฑ์ด ์ƒˆ๊ฒจ์ง€๊ฒŒ ๋˜์—ˆ๋‹ค. ์ด๊ฒŒ ์ธ์‡„ ๋ถ„์•ผ๋กœ ์ด์–ด์ ธ์„œ ๋ฐ˜๋ณตํ•ด์„œ ์‚ฌ์šฉํ•˜๋Š” ํ…์ŠคํŠธ(์ฃผ๋กœ ๊ด‘๊ณ ๋‚˜ ๋กœ๊ณ )๋ฅผ ์˜๋ฏธํ•˜๊ฒŒ ๋˜์—ˆ๋‹ค.

๐Ÿ“Œ์‹œ์ž‘ํ•˜๊ธฐ

  1. Make sure that you have Node.js v10.13.0 and npm v6.4.1 or above installed.

    • Node.js์™€ npm์˜ ๋ฒ„์ „์ด ์ผ์ • ๋ฒ„์ „๋ณด๋‹ค ๋†’์•„์•ผ ํ•œ๋‹ค.
  2. react-boilerplate - git repo๋ฅผ cloneํ•˜๊ธฐ

    #Typescript
    git clone --depth=1 https://github.com/react-boilerplate/react-boilerplate-typescript.git <YOUR_PROJECT_NAME>
    
    #React
    git clone --depth=1 https://github.com/react-boilerplate/react-boilerplate.git <YOUR_PROJECT_NAME>
  3. Move to the appropriate directory: cd <YOUR_PROJECT_NAME>

    • ํ•ด๋‹น ์•ฑ์œผ๋กœ ์ด๋™ ํ›„
  4. Run npm run setup in order to install dependencies and clean the git repo.
    At this point you can run npm start to see the example app at http://localhost:3000.
    - setupํ›„ start๋ฅผ ํ†ตํ•ด localhost์—์„œ ํ…Œ์ŠคํŠธ ์•ฑ ํ™•์ธ๊ฐ€๋Šฅ

  5. Run npm run clean to delete the example app.

    • ํ…Œ์ŠคํŠธ ์•ฑ ์ง€์šฐ๊ธฐ

#REFERENCE

๋ณด์ผ๋Ÿฌ ํ”Œ๋ ˆ์ดํŠธ(Boiler Plate) ์ดํ•ดํ•˜๊ธฐ
react-boilerplate

profile
ํ”„๋ก ํŠธ์—”๋“œ ์ฃผ๋‹ˆ์–ด ๊ฐœ๋ฐœ์ž ํ•œ์ •์šฐ์ž…๋‹ˆ๋‹ค. ๐Ÿ˜

0๊ฐœ์˜ ๋Œ“๊ธ€