๐Ÿ’Œ Mobile Wedding Invitation ๐Ÿ’Œ

demo1.gif

์ด ํ”„๋กœ์ ํŠธ๋Š” ๋ชจ๋ฐ”์ผ ์ฒญ์ฒฉ์žฅ ์ž…๋‹ˆ๋‹ค.

React์™€ Typescript๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ๊ฐœ๋ฐœ๋˜์—ˆ์œผ๋ฉฐ, Vite๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋น ๋ฅด๊ณ  ๊ฐ„ํŽธํ•œ ๊ฐœ๋ฐœ ํ™˜๊ฒฝ์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.

eslint์™€ prettier๋ฅผ ์ ์šฉํ–ˆ๊ณ , emotion/styled๋ฅผ ํ™œ์šฉํ•˜์—ฌ ์Šคํƒ€์ผ๋ง์„ ํ—ธ์Šต๋‹ˆ๋‹ค.

๊ฐค๋Ÿฌ๋ฆฌ๋Š” react-photoswipe-gallery, ์ง€๋„๋Š” react-naver-maps ๋ฅผ ์‚ฌ์šฉํ–ˆ์Šต๋‹ˆ๋‹ค.

demo2.gif

js-confetti๋ฅผ ์ด์šฉํ•˜์—ฌ ๊ท€์—ฌ์šด ์ปจํŽ˜ํ‹ฐ ๊ธฐ๋Šฅ์„ ๋„ฃ์—ˆ์Šต๋‹ˆ๋‹ค.

ํ”„๋กœ์ ํŠธ ์„ค์น˜ ๋ฐ ์‹คํ–‰ ๋ฐฉ๋ฒ•

  1. ์ €์žฅ์†Œ๋ฅผ ํด๋ก ํ•ฉ๋‹ˆ๋‹ค.
git clone https://github.com/your-username/mobile-wedding-invitation.git
  1. ํ”„๋กœ์ ํŠธ ํด๋”๋กœ ์ด๋™ํ•ฉ๋‹ˆ๋‹ค.
cd mobile-wedding-invitation
  1. ํ•„์š”ํ•œ ์˜์กด์„ฑ์„ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค.
npm install
  1. (ํ•„์ˆ˜) .env.sample ํŒŒ์ผ์˜ ์ด๋ฆ„์„ .env์œผ๋กœ ๋ฐ”๊พธ๊ณ , VITE_APP_NAVERMAPS_CLIENT_ID์— Naver Cloud์—์„œ ๋ฐœ๊ธ‰ ๋ฐ›์€ client_id๋กœ ์ฑ„์›๋‹ˆ๋‹ค. client_id๋Š” NAVER CLOUD PLATFORM ์—์„œ ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋“ฑ๋ก ํ›„ ๋ฐœ๊ธ‰๋ฐ›์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
  2. (์„ ํƒ) likes์™€ ๋ฐฉ๋ช…๋ก ๊ธฐ๋Šฅ ์‚ฌ์šฉ์„ ์›ํ•œ๋‹ค๋ฉด Firebase ์„ค์ •์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค. src/firebase.ts ํŒŒ์ผ์— Firebase SDK๋ฅผ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค. Firebase ๋ฌธ์„œ๋ฅผ ์ฐธ๊ณ ํ•˜์—ฌ SDK๋ฅผ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
  3. ์‚ฌ์šฉ์ž ์ •์˜๊ฐ€ ํ•„์š”ํ•œ ํŒŒ์ผ๋“ค์„ ์ˆ˜์ •ํ•ฉ๋‹ˆ๋‹ค. (์•„๋ž˜์˜ ์ฒดํฌ๋ฆฌ์ŠคํŠธ ์ฐธ๊ณ )
  4. ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.
npm run dev

์ปค์Šคํ…€ ์ฒดํฌ๋ฆฌ์ŠคํŠธ

  • src/data.json ์ฒญ์ฒฉ์žฅ์— ๋“ค์–ด๊ฐˆ ์ •๋ณด๋ฅผ ์ˆ˜์ •ํ•ฉ๋‹ˆ๋‹ค.
  • index.html ํŒŒ๋น„์ฝ˜, title, og tag์— ์“ฐ์ผ meta tag ๋“ฑ์„ ์ˆ˜์ •ํ•ฉ๋‹ˆ๋‹ค.
  • public/thumbnail.jpg ์ธ๋„ค์ผ ์‚ฌ์ง„์„ ์ˆ˜์ •ํ•ฉ๋‹ˆ๋‹ค.
  • src/layout/Gallery/PhotoGallery.tsx ์‚ฌ์šฉํ•  ์‚ฌ์ง„๋“ค์— ๋งž๊ฒŒ ์‚ฌ์ง„ ์‚ฌ์ด์ฆˆ๋ฅผ ์ˆ˜์ •ํ•ฉ๋‹ˆ๋‹ค.
  • .env VITE_APP_NAVERMAPS_CLIENT_ID=client_id ์ž…๋ ฅ์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.
  • (์„ ํƒ) src/firebase.ts likes, ๋ฐฉ๋ช…๋ก์„ ์‚ฌ์šฉํ•œ๋‹ค๋ฉด firebase sdk ์„ค์ •์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.
  • (์„ ํƒ) src/data.json ํ˜ผ์ฃผ ๊ณ„์ขŒ๋ฒˆํ˜ธ ์ž‘์„ฑ์‹œ kakaopayAccount, tossAccount ํ•ญ๋ชฉ์„ ์ด์šฉํ•ด ์นด์นด์˜คํŽ˜์ด๋‚˜ ํ† ์Šค ๋งํฌ๋ฅผ ์ถ”๊ฐ€ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Clone ํ›„, ๋ฐ”๋กœ ๋ฐฐํฌํ•˜๊ธฐ

Deploy with Vercel

์ฐธ๊ณ  ์ž๋ฃŒ

์ด ํ”„๋กœ์ ํŠธ๋Š” MIT ๋ผ์ด์„ผ์Šค์— ๋”ฐ๋ผ ๋ฐฐํฌ๋ฉ๋‹ˆ๋‹ค. ์ž์„ธํ•œ ๋‚ด์šฉ์€ LICENSE ํŒŒ์ผ์„ ์ฐธ์กฐํ•˜์„ธ์š”.

Star History

Star History Chart