How hrgd-cdc/hg-cdc-team works
CDC (씨다씨) is a location-aware community application for sharing posts, interacting through comments and likes, and managing user accounts. The user workflow runs from the React routes and screens through hooks and an HTTP client to NestJS controllers and domain services, which persist users and posts and can upload images to Azure Blob Storage. The source excerpts support the main auth and post flows; the README also documents an AI location service, but its implementation details are not shown.
Main entry points: axios.jsx HTTP client · PostDetail.jsx Post detail · App.jsx Route shell · auth.service.ts Auth service
Components 26
Web application
- Route shell
frontend/src/App.jsx - Account screens
frontend/src/pages/Auth - Auth state
frontend/src/hooks/useAuth.jsx - Post screens
frontend/src/pages/Post - Post detail
frontend/src/pages/Post/PostDetail/PostDetail.jsx - Post state
frontend/src/hooks/usePost.jsx - Comment state
frontend/src/hooks/useComment.jsx - Like state
frontend/src/hooks/useLike.jsx - Map view
frontend/src/components/KaKaoMap/KaKaoMap.jsx - HTTP client
frontend/src/api/axios.jsx
Backend API
- Auth routes
backend/src/auth/auth.controller.ts - Auth service
backend/src/auth/auth.service.ts - Post routes
backend/src/post/post.controller.ts - Comment routes
backend/src/comment/comment.controller.ts - Like routes
backend/src/like/like.controller.ts
Community domain
- Post service
backend/src/post/post.service.ts - Comment service
backend/src/comment/comment.service.ts - Like service
backend/src/like/like.service.ts - User records
backend/src/auth/entities/user.entity.ts - Post records
backend/src/post/entities/post.entity.ts - Comment records
backend/src/comment/entities/comment.entity.ts - Like records
backend/src/like/entities/like.entity.ts
External services
- Blob uploads
backend/src/file/file.azure.service.ts - Azure Blob
- AI location service
ai/app.py
Other components
- User
Connections 29
- User → Route shell: uses
frontend/src/App.jsx - Route shell → Account screens: routes to
frontend/src/App.jsx - Route shell → Post screens: routes to
frontend/src/App.jsx - Account screens → Auth state: uses
frontend/src/pages/Auth/Signup/Signup.jsx - Auth state → HTTP client: requests
frontend/src/hooks/useAuth.jsx - Post screens → Post state: uses
frontend/src/pages/Post/PostCreate/PostCreate.jsx - Post detail → Post state: loads posts
frontend/src/pages/Post/PostDetail/PostDetail.jsx - Post detail → Comment state: manages comments
frontend/src/pages/Post/PostDetail/PostDetail.jsx - Post detail → Like state: toggles likes
frontend/src/pages/Post/PostDetail/PostDetail.jsx - Post detail → Map view: renders
frontend/src/components/KaKaoMap/KaKaoMap.jsx - Post state → HTTP client: requests
frontend/src/hooks/usePost.jsx - Comment state → HTTP client: requests
frontend/src/hooks/useComment.jsx - Like state → HTTP client: requests
frontend/src/hooks/useLike.jsx - HTTP client → Auth routes: calls auth routes
- HTTP client → Post routes: calls post routes
- HTTP client → Comment routes: calls comment routes
- HTTP client → Like routes: calls like routes
- Auth routes → Auth service: delegates
backend/src/auth/auth.controller.ts - Auth service → User records: reads and writes
backend/src/auth/auth.service.ts - Auth service → Blob uploads: uploads profile image
backend/src/auth/auth.service.ts - Post routes → Post service: delegates
backend/src/post/post.controller.ts - Post service → Post records: reads and writes
backend/src/post/post.service.ts - Post service → Blob uploads: uploads post image
backend/src/post/post.service.ts - Comment routes → Comment service: delegates
backend/src/comment/comment.controller.ts - Comment service → Comment records: reads and writes
backend/src/comment/comment.service.ts - Like routes → Like service: delegates
backend/src/like/like.controller.ts - Like service → Like records: reads and writes
backend/src/like/like.service.ts - Blob uploads → Azure Blob: stores files
backend/src/file/file.azure.service.ts - User → AI location service: queries location
README.md