전체 글
-
IntelliJ에서 vue.js 시작하기프로젝트/vue.js 2023. 5. 11. 00:01
[1] intelliJ로 vue.js 프로젝트 시작하기 [2] vue.js spring boot server와 통신하기 개요 IntelliJ를 활용하여 vue.js 프로젝트를 만들어나가는 과정을 기록하려 합니다. 현재 node와 vue모두 설치되어 있지 않습니다. node --version zsh: command not found: node vue --version zsh: command not found: vue HomeBrew로 Node 설치 brew install node node --version v19.7.0 Vue.js는 Node.js 환경에서 동작하기 때문에, Node.js를 설치해야 합니다. Node.js는 Vue.js 개발에 필요한 npm(Node Package Manager)을 포함하고..
-
[NHN FORWARD 22]DDD 뭣이 중헌디?세미나, 영상 요약정리 2023. 5. 10. 00:01
https://www.youtube.com/watch?v=6w7SQ_1aJ0A NHN Dooray의 협업서비스개발그린팀 정명주 님의 발표를 요약한 내용입니다. DDD에 대한 오해 DDD는 Domain Driven Design의 약자입니다. 3년 전에 DDD 전략적 패턴에 대해 발표를 하였고 여기에만 함몰되는 경우가 많습니다. AS-IS 이번 도면 서비스가 중요하니까 DDD로 개발하자고~ Aggregate, Domain-Event, Repository를 이용해서 도메인 모델을 만들어서~ TO-BE 이번에는 도면 도메인이 중요하니까 전체적으로 DDD(전략적 설계)를 통해서 전체 관계를 다시 정리하고, 지식 탐구 세션을 통해서 영향받는 모델을 다시 살펴보자고~ AS-IS처럼 이야기하는 것보다는 TO-BE처럼 ..
-
API 설계 우선 방식과 OpenAPI Specification세미나, 영상 요약정리 2023. 5. 9. 00:01
https://www.youtube.com/watch?v=28Tz7gos5DQ NHN Cloud 메시징플랫폼개발팀의 신진호 님의 영상을 요약한 내용입니다. API 우선 방식(API First) 우선 전략과 전술에 대해 먼저 설명합니다. 전략 : 어떤 목표를 위해 어떻게 나아갈지에 대한 큰 틀 전술: 어떠한 목적을 달성하기 위한 수단이나 방법 API First를 전략에 비유하고, Code First를 전술에 비유합니다. API First 방식이라고도 하며 first는 서비스 기획, 개발 시 가장 중요하게 고려함을 뜻합니다. 이와 대비대는 방법으로 Code first로 기능개발을 먼저로 두고 API는 제공하기 위한 수단으로 활용합니다. API 설계 우선 방식 (API Design First) API Firs..
-
로그인에 사용하는 OAuth: 과거, 현재 그리고 미래세미나, 영상 요약정리 2023. 5. 8. 00:01
https://www.youtube.com/watch?v=DQFv0AxTEgM&t=1692s NHN팀의 회원플랫폼개발팀의 안하운 님의 세션을 듣고 요약하고자 합니다. 인증(Authentication)이란? 경찰 : 안녕하세요, 성함이 어떻게 되시나요? 홍길동: 제 이름은 홍길동입니다. 홍길동: 경찰청 직인이 찍힌 운전면허증이 있습니다. 경찰 : 네, 확인하였습니다. 인가(Authorization)이란? 대리기사: 대리운전 서비스를 해 드리기 위해 자동차 사용 권한이 필요합니다. 홍길동: 제 자동차 키를 드릴 테니 대리운전해 주세요 Oauth란 무엇인가? 가장 많이 사용하는 사례는 소셜 로그인입니다. (네이버, 카카오, 구글, 페이스북, 애플 등등) OAuth가 발전하고 바뀌게 된 배경과 동기를 알아보고자..
-
Trunked Based DevelopmentGit 2023. 5. 7. 00:01
Trunked Based Development란? trunk(main or develop)이라 지칭하는 1개의 브랜치에 모든 개발자가 commit(PR)하고, Release는 별도의 브랜치로 관리한느 개발 방법입니다. 여기서 말하는 trunk란 나무의 줄기를 의미하는 단어로, 소프트웨어에서는 메인라인 또는 마스터 브랜치를 의미합니다. 보통 나무의 줄기에는 여러 가지(branch)가 뻗어나가는 구조를 가지며 우리가 흔히 아는 feature branch들이 될 수 있을 것 같습니다. TBD의 목표 브랜치 관리에 드는 리소스가 대폭 절약된다, 각자 자신이 맡은 feature branch를 main branch와 싱크를 맞추면 된다. 짧은 주기로 main에 머지되기 때문에, 머지 시 발생하는 변경이 작아집니다...
-
쿠폰 발급을 위한 Redis Set Document 읽기프로젝트/선착순 쿠폰 발급 시스템 2023. 5. 6. 00:01
개요 목표는 1000개의 쿠폰을 미리 만들어두는 것이 목표입니다. 첫 번째로 RDB와 Redis 중 어떤 DB를 사용할지 고민했습니다. 레디스는 인메모리 DB이며 싱글스레드이기 때문에 성능과 동시성을 고려하여 레디스를 사용해보고자 합니다. 여기서 Set을 활용하여 미리 1000개의 쿠폰을 구성해 두고 pop 하면서 해결해보고자 하며 이를 위해 문서를 읽어보고자 합니다. Redis Sets Redis Set은 정렬되지 않은 고유한 문자들로 구성되어 있습니다. 예를 들어 user 123과 user 456이 좋아하는 책의 아이디를 set에 저장할 수 있습니다. > SADD user:123:favorites 347 (integer) 1 > SADD user:123:favorites 561 (integer) 1 ..
-
AWS MFA 설정AWS 2023. 5. 5. 00:01
개요 AWS 계정은 과금이 발생할 수 있다. 즉, 해킹당했을 때 위험부담이 크다. 따라서 보안설정을 수행하고자 합니다. MFA란? Multi Factor Authentication의 약자로 인증 시 추가적인 보안이 적용될 수 있도록 구성할 수 있습니다. 보안 자격 증명으로 이동 MFA 할당 모바일 디바이스 또는 컴퓨터에 설치된 Authenticator 앱 선택 Authenticator 앱 설치 QR 코드 스캔 후 숫자 등록 사용하는 애플리케이션에서 QR 코드를 스캔한 후 6자리 숫자 코드를 한 번 입력하고 시간이 만료된 후 새로운 6자리 숫자코드를 입력하도록 합니다. 인증 완료시 이후 다시 로그인 다시 로그인 시 MFA 코드를 입력해야 합니다. 참고자료 https://aws.amazon.com/ko/bl..
-
Embedded Redis 구성하여 테스트 수행하기프로젝트/선착순 쿠폰 발급 시스템 2023. 5. 4. 00:01
개요 로컬에서 redis를 테스트하기 위해 embedded redis를 구축하고자 합니다. h2와 비슷하게 embedded redis를 활용하면 프로젝트를 수행하기 위해 특별한 작업 없이 git clone만 받으면 바로 로컬/개발을 할 수 있게 됩니다. 사용 기술 Spring Data Redis Redis를 JPA Repository를 사용하듯이 인터페이스 제공 Lettuce Redis Java Client Jedis는 업데이트가 거의 되지 않음 Embedded Redis H2와 같은 내장 Redis build.gradle.kts //redis implementation("it.ozimov:embedded-redis:0.7.2") implementation("org.springframework.boot:..