본문 바로가기

분류 전체보기

(23)
Authentication 2/2 - Passport package ref. https://docs.nestjs.com/recipes/passport#implementing-passport-jwt Documentation | NestJS - A progressive Node.js frameworkNest is a framework for building efficient, scalable Node.js server-side applications. It uses progressive JavaScript, is built with TypeScript and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Readocs.nestjs.co..
Authentication (JWT 사용) 1/2 https://docs.nestjs.com/security/authentication Documentation | NestJS - A progressive Node.js frameworkNest is a framework for building efficient, scalable Node.js server-side applications. It uses progressive JavaScript, is built with TypeScript and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Readocs.nestjs.com> 0. JWT 토큰 사용 설정$ npm ..
문제해결 - [RDS] {database name} does not exist app.module.ts@Module({ imports: [ ConfigModule.forRoot({ isGlobal: true, }), TypeOrmModule.forRootAsync({ imports: [ConfigModule], useFactory: async (configService: ConfigService) => ({ type: 'mysql', host: configService.get('DB_HOST'), port: configService.get('DB_PORT'), username: configService.get('DB_USERNAME'), password: configServi..
[RiverPod] 2. State disposal ref. https://riverpod.dev/docs/essentials/auto_dispose Clearing cache and reacting to state disposal | Riverpod So far, we've seen how to create/update some state. riverpod.dev Provider.autoDispose 처럼 autoDispose 옵션을 단 경우, 더이상 해당 provider의 state 변화를 추적하는 리스너가 없는 경우 자동으로 state 가 폐기된다. autoDispose 옵션 유무와는 관계없이, state 가 변화할 경우 이전 state 는 폐기된다. 하지만, state 폐기 시 옵션을 추가하여 이전 state 에 대한 엑세스를 할 수도 있다. Pr..
[Riverpod] 1. Provider, Notifier, NotifierProvider, ref ref. https://riverpod.dev/ko/docs/essentials/side_effects 부가 작업 수행(Performing side effects) | Riverpod지금까지는 데이터를 가져오는 방법(일명 GET HTTP 요청 수행)만 살펴봤습니다.riverpod.dev The problem is, how do we update the state of a provider from within a consumer?  Naturally, providers do not expose a way to modify their state. This is by design, to ensure that the state is only modified in a controlled way and promot..
[Riverpod] 0. Riverpod overview https://riverpod.dev/ko/docs/essentials/passing_args 요청에 인자 전달하기 | Riverpod 이전 글에서 "provider"를 정의하여 간단한 GET HTTP 요청을 만드는 방법을 살펴봤습니다. riverpod.dev 공식문서중 Introduction 과 Essentials 항목의 문서들을 읽어보고 전체적으로 요약해보았다. 네모 블럭으로 감싼 영문은 문서의 내용을 발췌하였거나, Rivderpod 코드의 주석문의 내용을 발췌하였다. Flutter 를 사용하다 보면, 전역변수처럼 여러 스크린 사이에서 데이터를 공유해서 사용해야 할 때가 있다. 이를 구현하는 방법에는 여러가지가 있는데, 0. 화면마다 일일이 직접 파라미터 형태로 전달한다. 번거롭고, 유지보수관리가 힘..
React fetch API called 2 times on page load React JS를 공부하면서 fetch 요청이 두 번 가는 것을 확인 const getDetail = async () => { const json = await ( await fetch(`https://yts.mx/api/v2/movie_details.json?movie_id=${id}`) ).json(); setDetail(json.data.movie); setLoading(false); }; useEffect(() => { getDetail(); }, []); 코드에는 문제가 없는 것으로 파악 알고보니 developement mode 에서 빌드 + developement mode 에서 활성화되는 StrictMode 옵션 때문인 것이었다. 참고문헌 https://stackoverflow.com/ques..
Git commit & push VScode로 자기 깃허브 계정 repository 에 Commit & Push 0. git config git config --list git 설정 조회 후 user.name , user.email 정보가 없으면 추가해야한다 git config --global user.name "{username}" git config --global user.email "{email}" 1. git init vscode terminal 에서 git init 입력 2. commit & push (GUI)