Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: /Users endpoint 작성 #79

Open
wants to merge 24 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
902db6b
feat: GET user:id GET user list 작성
Dec 7, 2024
1009927
fix: overDueDay nullable null assign 삭제
Dec 7, 2024
b3a3ec2
[autofix.ci] apply automated fixes
autofix-ci[bot] Dec 7, 2024
2b2f928
test: GET /users/:id 테스트 작성
Dec 7, 2024
a3fb9af
fix: duplicate docker container
Dec 7, 2024
e67107a
chore: bcrypt dependency 추가
Dec 14, 2024
e6f50c1
feat: Users me/myself endpoint 제외 추가
Dec 15, 2024
7e8a28d
[autofix.ci] apply automated fixes
autofix-ci[bot] Dec 15, 2024
25f3e33
Update backend/src/users/users.service.ts
parkj12b Dec 15, 2024
f835593
Update backend/src/users/users.service.ts
parkj12b Dec 15, 2024
315009a
[autofix.ci] apply automated fixes
autofix-ci[bot] Dec 15, 2024
a951656
test: usersService 테스트 추가
Dec 15, 2024
c61c683
fix: 실수로 지운 파일 restore
Dec 26, 2024
6593b88
feat: global zod validation pipe 적용
Dec 26, 2024
31f064c
feat: validation pipe 적용
Dec 26, 2024
39c5cf2
test: users 테스트 작성
Dec 26, 2024
6aa39ea
feat: pagination 통일화를 위해 스키마 수정
Dec 26, 2024
24b1a23
fix: 로거 날짜 형식 정상화 (#82)
scarf005 Dec 22, 2024
96e2269
fix: book 경로 id 검사 추가 (#83)
scarf005 Dec 22, 2024
80d4cee
fix!: typeorm migrate 작성하기 (#84)
jimin52 Dec 22, 2024
3f264bf
test: books 테스트 (#85)
scarf005 Jan 5, 2025
f9397d0
feat: GET user:id GET user list 작성
Dec 7, 2024
3e0c364
feat: /users view 사용 로직 제거
Jan 5, 2025
e111b06
fix: 중복 import 및 변경된 파일구조 적용
Jan 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules/

.env*
!.env.example
**/backup.sql
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ $ pnpm dev

위 명령어로 개발용 docker compose를 실행합니다.

### migrate 실행
```sh
$ pnpm run migrate:run
```
위 명령어로 migration 실행합니

![](./swagger.webp)

<http://localhost:3000/api> 경로에 접근하여 API 명세가 올바르게 표시되는지 확인합니다.
14 changes: 12 additions & 2 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./test/jest-e2e.json",
"typecheck": "tsc --noEmit"
"typecheck": "tsc --noEmit",
"migrate:run": "pnpm ts-node ./node_modules/typeorm/cli.js migration:run -d ./src/database/config.ts",
"migrate:revert": "pnpm ts-node ./node_modules/typeorm/cli.js migration:revert -d ./src/database/config.ts",
"migrate:reset": "pnpm migrate:revert && pnpm migrate:run",
"migrate:create": "pnpm ts-node ./node_modules/typeorm/cli.js migration:create ./src/database/migrate/custom",
"migrate:generate": "pnpm ts-node ./node_modules/typeorm/cli.js migration:generate ./src/database/migrate/auto -d ./src/database/config.ts"
},
"dependencies": {
"@anatine/zod-nestjs": "^2.0.9",
Expand All @@ -29,6 +34,8 @@
"@nestjs/platform-express": "^10.0.0",
"@nestjs/swagger": "^7.4.0",
"@nestjs/typeorm": "^10.0.2",
"@types/bcrypt": "^5.0.2",
"bcrypt": "^5.1.1",
"dotenv": "^16.4.5",
"mysql2": "^3.11.0",
"openapi3-ts": "^4.4.0",
Expand All @@ -50,7 +57,7 @@
"eslint": "^8.42.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"jest": "^29.5.0",
"jest": "^29.7.0",
"prettier": "^3.0.0",
"source-map-support": "^0.5.21",
"supertest": "^7.0.0",
Expand All @@ -67,6 +74,9 @@
"ts"
],
"rootDir": "src",
"moduleNameMapper": {
"^src/(.*)$": "<rootDir>/$1"
},
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
Expand Down
Loading