일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 미라클모닝
- VPC
- docker
- 테스트코드
- 리스코프치환원칙
- 서브넷
- 단위테스트
- test code
- 도커
- javascript unit test
- TDD
- mock함수
- 라우팅테이블
- subnet
- mock객체
- 인터넷게이트웨이
- AWS
- jest.fn
- parameter group
- TypeScript
- forbetterme
- nestjs
- jest
- IPv4
- axios-mock-adaptor
- Unit Test
- axios mock
- JavaScript
- 의존관계역전원칙
- docker commands
- Today
- Total
목록Backend (26)
My Dream Being Visualized
※ 개인 공부를 위한 공간입니다. 틀린 부분 지적해주시면 감사하겠습니다 (_ _) 곧 런칭 준비중인 프로그램을 미리 쓰고 계시는 직장동료가 물었다. "회원가입하면, 제 비밀번호도 알 수 있어요?" 처음 회원가입 및 로그인 기능을 만들 때, 당연히 암호화를 해야 된다고 봐왔고 그렇게 했지만, 마음만 먹으면 몰래 저장하고 볼 수 있다는 생각이 머리를 스쳤다. 평범한 사람이 되거나, 나쁜 사람이 되는 건 한끗 차이인 것 같다. "클라이언트에서 요청이 SSL 인증서를 타고 https화 되서 서버에서 해쉬 알고리즘을 거쳐서 데이터베이스에 저장돼요." 라고 말하면 앞으로 아무 질문도 안 할것 같아서 "암호화 되서 뭔지 저도 알 수가 없어요!" 라고 간단하게 말씀드렸다. 다시 한번 회원가입 및 로그인 서비스를 만드는..
※ 개인 공부를 위한 공간입니다. 틀린 부분 지적해주시면 감사하겠습니다 (_ _) 모듈내 필요한 기능 회원가입 로그인 회원인증 기능에 따른 파일 구조 Controller Service Entity Repository JWT, Passport 모듈 및 파일 생성 nest g module auth 설명: auth와 관련된 기능을 담당할 모든 파일을 위한 모듈 & 폴더 생성 생성: auth -> auth.module.ts 기능: imports, exports, controllers, providers 명시 및 관리 nest g controller auth --no-spec 설명: auth 모듈 내 컨트롤러 생성 / --no-spec 옵션은 테스트 파일을 생성하지 않겠다라는 의미 생성: auth.controll..
※ 개인 공부를 위한 공간입니다. 틀린 부분 지적해주시면 감사하겠습니다 (_ _) TypeORM이란? TypeScript + ORM ORM(Object Relational Mapping) > SQL문을 최소한으로 작성하며 생산성을 높일지에 대한 고민이 담긴 기술, 객체와 관계형 데이터베이스를 자동으로 변형 및 연결하는 작업, 코드길이를 줄여줌(가독성 향상) TypeORM은 NodeJS에서 실행되고, TypeScript로 작성된 ORM 라이브러리이다. NestJS에서는 기본적으로 RDBMS를 사용할 때 TypeORM을 지원 Pure Javascript SQL vs TypeORM const sql = ` SELECT * FROM exampleTable.table WHERE title = 'test' AND ..
※ 개인 공부를 위한 공간입니다. 틀린 부분 지적해주시면 감사하겠습니다 (_ _) 도커를 접하게 된 계기 처음 EC2 서버에 파이썬 크롤러를 설치했던 기억이 난다. 20개의 EC2 서버를 띄어놓고 메모장에 git설치, 파이썬설치, 관련 라이브러리 설치 등 여러가지 명령어를 적어놓고 수동으로 복사/붙여넣기 했던 기억이 난다. 명색이 개발잔데 수동으로 복사/붙여넣기를 한다는 게 자존심이 상해서 자동으로 할 수 있는 방법이 없냐고 동료개발자에게 물었던 것이 처음 도커를 접하게 된 계기였다. 어떻게 동작하는지도 모르고 이미지와 컨테이너를 만들고 각 EC2에서 docker repository를 pull 해서 썼던 기억이 난다. 정말 신기하다고 생각하던 찰나, 만들어 놓은 EC2의 AMI(Amazon Machine..
※ 개인 공부를 위한 공간입니다. 틀린 부분 지적해주시면 감사하겠습니다 (_ _) 설정 .prettierrc 파일을 설정해주었다. (개인취향 추가..) 개인적으로 포매팅 안되어 있거나, 동작을 안 하면 스트레스를 받고 후속 진행을 못 하는 성격입니다..ㅜㅜ { "singleQuote": true, "trailingComma": "all", "printWidth": 80, "tabWidth": 2, "endOfLine": "lf", "bracketSpacing": true } workspace (현재 특정 폴더 안에서의 개별 설정) 설정도 필요하다. (javascript만 쓰면, 개인의 취향에 따라 default setting으로 설정할 수 있겠지만, 파이썬도 같이 즐겨쓰기 때문에 default 셋팅 보다..
※ 개인 공부를 위한 공간입니다. 틀린 부분 지적해주시면 감사하겠습니다 (_ _) Nest JS 란? Node.js 서버 측 애플리케이션 구축을 위한 프레임 워크 TypeScript로 빌드 및 지원 Express.js 프레임워크를 토대로 만들어졌다 NestJS를 백엔드로 선택한 이유에 대하여 현재까지, 아래의 백엔드 프레임워크를 사용해보았다. Python을 활용한 Django Rest Framework, NodeJS 기반 ExpressJS 두 프레임워크는 장단점이 확실했다. 틀이 잡혀 있냐 아니냐, 처음엔 MTV라는 개념도 알지 못하고 시작했던 공부를 위한 DRF 이후, 회사에서 무지 성으로 신입 개발자들끼리만 모여서 사용했던 Express.. 규모가 있는 서비스를 만들다보니, 개발자들마다 가독성을 위한..