Skip to content

Frontend Wiki

yummjin edited this page Apr 10, 2026 · 14 revisions

๐Ÿงญ Frontend Team Wiki

์ด ๋ฌธ์„œ๋Š” ํ”„๋ก ํŠธ์—”๋“œ ํŒ€์˜ ๊ธฐ์ˆ , ๊ทœ์น™, ๊ฒฐ์ •์‚ฌํ•ญ, ์šด์˜ ๋ฐฉ์‹์„ ๊ธฐ๋กํ•˜๊ณ  ๊ณต์œ ํ•˜๊ธฐ ์œ„ํ•œ ์œ„ํ‚ค์ž…๋‹ˆ๋‹ค. ๋ชจ๋“  ๋ณ€๊ฒฝ ์‚ฌํ•ญ์€ ๋ฌธ์„œํ™” ๋ฐ ๋‚ ์งœ ๊ธฐ๋ก์„ ์›์น™์œผ๋กœ ํ•ฉ๋‹ˆ๋‹ค.


1. ํ”„๋กœ์ ํŠธ ๊ฐœ์š”

2. ๊ธฐ์ˆ  ์Šคํƒ ๋ฐ ์„ ์ • ์ด์œ 

3. ์•„ํ‚คํ…์ฒ˜ ๋ฐ ๊ตฌ์กฐ

4. WebView ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๊ตฌ์กฐ

5. ํ˜‘์—…์šฉ ์ปจ๋ฒค์…˜ ์ •์˜


๐Ÿ—‚๏ธ ์ฐธ๊ณ  ์ž๋ฃŒ

๊ณต์‹ ๋ฌธ์„œ

๊ธฐ์ˆ  ๋ฌธ์„œ
Stackflow https://stackflow.so
TanStack Query https://tanstack.com/query/latest
Zustand https://zustand.docs.pmnd.rs
Ky https://github.com/sindresorhus/ky
TailwindCSS 4 https://tailwindcss.com/docs
CVA https://cva.style
@webview-bridge https://github.com/gronxb/webview-bridge
openapi-typescript https://openapi-ts.dev
Expo https://docs.expo.dev

์„œ๋น„์Šค URL

ํ™˜๊ฒฝ URL
ํ”„๋กœ๋•์…˜ ์›น https://hellocs.site
API https://api.hellocs.site
API Docs (Swagger) https://api.hellocs.site/v3/api-docs
Grafana https://hellocs.site/grafana/

โœจ 8. ์‚ฌ์šฉ ํŒ ๋ฐ ๊ทœ์น™

8-1 ๊ฐœ๋ฐœ ์‹œ์ž‘

# Web
cd web && pnpm install && pnpm dev        # http://localhost:5173

# Mobile
cd mobile && npm install && npm start     # Expo dev server

8-2 API ํƒ€์ž… ์žฌ์ƒ์„ฑ

๋ฐฑ์—”๋“œ API๊ฐ€ ๋ณ€๊ฒฝ๋์„ ๋•Œ ์‹คํ–‰:

cd web && pnpm generate:api-models

.env์— API_SWAGGER_URL ์„ค์ • ํ•„์š”.

8-3 ์ƒˆ ํŽ˜์ด์ง€ ์ถ”๊ฐ€ ์ฒดํฌ๋ฆฌ์ŠคํŠธ

  • src/pages/<feature>/<PageName>.tsx ์ƒ์„ฑ
  • src/app/stackflow-route.tsx์— { name, component, path } ๋“ฑ๋ก
  • ํ•„์š” ์‹œ src/api/<feature>/, src/model/<feature>/ ์ถ”๊ฐ€

8-4 ์ƒˆ ๋ธŒ๋ฆฟ์ง€ ๊ธฐ๋Šฅ ์ถ”๊ฐ€ ์ฒดํฌ๋ฆฌ์ŠคํŠธ

  • mobile/bridge/index.ts์˜ AppBridgeType์— ๋ฉ”์„œ๋“œ ์‹œ๊ทธ๋‹ˆ์ฒ˜ ์ถ”๊ฐ€
  • bridge() ๊ตฌํ˜„์ฒด์— ์‹ค์ œ ๋กœ์ง ์ž‘์„ฑ
  • ์›น์—์„œ window.bridge.xxx() ํ˜ธ์ถœ๋กœ ๊ฒ€์ฆ

8-5 ํ˜‘์—… ์ฃผ์˜์‚ฌํ•ญ

  • api-models.ts๋Š” ์ž๋™์ƒ์„ฑ ํŒŒ์ผ โ€” ์ง์ ‘ ์ˆ˜์ • ๊ธˆ์ง€, pnpm generate:api-models๋กœ๋งŒ ๊ฐฑ์‹ 
  • ์ปค๋ฐ‹ ๋ฉ”์‹œ์ง€ ํ˜•์‹ ๋ฏธ์ค€์ˆ˜ ์‹œ commitlint ํ›…์ด ๊ฑฐ๋ถ€ํ•จ
  • main ๋ธŒ๋žœ์น˜ push ์‹œ GitHub Actions๊ฐ€ ์ž๋™ ๋นŒ๋“œ + ๋ฐฐํฌ ํŠธ๋ฆฌ๊ฑฐ๋จ (web ๊ฒฝ๋กœ ๋ณ€๊ฒฝ ์‹œ)
  • ESLint import ์ˆœ์„œ ์œ„๋ฐ˜ ์‹œ CI์—์„œ ์‹คํŒจ โ€” ๋กœ์ปฌ์—์„œ pnpm lint ๋จผ์ € ํ™•์ธ

8-6 Vite ๊ฐœ๋ฐœ ํ”„๋ก์‹œ

๋กœ์ปฌ ๊ฐœ๋ฐœ ์‹œ ์•„๋ž˜ ๊ฒฝ๋กœ๋Š” https://hellocs.site๋กœ ํ”„๋ก์‹œ๋จ:

  • /api/
  • /v3/
  • /swagger-ui/

Clone this wiki locally