-
Recent Posts
Archives
- December 2024
- July 2023
- February 2023
- October 2022
- February 2021
- August 2020
- July 2020
- February 2020
- June 2019
- May 2019
- April 2019
- March 2019
- January 2019
- October 2018
- July 2018
- June 2018
- April 2018
- March 2018
- December 2017
- December 2016
- June 2016
- May 2016
- April 2016
- March 2016
- December 2015
- October 2015
- September 2015
- June 2015
- April 2015
- December 2014
- August 2014
- June 2014
- March 2014
- February 2014
- December 2013
- November 2013
- September 2013
- August 2013
- July 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
Categories
Meta
Category Archives: Javascript
Openapi Code Generator
nest.js 프로젝트시 Swagger 를 사용한다. 스웨거 사용시 api 스펙 문서를 생성할수 있는데 해당 문서로 Client Code ( feat axios )를 생성 할수 있다. 클라이언트 코드생성을 간단히 하는 방법을 정리 해본다. 1.OpenAPI Generator 설치 설치하는 방법은 여러가지로 제공 한다. homebrew 설치 … Continue reading
Posted in Javascript, nodejs
Leave a comment
TypeOrm Mysql bigint string
TypeOrm에선 기본적으로 bigint를 string 포맷으로 인식함 number로 인식하게 하기 위해선 bigNumberStrings: false 해줘야됨. https://typeorm.io/data-source-options#mysql–mariadb-data-source-options
Posted in Javascript, nodejs
Leave a comment
Centos6 nodejs 12.x 이상 버전 설치 방법
nvm 으로 노드 버전을 관리중 12.x 버전으로 업그레이드 하면서 문제가 생겼다. 에러 내용은 아래와 같다. 해당 에러는 GLIBC가 하위버전이 설치 되어서 그렇다 적어도 3.4.18이상은 있어야된다. 최신 libstdc++.so.6은 크롬 설치버전에서 라이브러리로 제공한다. 최신크롬 설치 파일경로는 /opt/google/chrome/lib64/libstdc++.so.6 위 링크에 있는 파일을 카피해준다. … Continue reading
Posted in Javascript, nodejs
Leave a comment
Puppeteer querySelector Wildcard 옵션으로 찾기
puppeteer evaluate 시 queryselector wildcard 사용법 Continue reading
Posted in Javascript, nodejs
Leave a comment
Nestjs ScheduleModule 사용시 주의 점
Nestjs 같은경우 CronJob을 간단히 구현 할수있는데 @Cron 어노테이션을 사용해서 구현한다. 나의 삽질로 해당 클론이 2번씩 호출되는 문제가 있었음.. 해당 서비스를 두군데 모듈(Module)에서 providers에 포함 시키니 그런 결과가 나옴. Cron이 포함된 서비스는 한군데 모듈에서만 포함시키자.
Posted in Javascript, nodejs
Leave a comment
javascript Promise all / race 차이점
const getMessage = async()=>{ } 작성중… Promise를 사용할때 보통 많이 실수하는 부분이 Promise iterable 객체를 처리할때 이다. 위의 예제에서 실행결과 Promise의 배열만 리턴해주게 된다. 이럴때 사용하는 메서드가 Promise.all or Promise.race 이다. 메서드 Promise.all(iterable) iterable 내의 모든 프로미스가 이행한 뒤 이행하고, 어떤 … Continue reading
Javascript Flow ? 사용예시
가끔 오픈소스를 보다보면 javascript 변수앞에 “?”선언 되어있는 경우가 있었는데 별생각 없이 지나치다 오늘에서야 그게 무슨 뜻인지 알았네.. =_=; https://flow.org/en/docs/types/primitives/?fbclid=IwAR1GTshwL0-EbO36zGJRP8asQi8ULWnbXLlw7-mbaSK4ygLWx8T4Oc6z8rU#toc-maybe-types
Posted in Javascript, react
Leave a comment
DOM API innerText 와 textContent 차이점
innerText 는 lions,tigers textContent 는 “lions,\n tigersand bears” 가 추출된다. 자세한 내용은 아래 링크에서 확인 https://kellegous.com/j/2013/02/27/innertext-vs-textcontent/ http://perfectionkills.com/the-poor-misunderstood-innerText/
Posted in Javascript, nodejs
Leave a comment
puppeteer Centos 7 문제 해결
1. lib dependencies 해결 https://chrome.richardlloyd.org.uk/ 2. sandbox 문제 해결 # cd to the downloaded instance cd /node_modules/puppeteer/.local-chromium/linux-/chrome-linux/ sudo chown root:root chrome_sandbox sudo chmod 4755 chrome_sandbox # copy sandbox executable to a shared location sudo cp -p chrome_sandbox /usr/local/sbin/chrome-devel-sandbox # export … Continue reading
Posted in nodejs
Leave a comment
모바일 디바이스 별 화면&스펙
안드로이드 화면사이즈 https://material.io/tools/devices/ ios 화면사이즈 http://iosres.com/ ios android 둘다 제공 http://screensiz.es/phone 해상도별로 테스해볼수있음 http://troy.labs.daum.net/
Posted in Javascript
Leave a comment