μ¬λ¬ μ¬λλ€κ³Ό 체κ³μ μΌλ‘ μ€ν°λλ₯Ό κ΄λ¦¬νκ³ μΆμΌμ κ°μ?
κ±±μ λ§μΈμ. λΉμ μ΄ μνλ μ€ν°λ Ludoκ° μ°Ύμλ릴κ²μ.
π Ludo λ°λ‘κ°κΈ°
μ€ν°λ μ§μλΆν° μ°Έμ¬, κ΄λ¦¬κΉμ§
λꡬλ μ½κ³ λΉ λ₯΄κ² μ§μ κ°λ₯ν μ€ν°λμ μ°Έμ¬ν μ μλ μ€ν°λ νλ«νΌμ
λλ€.
π μ μ μ€ν 리
π νμ΄μ§ Flow Chart
π λΈλ μΈ μ€ν λ°
π IA(μ 보 ꡬ쑰λ)
π API μ€κ³μ
π νμ΄μ§ λμμΈ
π λμμΈ μμ€ν
λ©μΈνμ΄μ§μμ μνλ μΉ΄ν κ³ λ¦¬μ μ€ν°λ λͺ¨μ§κ³΅κ³ λ₯Ό νμΈν μ μμ΄μ.
λͺ¨μ§κ³΅κ³ λͺ¨μ보기 νμ΄μ§μμλ νν°λ₯Ό ν΅ν΄ μνλ μ€ν°λ λͺ¨μ§κ³΅κ³ λ₯Ό νμΈν μ μμ΄μ.
μ€ν°λ λͺ¨μ§κ³΅κ³ μμΈ νμ΄μ§μμ μνλ μ€ν°λ λͺ¨μ§κ³΅κ³ μ μ§μν μ μμ΄μ.
λ‘κ·ΈμΈν μ¬μ©μλ μ€ν°λ μμ±νμ΄μ§μμ μ€ν°λλ₯Ό μμ±ν μ μμ΄μ.
μμ±λ μ€ν°λμ λν λͺ¨μ§κ³΅κ³ λ₯Ό μμ±ν μ μμ΄μ.
λ§μ΄νμ΄μ§μμ μ°Έμ¬μ€μΈ μ€ν°λ, μ§μν μ€ν°λ, μ§ν μλ£λ μ€ν°λλ₯Ό νμΈν μ μμ΄μ.
yarn install
- Mac OS
brew install mkcert
- Windows
choco install mkcert
-
λ‘컬μ μΈμ¦λ λ°κΈ κΈ°κ΄μΌλ‘ μΆκ°
mkcert --install
-
μΈμ¦μ μμ±
mkcert local.ludoapi.store
-
μμ±λ local.ludoapi.store.pem, local.ludoapi.store-key.pem ν€λ₯Ό 루νΈμ cert ν΄λλ‘ μ΄λ
ludo-frontend βββ cert # μΈμ¦μ keyλ₯Ό 보κ΄νλ ν΄λ βββ local.ludoapi.store.pem βββ local.ludoapi.store-key.pem
VITE_MOCK_API_URL = Mock API Endpoint
VITE_BASE_API_URL = Base API Endpoint
- Mac OS
yarn start:mac
- Windows
yarn start:windows
yarn storybook
ludo-frontend
βββ .github # Feature, PR, Bug template
βββ .husky # pre-commit hook
βββ public # public
βββ src
βββ Apis # api νΈμΆ Function
βββ Assets # resoucres
βββ Components # νμ΄μ§λ₯Ό ꡬμ±νλ components
βββ Constants # api, message, queryStirng, route λ° κ³΅ν΅μ μΌλ‘ μ¬μ©λλ constants
βββ Hooks # Custom Hooks
βββ Layout # νλ‘μ νΈ λΌλλ₯Ό ꡬμ±νλ Layout
ββ- Mocks # MSWλ₯Ό νμ©ν Mock data, handler
βββ Pages # Pages
βββ Router # Routes config
βββ Providers # Login, Query Provider
βββ Shared # 곡ν΅μΌλ‘ μ¬μ©λλ κ° λ° Dummy data
βββ Store # Zustandλ₯Ό μ¬μ©ν μ μ Store
βββ Styles # Global Style
βββ Types # νλ‘μ νΈ μ λ°μ κ±Έμ³ μ¬μ©λλ Type μ μ
βββ Utils # date, axios κ΄λ ¨ util ν¨μ