Microservice 프로젝트 로그
아래와 같은 순서로 각 서비스에 대한 솔루션을 작성해보려 합니다.
- 각 서비스에서 필요한 기능
- Auth → 로그인, 회원가입, 로그아웃, 인증여부 확인
- Post → 게시글: 생성, 읽기, 업데이트, 삭제, 좋아요(추천), 해쉬태그
- Comment → 댓글: 생성, 읽기, 업데이트, 삭제, 좋아요(추천), 신고
(진행중…미정)- Recommend → 댓글 많은 게시글, 추천 많은 게시글
- Filter → 추천순, 댓글순, 검색, 해쉬태그
- Notification → 자신의 글 반응
- Profile → 유저 정보 수정, 설정(다크모드, 알림 on-off)
- 라우터
- Auth
- POST /api/users/signup: 회원가입
- POST /api/users/signin : 로그인
- POST /api/users/signout: 로그아웃
- GET /api/users/currentuser: 현재 사용자 정보 및 인증 여부 확인
- POST /api/users/verify-email: 회원가입시 이메일 인
- Post
- POST /api/post : 게시글 생성
- GET /api/post : 모든 게시글 읽기
- GET /api/posts/:postId : 특정 게시글 읽기
- PUT /api/posts/:postId : 게시글 업데이트
- DELETE /api/posts/:postId : 게시글 삭제
- POST /api/posts/:postId/like : 게시글 좋아요
- DELETE /api/posts/:postId/like : 게시글 좋아요 삭제
- Comment
- POST /api/post/:postId/comment : 게시글에 댓글 작성
- GET /api/post/:postId/comment : 게시글의 모든 댓글 읽기
- PUT /api/post/:postId/comment/:commentId : 댓글 업데이트
- DELETE /api/post/:postId/comment/:commentId : 댓글 삭제
- POST /api/post/:postId/comment/:commentId/like : 댓글 좋아요
- POST /api/post/:postId/comment/:commentId/report : 댓글 신고
- Recommend
- GET /api/posts/recommended : 추천 많은 게시글
- GET /api/posts/popular : 댓글 많은 게시글
- Filter
- GET /api/posts?sort=likes : 추천순 게시글
- GET /api/posts?sort=comments : 댓글순 게시글
- GET /api/posts?search=:query : 게시글 검색
- Notification
- GET /api/notifications : 자신의 글 반응
- Profile
- PUT /api/users/:id : 유저 정보 수정
- PUT /api/users/:id/settings : 설정 변경 (다크모드, 알림 on-off 등)
- Auth
- DB
- User
- Post, Comment
'OLD > MicroService_Project' 카테고리의 다른 글
[Project] 05_Microservice 프로젝트 서비스간 커뮤니케이션-Event-Bus (NATS-streaming-server) (0) | 2023.07.10 |
---|---|
[Project] 04_Microservice 프로젝트 세팅하기-Skaffold, Ingress (0) | 2023.07.10 |
[Project] 03_Microservice 프로젝트 세팅하기-Docker, Kubernetes (0) | 2023.07.08 |
[Project] 01_Microservice 프로젝트 시작하기-기획01 (0) | 2023.07.07 |