본문 바로가기

공부낙서장52

24.10.16 면접 전 문제풀이 복기 const a = "Hello"; function outer() { let a = "bye"; console.log(a); function inner() { console.log(a); } inner(); } outer(); // bye bye console.log(a); // Hellolet someValue = 'hello'; function outerFunc() { console.log(this.someValue); this.innerFunc(); } const obj = { someValue : 'world', outerFunc, innerFunc : function() { console.log("innerFunc's this : ", this); } } obj.outerFunc(); // wor.. 2024. 10. 16.
[emotional] API 명세서 /users/registerhttp method: postreq.body { "email" : "string", "password": "string", "confirmPassword": "string", "verificationCode": "string"}status: 200res.body { {"message":"인증코드가 발송되었습니다."}}status: 400 // 존재하는 이메일일 때res.body { { message: "이미 등록된 이메일입니다." }} /users/loginhttp method: postreq.body { "email": "string", "password": "string"}status: 200res.body { { message: "로그인 성공" }}.. 2024. 10. 7.
[emotional] 프로젝트 아키텍처 & ERD 2024. 10. 6.
[emotional] 왜 내 DB table은 계속 수정되는가. 당연히 초기 기획이나 설계가 미흡해서.욕심만 그득하다보니 하나씩 추가하다보니 기존있던 DB table구조에 추가되고, 수정되고, 새로운 table이 생기고...현재는 회원탈퇴 API까지 구현은 해놨고 포스트맨으로 테스트 시에 잘 동작하는거 까지 확인했다.일단 기획상으로는 CRUD도 가능하게 하려고 준비 중인데 현재는회원가입, 로그인을 사용할 수 있고 회원가입 시에 이메일 인증 코드 발송 > 이메일 인증확인 > form값 입력 후 > 회원가입 완료의 순서를 따르고 있으며 회원가입 후에 즉시 로그인이 가능하다. 2024. 10. 4.