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

deploy v0.1 추가 #144

Merged
merged 40 commits into from
Nov 13, 2024
Merged

deploy v0.1 추가 #144

merged 40 commits into from
Nov 13, 2024

Conversation

swkim12345
Copy link
Collaborator

close #61

✅ 작업 내용

  • deploy 추가
  • front, backend docker 추가.

📸 스크린샷(FE만)

📌 이슈 사항

  • 현재 docker compose 가 안 되어 있고, env 주입이 되지 않아 설정이 완료된 상태가 아님.
  • 나중에 env파일을 fe, be에서 받아서 주입해야함

🟢 완료 조건

✍ 궁금한 점

😎 체크 사항

  • label 설정 확인
  • 브랜치 방향 확인

Copy link
Collaborator

@xjfcnfw3 xjfcnfw3 left a comment

Choose a reason for hiding this comment

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

수고하셨습니다! 👍👍👍


controller = module.get<KoreaStockInfoController>(KoreaStockInfoController);
});

Copy link
Collaborator

Choose a reason for hiding this comment

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

여기는 따로 테스트 환경만 세팅해 놓은 건가요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

nestjs-cli로 만들어 기본으로 나온 건데, 일단 삭제처리하도록 하겠습니다.

import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';

@Entity()
export class KospiMaster {
Copy link
Collaborator

Choose a reason for hiding this comment

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

해당 엔티티가 주식 정보를 나타내는 엔티티인가요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

네 임시로 사용하던 entity인데, 최신 erd에 맞춰서 업데이트하겠습니다.

const extractedFile = path.join(baseDir, 'kosdaq_code.mst');

await this.downloadFile(
'https://new.real.download.dws.co.kr/common/master/kosdaq_code.mst.zip',
Copy link
Collaborator

Choose a reason for hiding this comment

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

이런 url 같은것은 따로 상수나 env로 넣는 것이 좋다고 생각합니다!

export class OpenapiScraperService {
private readonly config: typeof openApiConfig;
public constructor() {
this.config = openApiConfig;
Copy link
Collaborator

Choose a reason for hiding this comment

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

7번 라인에 바로 넣지 않고 생성자에 내부에 주입을 하는 이유가 있나요?

});

for await (const row of rl) {
const shortCode = row.slice(0, 9).trim();
Copy link
Collaborator

Choose a reason for hiding this comment

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

row.slice().trim() 코드가 반복되네요. 함수로 빼면 될거 같아요

Copy link
Collaborator

Choose a reason for hiding this comment

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

그리고 매직넘버도 상수화 하는 것은 어떤가요?

Copy link
Collaborator

@baegyeong baegyeong left a comment

Choose a reason for hiding this comment

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

LGTM 👊

Copy link
Collaborator

Choose a reason for hiding this comment

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

이 파일이 추가된 이유가 궁금합니다!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

로컬상에서 prittier 적용이 안 되서 사용하는 파일인데 .gitignore에 없나 보네요 ㅠ 추가할게요

});

for await (const row of rl) {
const shortCode = row.slice(0, 9).trim();
Copy link
Collaborator

Choose a reason for hiding this comment

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

그리고 매직넘버도 상수화 하는 것은 어떤가요?

@swkim12345 swkim12345 added the 🌏 deploy 배포 관련 label Nov 13, 2024
@swkim12345 swkim12345 merged commit e5a3de4 into dev-be Nov 13, 2024
@swkim12345 swkim12345 linked an issue Nov 18, 2024 that may be closed by this pull request
3 tasks
@swkim12345 swkim12345 deleted the feature/deploy branch December 5, 2024 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌏 deploy 배포 관련
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] - 배포를 ncloud에 할 수 있다.
3 participants