본문 바로가기

programming

(47)
[React, OAuth] 리액트 Google 계정으로 로그인 구현. 참고자료https://velog.io/@049494/%EA%B5%AC%EA%B8%80-%EB%A1%9C%EA%B7%B8%EC%9D%B8 🔐 리액트로 구글 로그인 구현해보기 (Google OAuth)리다이렉트 주소를 서버가 아닌 클라이언트로! 서버로 되어 있으면 클라이언트에서 code를 받을 수가 없다.velog.io https://support.google.com/accounts/answer/12849458?hl=ko Google 계정으로 로그인 - Google 계정 고객센터Google 계정으로 로그인의 이점 중요: Google 계정으로 로그인을 사용하려면 Google 계정이 필요합니다. Google 계정이란 Gmail, Drive, 기타 Google 앱에 사용하는 바로 그 계정입니다. Google 계..
[JavaScript] Promise Promise 동작은 오랜 만에 보면 자꾸 혼동이 되어서, 아래 정리해 두었다. (아래 코드는 "리액트를 다루는 기술 - 김민준 저" 15장에서 발췌하여, 일부 수정한 것이다.) function printLater(number) { console.log('new promise()'); return new Promise( (resolve, reject) => { if(number > 4) { return reject('number is greater than 4'); } setTimeout( () => { console.log(number); resolve(number + 1); }, 1000 ) } )}printLater(1).then(num => prin..
[React] vscode snippet - classmate, container Classnames shortcut,Redux container shortcut아래 사이트를 활용하면 편하게 제작할 수 있다.https://snippet-generator.app/ snippet generatorSnippet generator for Visual Studio Code, Sublime Text and Atom. Enjoy :-)snippet-generator.app { // Place your snippets for javascript here. Each snippet is defined under a snippet name and has a prefix, body and // description. The prefix is what is used to trigger the snippet..
[mongoDB v7] 2. Robo 3T client 설치, 실행 # 다운로드, 설치https://robomongo.org/ Robo 3T | Free, open-source MongoDB GUI (formerly Robomongo)Read by Dmitry Schetnikovichrobomongo.org # 개인 정보 입력, sign-up # add connection
[mongoDB v7] 1. server 설치, config, 실행 윈도우 11 64bit 에서 mondoDB server 설치 # 서버 설치 경로   https://www.mongodb.com/try/download/community Try MongoDB Community EditionTry MongoDB Community Edition on premise non-relational database including the Community Server and Community Kubernetes Operator for your next big project!www.mongodb.com   mongodb v7.0.16  # config 중 오류 ?  "The domain, user name and/or password are incorrect. Remember to u..
axios@1 import 시, Cannot use import statement outside a module 발생 대처 방법 redux에서 import axios from 'axios';Uncaught SyntaxError: Cannot use import statement outside a module (at bundle.js:38714:2) 1.x 버전의 axios가 node 환경용 commonJS가 아닌 ES Module로 빌드되었는데, jest는 node 환경에서 동작하기 때문에 오류가 발생한다고 함.https://github.com/axios/axios/issues/5101 package.json을 아래와 같이 수정하면 된다고 해서 해봤으나 효과 없음."test": "react-scripts test --transformIgnorePatterns \"node_modules/(?!axios)/\"", 아래와 같이 0.x..
[React] React Developer Tools - Components 탭에 아무것도 안 나올 때 React로 개발한 페이지인데, Components 탭에 아무 것도 안 나올 때에 대응 방법; package.json에 아래와 같이 입력한다."scripts": { ... "build": "react-scripts build && GENERATE_SOURCEMAP=true", ...}
OpenCascade - User Guides - 2. Modeling Data - 7. Bounding boxes https://dev.opencascade.org/doc/occt-7.7.0/overview/html/occt_user_guides__modeling_data.html#occt_modat_6 Open CASCADE Technology: Modeling DataIntroduction Modeling Data supplies data structures to represent 2D and 3D geometric models. This manual explains how to use Modeling Data. Geometry Utilities Geometry Utilities provide the following services: Creation of shapes by interpolation and app..