OpenSource(181)
-
[node.js] Express , node api 참고 사이트 및 약간의 소스분석!
express api에 대해 내용이 있다. 내용들이 많이 달라진 듯 하다..헐~http://expressjs.com/4x/api.html node는 요 사이트!http://nodejs.org/api/ 소스를 분석 해보자!아웃사이더님 책 소스 분석 내용..express site의 api를 가도...사라진 것들이 많이 보인다..킁;var express = require('express'), routes = require('./routes') // express module를 express변수에 할당! , routes변수에는 routes 디렉토리를 할당! var app = module.exports = express.createServer(); app.createServer(); // error!! 달라진 것..
2014.05.03 -
node.js Mac OS에서 설치
ㅎㅎㅎ 본격적으로 개발을 하기 위해서 Mac Pro 레티나를 질렀습니다! 예~~~ 장난 아니네요 정말...이런 신세계가...ㅠ.ㅠ... 뭔가를 개발 하나 해봐야겠다는 의욕이 넘처나네요^0^ 자! 맥북에서의 첫 포스팅입니다! ㅎㅎㅎ ㄱㄱ~ 우선! nodejs site로 가셔서 다운을 받도록 합니다. 패키지로 받으시면 됩니다. 바이너리 아닙니다~다운로드(Download)를 꾹~눌러줍니다. 그리고나서 Mac에 맞는 패키지를 다운 받습니다..pkg 를 받으시면 됩니다~^0^good~ 그리고나서 다운받아진 녀석을 클릭하여 다음다음 신공으로 셋팅 해줍니다^0^ 설치가 완료되면 아래와 같습니다. version 확인 npm도 자동으로 깔린다..와우!! 자! npm이 있으니! forever와 express등을 셋팅 해주..
2014.05.01 -
ㅠ ㅠ 이런..
curl http://npmjs.org/install.sh | sh 이 먹히질 않아서...curl 좀 설치해서 사용하려고 하는데...sudo -i 옵션이 안먹히네요......OTL server : CentOS step 1. http://curl.haxx.se/download.html 로 가셔서 다운을 받습니다.CentOS는 패키지가 없으므로..아래에서 다운을 받아서!! 처리하면 되겠습니당~ 리눅스에 업로드를 하신 뒤에압축을 풀어줍니다 살포시~tar xvfz curl-7.36.0.tar.gz 아래의 명령어를 쳐줍니다.$ ./configure$ make$ make install root 권한을 얻어서..다시 정리하도록 하겠습니다..ㅠ ㅠ - END -
2014.04.30 -
ResourceBundleMessageSource, ReloadableResourceBundleMessageSource
ResourceBundleMessageSource 개요 1차 처리 버그?? 처 리 > ReloadableResourceBundleMessageSource 때문에 최적화 팀에서 빼달라고 연락이 왔다. 바로.. 5초마다 계속 번들을 읽어들이고 캐시하는 옵션 때문이였다. > 기존> WEB-INF/messages/MessageResources 변경> WEB-INF/messages/MessageResources > 번들을 찾지 못하는 오류가 났다...Why??? ㅠ _ ㅠ... 이유는 잘모르겠다..설정은 잘한것 같은데... 참고 사이트 : http://www.mkyong.com/spring/spring-resource-bundle-with-resourcebundlemessagesource-example/ > 처리..
2014.04.24 -
[node.js] subModule version up 시 문제
subModule version up 시 문제가 발생!! express라는 녀셕을 npm install express를 통해 상위 버전을 가져와서 셋팅 하였더니.. 소스상에서 app.configure()해주는 부분에 파라미터가 달랐다.. 기존은 파리미터가 2개, 새로 받은 것은 3개.. // as-is source app.configure('development', function(){ app.use(express.errorHandler()); }); // ERROR $ node logViewer.js error: Caught exception: TypeError: Object function (req, res, next) { app.handle(req, res, next); } has no method..
2014.04.21 -
[ERROR] Error: Cannot find module './lib/process'
node js 오류 아래의 오류내역은 퍼왔습니다. 내용은 동일! 참고 사이트 : http://stackoverflow.com/questions/9878375/error-cannot-find-module-lib-socket-io $ node server.js node.js:237 throw e; // process.nextTick error, or 'error' event on first tick ^ Error: Cannot find module './lib/socket.io' at Function._resolveFilename (module.js:333:15) at Function._load (module.js:280:25) at Module.require (module.js:357:17) at requ..
2014.04.21