mirror of
https://github.com/headporter81/ss-front-react.git
synced 2026-12-06 07:41:11 +09:00
eac57c04e79131fcc55342d85af6fd7eb67a9a5a
SpecialSource Frontend (React) CD / deploy (push) Successful in 14s
- 목록: 링크·제목 등록 칸, 받는 중인 글이 있으면 5초마다 자동 새로고침
- 상세: 파일별 <video>/<img> (백엔드가 준 1시간짜리 토큰 주소)
- API 오류 시 서버가 준 이유({"error"})를 팝업에 표시
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ss-front-react
PC통신 스타일 BBS UI — Next.js 16 (App Router) + React 19 + TypeScript
npm install
npm run dev # http://localhost:3000
디렉토리 구조
src/
├─ app/ # 라우팅 전용 (page / layout)
│ ├─ layout.tsx
│ ├─ page.tsx
│ ├─ globals.css # 전역 토큰·리셋
│ └─ _components/ # 이 라우트에서만 쓰는 컴포넌트 (private folder, 라우팅 제외)
└─ features/ # 도메인(기능) 단위 모듈
└─ bbs/
├─ index.ts # 외부 공개 API (여기서만 import)
├─ types.ts
├─ constants/ # 메뉴·팔레트 정의
├─ mocks/ # 목업 데이터 → API 연동 시 api/ 로 교체
├─ lib/command.ts # 명령 처리 순수 함수 (useReducer reducer)
└─ components/ # BbsTerminal(client) + 화면별 컴포넌트 + CSS Module
규칙
app/에는 라우팅 파일만, 로직은features/<도메인>/에.- 다른 곳에서는
@/features/bbs(index.ts)로만 import. - 여러 feature가 공유하는 코드가 생기면 그때
src/components,src/lib,src/hooks추가.
Languages
TypeScript
82.8%
CSS
10.8%
JavaScript
6.1%
Dockerfile
0.3%