posted by 뚱2

자기 자신이 자신을 업그레이드 한다는게 이상하지 않나?


#최신버전으로 업그레이드 한다.

sudo npm install -g npm


'JavaScript > NodeJS' 카테고리의 다른 글

[NodeJS] Node js 기본 사용법  (0) 2015.05.09
[NodeJs] Ryan Dahl의 Node.js 소개  (0) 2014.01.28
[Node.js] Node-webkit 링크  (0) 2014.01.15
[Node.js] Render ejs with express  (0) 2014.01.13
[Node.js] Express - API 가이드 문서  (0) 2014.01.13
posted by 뚱2

링크: http://pyrasis.com/nodejs/nodejs-HOWTO#v8--

posted by 뚱2

링크 : https://github.com/rogerwang/node-webkit


이제 자바스크립트로 어플리케이션을 만드는 날이 왔구나.

연구해 봐야겠다.

posted by 뚱2

링크 : https://github.com/visionmedia/ejs

링크 : http://runnable.com/UTlPPF-f2W1TAAEa/render-ejs-with-express


var express = require('express');

var app = express();



// Register ejs as .html. If we did

// not call this, we would need to

// name our views foo.ejs instead

// of foo.html. The __express method

// is simply a function that engines

// use to hook into the Express view

// system by default, so if we want

// to change "foo.ejs" to "foo.html"

// we simply pass _any_ function, in this

// case `ejs.__express`.


app.engine('.html', require('ejs').__express);


// Optional since express defaults to CWD/views


app.set('views', __dirname + '/views');


// Without this you would need to

// supply the extension to res.render()

// ex: res.render('users.html').

app.set('view engine', 'html');


// Dummy users

var users = [

  { name: 'tobi', email: 'tobi@learnboost.com' },

  { name: 'loki', email: 'loki@learnboost.com' },

  { name: 'jane', email: 'jane@learnboost.com' }

];


app.get('/', function(req, res){

  res.render('users', {

    users: users,

    title: "EJS example",

    header: "Some users"

  });

});



app.listen(80);

console.log('Express app started on port %d', 80);


posted by 뚱2

링크 : http://firejune.io/express/guide

posted by 뚱2

링크 : https://github.com/Chevex/UglifyJS2/commit/7348facbe994aa1909a276b4be54f13c7f01e079



IntelliJ IDEA를 사용하고 있는데 Node Module을 만들고 구동했더니


콘솔에 [ReferenceError: Process is not defined] 발생했다.


구글링 모듈 Root의 node_modules 하위의 tools/node.js의 'vm.createContext'을 찾아서 아래의 하이라이팅 부분(4, 5 라인)을 


추가해 준다.


var UglifyJS = vm.createContext({

      sys           : sys,

      console       : console,

      process       : process,

      Buffer        : Buffer,

      MOZ_SourceMap : require("source-map")

});


'JavaScript > NodeJS' 카테고리의 다른 글

[Node.js] Render ejs with express  (0) 2014.01.13
[Node.js] Express - API 가이드 문서  (0) 2014.01.13
[Node.js] Node download  (0) 2014.01.10
[Node.js] Node.js tutorial  (0) 2013.04.23
[Node.js] Node.js 한글 페이지  (0) 2012.02.09
posted by 뚱2

[Node.js] Node download

JavaScript/NodeJS 2014. 1. 10. 10:21

Download : http://nodejs.org/download/

Documentation : http://nodejs.org/api/

posted by 뚱2

[Node.js] Node.js tutorial

JavaScript/NodeJS 2013. 4. 23. 12:38

링크 : http://crazia.tistory.com/955 

posted by 뚱2
children: [
    {
    title: null, // (required) Displayed name of the node (html is allowed here)
    key: null, // May be used with activate(), select(), find(), ...
    isFolder: false, // Use a folder icon. Also the node is expandable but not selectable.
    isLazy: false, // Call onLazyRead(), when the node is expanded for the first time to allow for delayed creation of children.
    tooltip: null, // Show this popup text.
    href: null, // Added to the generated < a > tag.
    icon: null, // Use a custom image (filename relative to tree.options.imagePath). 'null' for default icon, 'false' for no icon.
    addClass: null, // Class name added to the node's span tag.
    noLink: false, // Use < span > instead of < a > tag for this node
    activate: false, // Initial active status.
    focus: false, // Initial focused status.
    expand: false, // Initial expanded status.
    select: false, // Initial selected status.
    hideCheckbox: false, // Suppress checkbox display for this node.
    unselectable: false, // Prevent selection.
    // The following attributes are only valid if passed to some functions:
    children: null // Array of child nodes.
    // NOTE: we can also add custom attributes here.
    // This may then also be used in the onActivate(), onSelect() or onLazyTree() callbacks.
    },
    […]
]


'JavaScript > dynaTree' 카테고리의 다른 글

[dynatree] TREE TO TREE DRAG AND DROP 예제  (0) 2012.02.21
[dynatree] Option 옵션  (0) 2012.02.09
[dynatree] dynatree (jQuery 기반의 tree-plugin)  (0) 2012.02.08
posted by 뚱2
posted by 뚱2