MGS / TEAM 6 with Sysmetic
- 지영배: @youngcodej22
- 박철연: @oaat9309
- 오영재: @sacultang
- 노효정: @stellum
- 차유나: @sarasata3131
- 조성일: @Seong1-Jo
- 이양석
- 목문정
- 박세희
- Vite
- redux-toolkit
- styled-component
- react
- react-redux
- redux
- redux-persist
- redux-logger
- axios
- Python
- Flask (python framework)
- AWS
- Docker
- Mysql (DataBase)
- /master
- [ENDPOINT]/master/all
- 대분류
- [ENDPOINT]/master/lv-1
- 대분류의 소분류
- [ENDPOINT]/master/lv-2/{대분류 1개}
- http://cityfalcon-web-797905939.ap-northeast-2.elb.amazonaws.com:3002/master/lv-2/index
- /search/news
- [ENDPOINT]/search/news
- Header
- Authorization / Bearer {token}
- timeFilter (발행일)
- m5 (5분),
- m15 (15분),
- h1 (1시간),
- d1 (하루),
- w1 (일주일),
- mth1 (한 달)
- mediaType (언론사 종류)
- mp (major),
- op (others),
- r (research),
- mp,op (major&others),
- mp,op,r (All)
- language
- en, ko, ja, zh, da, el, et, fi, ga, hu, it, lt, no, pt, ro (상세 내용 추후 제공)
- orderBy
- latest, popular
- keyType
- 대분류
- paramValue
- /master/all의 paramValue를 keyType에 맞게 binding하여 요청
- /auth/register
- [ENDPOINT]/auth/register
- Body(Form-data)
- email: string
- password: string
- 성공시 {"mgs": "Registered Success"}
- /auth/login
- [ENDPOINT]/auth/login
- Body(Form-data)
- email: string
- password: string
- 성공시 {"access_token": 토큰}
- /auth/logout
- [ENDPOINT]/auth/logout
- Header
- Authorization: Bearer token
- 성공시 {"mgs": "Access token revoked}
- Issue/PR template에 맞춰서 작성
- Commit message를 convention에 맞게 작성
- ErrorReport 작성
- New Issue: issue 생성
- Assignees: 작업 책임자
- labels: issue에 관련된 label을 설정하여 팀원들이 알아 보기 편하게 한다.
- milestone: 프로젝트의 전반적인 진행을 지정 및 진행율을 확인 가능하다.
- Projects: 현재 프로젝트의 전체적인 흐름을 파악, 단계별로 진행 상황을 설정.
git add
시에 아래처럼 하면 된다.
- 같은 prefix/feat 기능 끼리만 묶어서처리.
- 예를들어 같은 logincomponent면 그 폴더 안에서
git add .
또는git add [파일명] [파일명]
- package.json와 같은 prefix가 달라지는 파일은 따로 처리 (
conf:
)
- prefix: 파일명
- (줄바꿈 아래) 아래 코드 수정한 부분 설명
- feat: 기능 개발 관련
- fix: 오류 개선 / 버그 패치
- refactor: feat에 코드 수정
- docs: 문서화 작업
- ex) docs: UPDATE README.md
- style: css style 작업
- test: test 관련 (테스트코드, 리펙토링 테스트 코드 추가)
- conf: 환경설정 관련, 빌드 업무 수정, 패키지 매니저, 폴더트리, 파일이름 변경
- build: 빌드 관련
- ci: Continuous Integration 관련
- 기능과 관련된 것은 모두 (add/update)
- feature
- deprecated (delete 시)
- 버그 수정
- fix
- 자기가 생각한 코드 구현을 끝내고 새로 검토하면서 코드 수정할 때
- refactoring
- CSS 코드 추가
- style
- Label 상세확인
- 시간: 오후 1시
- 작업 시작 전 ISSUE작성
Git Flow와 유사한 형태로 진행.
Local에서 자신의 이름+해당Issue번호를 branch로 만든다.
- branch들 확인:
git branch -a
develop
또는main
와 같은 branch에서 자신의 branch 생성.- branch 생성: ex)
git branch yeongbae24
(Issue번호는 새로운 작업을 할 때마다 바꿔서 작업) - branch가 생성됐으면 이동:
git switch 자기branch
- 현재 비어있는 자신의 branch에 최신화가된 develop branch를 pull 받는다.(remote repository에 develop을 말함)
- 현재위치가 자신의 branch인 것을 확인 후
git pull origin develop
(origin인 이유는git remote -v
를 해서 origin과 주소를 확인 할 수 있다.) - 자신의 branch에 최신화된 develop branch의 파일들을 가져온 것을 확인한다.
- 이제 다시 새로운 작업을 이어 나간다. (branch명과 Issue가 동일함으로 해당 작업들을 해나가면 된다.)
- 작업시 유의할 점은
conf:
,feat:
,fix:
등 prefix에 따라서git add
를 해야한다. (만약 package.json과 같은 거라면git add package.json
처럼 직접적인 파일을 선언하고 Login component의 작업들을 한번에 올릴 경우는 그 디렉토리에 가서git add .
을 해줘도 된다. prefix에 유의하여 commit을 하자) - 자신의 branch에서 작업이 완료 되었으면
git add, commit
을 해주고 commit message도 convention에 맞게 작성한 후git push origin 자기branch
에 올린다. - Github 사이트에 우리 프로젝트 Remote repository에서 pull request 요청을 한다. ( 주의! 자신branch에서 develop으로 보내야 한다! )
- 팀장의 검토가 완료되면 merge가 될 것이다.
- 이제 다른 팀원들의 작업사항까지 develop에 merge가 되어 최신화 되었다면 다시 pull의 해야한다.
- Remote
develop
branch에서 pull로 파일들을 받기 전에 Local에서 자신의 branch를 삭제한다.
- 현재
develop or main
branch임을 확인한 후git branch -a
로 branch들 확인 git branch -d 자기branch
로 Local 환경에서 삭제error: The branch ‘branch' is not fully merged.
발생 시git branch -D 자기branch
를 한다.
- 삭제가 된 것을 확인 후 다시
git branch 자기이름+issue번호
로 브랜치를 생성 git switch 자기branch
로 이동git pull origin develop
을 해서 최신화된 파일들을 자기branch에 가져온다.
- branch들 확인:
git branch
orgit branch -a
- 이동:
git switch 해당branch명
- 추가:
git branch 이름
- Local 삭제:
git branch -d 이름
orgit branch -D 이름
(강제삭제) - Remote 삭제:
git push origin --delete 자기이름branch
(remote에 백업용 branch 삭제를 원하고 다시 올릴 때 사용)