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

[BE] 회원가입 API 구현 #29

Merged
merged 10 commits into from
Nov 7, 2024
Merged

Conversation

jinddings
Copy link
Collaborator

@jinddings jinddings commented Nov 6, 2024

✅ 주요 작업

💭 고민과 해결과정

NestJs를 이용한 코딩 경험이 없다 보니 문법이나 여러 기능들에 대해 많이 생소해 공부와 병행하면서 코드 작성을 진행하였습니다.

@jinddings jinddings requested review from sieunie and uuuo3o November 6, 2024 07:58
BE/package.json Outdated Show resolved Hide resolved
@@ -1,6 +1,6 @@
import { Controller, Get, Body } from '@nestjs/common';
import { AuthService } from './auth.service';
import { AuthCredentialsDto } from './dto/auth-credential-dto';
import { AuthCredentialsDto } from './dto/authCredentials.dto';
Copy link
Collaborator

@uuuo3o uuuo3o Nov 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 이런 네이밍 규칙도 나중에 이야기해보면 좋겠네요!
저는 케밥 케이스 방식을 써서
auth-credential.dto 이런 식으로 작성하고 있었거든요!

Copy link
Collaborator Author

@jinddings jinddings Nov 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이런 네이밍 규칙도 나중에 이야기해보면 좋겠네요! 저는 케밥 케이스 방식을 써서 auth-credential.dto 이런 식으로 작성하고 있었거든요!

어라? 저도 진님이 하신게 기억나서 고쳐논건데 왜 다시 되돌아 왔는지 모르겠네요 ㅎㅎ
한번 이야기 해보면 좋을거 같아요!

@@ -14,9 +16,10 @@ import { AppService } from './app.service';
username: process.env.DB_USERNAME,
password: process.env.DB_PASSWD,
database: process.env.DB_DATABASE,
entities: [],
entities: [User],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 auth.module에서 user 엔티티로 등록되어있는 것 같은데, 혹시 여기서 한번 더 등록해주어야 할 필요가 있는 건가용...?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

해당 부분에서 등록하는 부분과 auth.module에서 등록하는 부분이 다른 걸로 알고 있습니다.
TypeOrmModule의 옵션인 entities에 포함 해주면 엔티티에 맞춰서 자동으로 데이터 테이블을 생성해 준다고 알고 있습니다!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

그렇군요!! 감사합니당

@jinddings jinddings linked an issue Nov 6, 2024 that may be closed by this pull request
@jinddings jinddings merged commit e9f5950 into back/main Nov 7, 2024
1 of 2 checks passed
@uuuo3o uuuo3o added BE 백엔드 API API 구현 labels Nov 8, 2024
@jinddings jinddings deleted the feature/api/register-#26 branch November 15, 2024 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API API 구현 BE 백엔드
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BE] 1.03 회원가입 API 구현
3 participants