forked from OpenKetchupSource/Web
-
Notifications
You must be signed in to change notification settings - Fork 0
architecture
dodaaaaam edited this page Jun 10, 2025
·
1 revision
src/
βββ assets/
βββ components/
β βββ common/
β βββ diary/
β βββ home/
β βββ login/
βββ pages/
β βββ chatting/
β βββ collection/
β βββ writing/
βββ services/
β βββ apis/
β βββ gpt/
β βββ zustand/
βββ App.tsx / main.tsx
βββ styles/
public/
βββ images/
| μ’ λ₯ | λΌμ΄λΈλ¬λ¦¬ |
|---|---|
| UI | React 19, styled-components |
| λΌμ°ν | react-router-dom v7 |
| μνκ΄λ¦¬ | Zustand |
| ν΅μ | axios |
| μ λλ©μ΄μ | react-mobile-picker |
| μμ΄μ½ | react-icons |
| λ²λ€λ¬ | Vite + SWC |
-
axios μΈμ€ν΄μ€ λΆλ¦¬
/services/apis/axiosInstance.ts/services/apis/axiosInstanceWithToken.ts
-
νΈμΆ μμ
import axios from './axiosInstance'; export const fetchDiaries = async () => { const res = await axios.get('/diary'); return res.data; };
-
μλ΅ μ²λ¦¬
- try-catch λλ μΈν°μ ν° μ¬μ©