npm install -g express-generator@4


express projectName


cd projectName && npm install


SET DEBUG=projectName:* & npm start

http://127.0.0.1:3000

'nodejs' 카테고리의 다른 글

npm start  (0) 2017.09.13
nvm 설치  (0) 2017.09.12
DummyDB  (0) 2017.05.26
nodemon  (0) 2017.02.27
파일 경로  (0) 2017.02.27

var DummyDB = (function(){

var DummyDB = {};

var storage = [];

var count = 1;


DummyDB.get = function(id){

if(id){

id = (type of == 'string') ? Number(id) : id;


for(var i in storage)

{

if(storage[i].id == id)}

return storage[i];

}

else{

return storage;

}

}

}

});


DummyDB.insert = function(id){

data.id = count++;

storage.push(data);

return data;

});


DummyDB.remove = function(id){

id = (typeof id == 'string') ? Number(id) : id;


for(var i  inn storage) if(storage[i].id == id){

storage.splice(i,1);


return true;

}


return false;


});


return DummyDB;

})();

'nodejs' 카테고리의 다른 글

nvm 설치  (0) 2017.09.12
express  (0) 2017.05.26
nodemon  (0) 2017.02.27
파일 경로  (0) 2017.02.27
예외 발생시 node crash 시키지 않기  (0) 2017.02.27

http://blog.hanseomgi.com/entry/iOS%EC%97%90%EC%84%9C-host-%EB%B3%80%EA%B2%BD-%ED%85%8C%EC%8A%A4%ED%8A%B8%EB%A5%BC-%EC%9C%84%ED%95%B4-Fiddler4%EB%A5%BC-%ED%99%9C%EC%9A%A9%ED%95%9C-HTTPS-Proxy-%EC%84%9C%EB%B2%84-%EB%A7%8C%EB%93%A4%EA%B8%B0

'Android' 카테고리의 다른 글

Online mysql table to java class generator  (0) 2018.04.19
apk 설치  (0) 2017.06.07
view 가운데 놓기  (0) 2017.04.23
서비스  (0) 2017.02.12
앱종료시 저장 SharedPreferences  (0) 2017.02.12

+ Recent posts