Skip to content

๐Ÿšง์•ˆ์ „์ง€ํ‚ด์ด ์ง€๋„ Fence ์„œ๋น„์Šค ๊ฐœ๋ฐœ๐Ÿšง

Notifications You must be signed in to change notification settings

MJU-Capstone-Design/Fence_dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

65 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Fence_dev

๐Ÿšง์•ˆ์ „์ง€ํ‚ด์ด ์ง€๋„ Fence ์„œ๋น„์Šค ๊ฐœ๋ฐœ๐Ÿšง

1. ํ”„๋กœ์ ํŠธ์˜ ์ €์žฅ์†Œ๋ฅผ ๋‚ด ์ปดํ“จํ„ฐ๋กœ clone

  • clone์€ ๋‹ค๋ฅธ ์‚ฌ๋žŒ์˜ ์ €์žฅ์†Œ๋ฅผ ๋‚ด ์ปดํ“จํ„ฐ๋กœ ๋ณต์‚ฌํ•ด์˜ค๋Š” ๊ฒƒ์„ ์˜๋ฏธํ•ฉ๋‹ˆ๋‹ค.
git clone https://github.com/MJU-Capstone-Design/Fence_dev.git

2. ์ž‘์—… branch ์ƒ์„ฑ

  • branch๋Š” ๋‹ค๋ฅธ ์‚ฌ๋žŒ๊ณผ ์ž‘์—… ๊ณต๊ฐ„์ด ๊ฒน์น˜๋Š” ๊ฒƒ์„ ๋ฐฉ์ง€ํ•˜๋Š”๋ฐ ๋„์›€์„ ์ฃผ๋Š” ๊ธฐ๋Šฅ์ž…๋‹ˆ๋‹ค.
  • branch ๊ผญ ๋งŒ๋“ค์–ด์„œ ์ž‘์—…ํ•ด์ฃผ์„ธ์š”!!ใ… ใ… 
cd Fence_dev # cloneํ•ด์„œ ๋งŒ๋“ค์–ด์ง„ ํด๋”๋กœ ์ด๋™
git checkout -b ์ž๊ธฐ ์˜์–ด ์ด๋ฆ„(๋‚ด ๋ธŒ๋žœ์น˜ ์ด๋ฆ„์ด ๋จ) # ex) git checkout -b yurim

3. npm install ๋ฐ›๊ธฐ

  • ๊ธฐ๋ณธ ํ™˜๊ฒฝ์œผ๋กœ ์„ค์ •ํ•œ package๋“ค์„ ํ•œ๋ฒˆ์— ๋‹ค์šด๋ฐ›์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
npm install
  • client ํด๋”๋กœ ๋“ค์–ด๊ฐ€์„œ ํ•œ๋ฒˆ๋” install ์ž‘์—…์„ ์‹คํ–‰ํ•ด์ฃผ์„ธ์š”.
cd client
npm install

4. mysql ์ •๋ณด ์ž…๋ ฅํ•˜๊ธฐ

  • ์„œ๋ฒ„ ํด๋”์—๊ฐ€์„œ configํด๋”๋ฅผ ๋งŒ๋“ค๊ณ  configํด๋” ์•ˆ์— database.jsํŒŒ์ผ์„ ์ƒ์„ฑํ•˜์—ฌ ๋ณธ์ธ mysql ์ •๋ณด๋ฅผ ์ž…๋ ฅํ•ด์ฃผ์„ธ์š”.
// database.js
module.exports = {
  host: "localhost",
  user: "<์‚ฌ์šฉ์ž ์˜ˆ) root>",
  password: "<๋น„๋ฐ€๋ฒˆํ˜ธ>",
  database: "<์‚ฌ์šฉํ•  db ์ด๋ฆ„>",
};

5. server์™€ client ํ•œ๋ฒˆ์— ์‹คํ–‰์‹œํ‚ค๊ธฐ

  • server์™€ client ํด๋”๊ฐ€ ๋”ฐ๋กœ ๋˜์–ด์žˆ์–ด ์›๋ž˜๋Š” server์™€ client๋ฅผ ๊ฐ๊ฐ ์‹คํ–‰์‹œ์ผœ์ฃผ์–ด์•ผ ํ•˜๋Š” ๋ถˆํŽธํ•จ์ด ์žˆ์Šต๋‹ˆ๋‹ค.
  • ์ด์™€๊ฐ™์€ ์ ์„ ํ•ด๊ฒฐํ•˜๊ธฐ ์œ„ํ•ด concurrently๋ผ๋Š” package๋ฅผ ๋‹ค์šด๋ฐ›์•„ ์„ค์ •ํ•ด๋‘์—ˆ์Šต๋‹ˆ๋‹ค.
npm run dev

Fence ํด๋”์—์„œ npm run dev๋ฅผ ์‹คํ–‰ํ•˜๋ฉด server์™€ client๋ฅผ ๋™์‹œ์— ์‹คํ–‰์‹œํ‚ฌ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๋‚ด๊ฐ€ ํ•œ ์ฝ”๋“œ ์—…๋กœ๋“œ

1. ํ„ฐ๋ฏธ๋„์„ ์‹คํ–‰ํ•˜๊ณ  clone์„ ํ•ด์„œ ๋งŒ๋“ค์–ด์กŒ๋˜ ํด๋”๋กœ ์ด๋™ํ•ฉ๋‹ˆ๋‹ค.

2. ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ž…๋ ฅํ•ด์„œ ์›๊ฒฉ์— ๋‚ด๊ฐ€ ํ‘ผ ๋ฌธ์ œ๋ฅผ ์˜ฌ๋ฆฌ๋„๋ก ํ•ฉ๋‹ˆ๋‹ค.

git add .
git commit -m "๊ธฐ๋Šฅ์— ๋Œ€ํ•œ ๊ฐ„๋‹จํ•œ ์„ค๋ช…"
git push origin ๋ณธ์ธ ๋ธŒ๋žœ์น˜ ์ด๋ฆ„(๋ณธ์ธ ์˜์–ด ์ด๋ฆ„)
# ex) git push origin yurim

About

๐Ÿšง์•ˆ์ „์ง€ํ‚ด์ด ์ง€๋„ Fence ์„œ๋น„์Šค ๊ฐœ๋ฐœ๐Ÿšง

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •