Nodejs9 NodeJS Debuggin 하기 ( using eclipse ) 1. eclipse 에서 run 시킨다. ( debug 로 수행하지 않음. ) 2. chrome 에서 아래 url 을 입력한다. chrome://inspect 3. 해당 Remote Tagert 을 선택하여 하단에 inspect 를 누른후 debugging 한다. ㅠㅠ 이렇게 간단했다니... 2019. 3. 13. Node JS Debugging 설정 1. Run Configure 에서 "--inspect" 를 추가한다. 2. chrome 에서 "chrome://inspect/#devices" 를 url 창에 입력한다. 3. target 에서 해당 js inspect를 누르면 DevTools 가 수행되며 파일 시스템 쪽에서 해당 소스를 연결하면 끝. 2018. 8. 22. body Height 를 컨텐츠 크기에 맞추기 선언하지 않으면 해당 body 는 height 를 100%로 처리함. 2018. 7. 17. RMySQL 설치 1. yum install mysql-devel.x86_64 2. R명령어 실행 $R >install.packages('RMySQL',type='source') 3. 접속 테스트 con library(RMySQL) > con test.table dbDisconnect(con) 2018. 6. 29. Nodejs 공휴일 얻어오기 패키지 date-holidays 를 사용한다.단 여기에는 오류가 있다. 설날/추석이 지정날짜로 3일이 잡혀 있어서data/countries/KR.yaml 을 수정한다. days: 01-01: _name: 01-01 # 1st day of 1st lunar month korean 12-0-30 P3D: name: en: Korean New Year ko: 설날 03-01: name: en: Independence Movement Day ko: 3·1절 05-05: name: en: Children's Day ko: 어린이날 korean 4-0-8: name: en: Buddha's Birthday ko: 석가탄신일 06-06: name: en: Memorial Day ko: 현충일 07-17: _name:.. 2018. 4. 2. fetch 함수에서 cross site 관련 권한 오류 발생 fetch 함수에서 cross site 관련 권한 오류 발생시에 mode:"no-cors" 를 전송 option 에 넣어주면 됨. 2018. 3. 22. express 시작하기 1, express 생성하기 설치 npm install -g express-generator 2. project 생성 ( ejs 사용 할 경우 ) express --ejs project 3. 필요 module 설치하기 #cd project #npm install 4. 구동하기 node ./bin/www or npm start 5. 설정 가. Port 변경 vi ./bin/www var port = normalizePort(process.env.PORT || '3000'); 2018. 2. 7. socket io 에서 WebSocket connection to 'wss: 오류 발생시 NGINX 에서 redirect 시킬 경우 해당 부분에서 오류가 발생한다. WebSocket connection to 'ws://.../socket.io/?EIO=2&transport=websocket&sid=p3af7ZNfvogtq6tAAAG0' failed: Error during WebSocket handshake: Unexpected response code: 400. 이럴경우 하단의 3개의 Header를 설정시켜 주면 발생하지 않는다. location / { .......................... proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } 2018. 1. 16. get Nodejs MYSQL update Counter connection.query(sql, [var1,var2], function(err, results) { numRows = results.length; });If it's an update/delete query, the returned dictionary will have an affectedRows variable.connection.query(sql, [var1,var2], function(err, result) { numRows = result.affectedRows; }); 2017. 11. 20. 이전 1 다음