front-server

# History

## 프로젝트 생성 방법

아래의 템플릿을 사용했습니다.

```shell
npx create-next-app --example with-typescript-eslint-jest front-server
  1. .git 을 제외하고 숨김파일까지 모두 찾아서 마이그레이션
  2. yarn 부분 모두 npm 으로 마이그레이션
  3. jest는 사용하지 않음으로 파일 및 의존성을 제거

# api-gateway

```markdown
# History

## 프로젝트 생성 방법

공식도구인 `@nestjs/cli` 를 사용했습니다.

```shell
nest new api-gateway

issue

build 후 dist/main 경로에 파일 없음

version을 기록하기 위해 tsconfig.json"resolveJsonModule": true 활성화 하여 package.jsonversion 속성을 import 하여 사용하게 되면서 build 시 src 디렉터리 외부의 파일을 끌어와야 하게 되었습니다.

때문에 dist 가 아래와 같이 생성되면서 "start:prod": "node dist/main" 의 경로를 수정하게 되었습니다.

./dist
 ├─src
 ├─package.json
 └─tsconfig.build.tsbuildinfo

pipeline

origin인 front-server 와 다른점

환경에 맞게 service에 연결해야 되기 때문에 환경변수가 추가되어 있습니다.

  1. k8s 디렉터리의 실제 pod를 배치하는 .yaml 시리즈에 STAGES 환경변수 추가
    1. 내부적으로 해당 환경 변수를 조립하여 svc으로 사용하기 때문에 의존성 파악 후 변경해야 합니다.

      {서비스 이름}.{process.env.STAGES}.svc.cluster.local


# todo-service

```markdown
# History

## 프로젝트 생성 방법

공식도구인 `@nestjs/cli` 를 사용했습니다.

```shell
nest new api-gateway

pipeline

origin인 front-server 와 다른점

내부망에서 돌기 때문에 아래의 선언이 삭제되었습니다.
즉, ingress-basic ns와 관련있는 리소스가 남아있으면 안됩니다.

  1. .github.workflows 디렉터리의 aks apply service for ingress 삭제
  2. k8s 디렉터리의 -external.yaml 시리즈 리소스 삭제

# mock-service

```markdown
# History

## 프로젝트 생성 방법

공식도구인 `@nestjs/cli` 를 사용했습니다.

```shell
nest new mock-service

pipeline

origin인 mock-service 와 다른점

내부망에서 돌기 때문에 아래의 선언이 삭제되었습니다.
즉, ingress-basic ns와 관련있는 리소스가 남아있으면 안됩니다.

  1. .github.workflows 디렉터리의 aks apply service for ingress 삭제
  2. k8s 디렉터리의 -external.yaml 시리즈 리소스 삭제

# oauth-server

```markdown
# History

## 프로젝트 생성 방법

1. `go mod init oauth-server`
1. `go get -u github.com/gin-gonic/gin`
1. `.vscode/launch.json` 에 `Launch Package` 템플릿으로 디버깅 환경 구축

이전에 사용했던 github project 생성 사진

깃허브 프로젝트1.png

깃허브 프로젝트2.png