GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing threadbuilder.wordpress.com — threadbuilder Author Archives: threadbuilderOpenapi Code Generatornest.js 프로젝트시 Swagger 를 사용한다. 스웨거 사용시 api 스펙 문서를 생성할수 있는데 해당 문서로 Client Code ( feat axios )를 생성 할수 있다. 클라이언트 코드생성을 간단히 하는 방법을 정리 해본다. 1.OpenAPI Generator 설치 설치하는 방법은 여러가지로 제공 한다. homebrew 설치 … Continue reading → TypeOrm Mysql bigint stringTypeOrm에선 기본적으로 bigint를 string 포맷으로 인식함 number로 인식하게 하기 위해선 bigNumberStrings: false 해줘야됨. https://typeorm.io/data-source-options#mysql–mariadb-data-source-options Mongodb Select Query 기본 예제– 쿼리 조건절1. “$lt” ( SQL의 < 연산 ) > db.user.find( { “age” : { “$lt” : 20 } } ) : user Collection에서 나이가 20세 보다 작은 사용자를 찾아라 2. “$lte” ( SQL의 <= 연산 ) >db.user.find( { … Continue reading → AWS SSH Tunneling 을 이용한 리소스 접근AWS DocumentDB(MongoDB) , AWS ES ( ElasticSearch ) 등의 서비스들은 EC2 와 다르게 외부 PC( 개발노트북등등..)에서 접근이 안되게 되어있다. 접근 방법으로 SSH Tunnel 을 제공하는데 해당 기능이 쓰기 굉장히 불편하다. SSH Tunneling의 도식이다. 로컬에서 ssh 시작 ssh -i {my-key.pem} ec2-user@{my-aws-public-domain} … Continue reading → Centos6 nodejs 12.x 이상 버전 설치 방법nvm 으로 노드 버전을 관리중 12.x 버전으로 업그레이드 하면서 문제가 생겼다. 에러 내용은 아래와 같다. 해당 에러는 GLIBC가 하위버전이 설치 되어서 그렇다 적어도 3.4.18이상은 있어야된다. 최신 libstdc++.so.6은 크롬 설치버전에서 라이브러리로 제공한다. 최신크롬 설치 파일경로는 /opt/google/chrome/lib64/libstdc++.so.6 위 링크에 있는 파일을 카피해준다. … Continue reading → Puppeteer querySelector Wildcard 옵션으로 찾기puppeteer evaluate 시 queryselector wildcard 사용법 Continue reading → Nestjs ScheduleModule 사용시 주의 점Nestjs 같은경우 CronJob을 간단히 구현 할수있는데 @Cron 어노테이션을 사용해서 구현한다. 나의 삽질로 해당 클론이 2번씩 호출되는 문제가 있었음.. 해당 서비스를 두군데 모듈(Module)에서 providers에 포함 시키니 그런 결과가 나옴. Cron이 포함된 서비스는 한군데 모듈에서만 포함시키자. javascript Promise all / race 차이점const getMessage = async()=>{ } 작성중… Promise를 사용할때 보통 많이 실수하는 부분이 Promise iterable 객체를 처리할때 이다. 위의 예제에서 실행결과 Promise의 배열만 리턴해주게 된다. 이럴때 사용하는 메서드가 Promise.all or Promise.race 이다. 메서드 Promise.all(iterable) iterable 내의 모든 프로미스가 이행한 뒤 이행하고, 어떤 … Continue reading →
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
|
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |