Commit cc7e25f
[24.12.15 / TASK-43] feature: user event tracking (#7)
* feature: database connection 추가
* refactor: db.comfig.ts -> db.config.ts 오타 수정
* feature: pre-commit 기능추가, 변경된 파일만 해당
* feature: add cors
* modify: Type folder changed from camelCase to snake_case
* refactor: changed TypeScript runtime executor from ts-node to tsx
* feature: 간단한 토큰 검증 후 Velog API 호출
* modify: 오타 및 상대 경로 -> 절대 경로
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* modify: user.controller.ts 절대 경로 -> 상대 경로
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* refactor: Token 추출 로직 개선
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* refactor: cors 설정 및 개발 환경변수 추가
* refactor: cors 설정 오탈자 수정
* refactor: src/app.ts 미들웨어 순서 조정
* featrue: 유저 저장 및 업데이트
* modify: .env.sample 수정
* modify: 에러 핸들링 next제거 express.d.ts 수정
* modify src/app.ts
에러핸들링 위치 변경
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* modify: 에러 핸들링 미들웨어
* modify: 에러 핸들링 미들웨어
* feature: login 요쳥 시 token 인증 및 사용자 저장, 업데이트
* modify: query문 수정
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* refactor: user controller 응답값 통일화 및 에러 미들웨어 수정
* modify: key.util 문서 오타 수정
* refactor: User Repo 에러 핸들링
* modify: repositories 오타 수정
* refactor: user service 에러 헨들링
* modify: 전체 파일 절대경로 -> 상대경로
* refactor: user service 리펙토링
* refactor: dto 검증 미들웨어 try문으로 변경 및 수정
* modify: 로그인 반환값 수정
* refactor: custom error
* modify: db error status code
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* modify: import 순서 수정
* feature: log저장
* refactor: User Service encryptTokens Error
* refactor: import model path
* refactor: error handling
* fix: 오탈자 수정 및 경로 수정
* modify: 파일 네이밍 컨벤션 통일화 및 User Tracking Interface 추가
* modify: 기본적인 tracking setting
* refactor: validate middleware 유동적으로 검증할 수 있게 수정
* feature: user tracking 저장
* modify: api docs 기반 end point 수정
* refactor: tracking controller 디테일 수정
* refactor: index.ts를 통해 깔끔하게 import
* modify: back-office 와 맞게 에러 message 수정
* refactor: supabase에 맞게 수정
* feature: 체류시간 저장
* fix: database value 수정 및 docker-conpose 삭제
* refactor: 유효성 검증 추가
* refactor: router index 추가
* modify: 오타 수정
---------
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>1 parent 11785cd commit cc7e25f
File tree
31 files changed
+355
-75
lines changed- src
- configs
- controllers
- exception
- middlewares
- repositories
- routes
- services
- types
- dto
- models
- utils
31 files changed
+355
-75
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
14 | 18 | | |
15 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
16 | 32 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments