Node

From Wiki2

token authentication

http://www.kdelemme.com/2014/03/09/authentication-with-angularjs-and-a-node-js-rest-api/

        1. forever
   forever stop server2.js
   ps al
   kill -KILL pid 
   root@node1:/home/stuff2getapi/s2g-api# (master) forever list
   info:    Forever processes running
   data:        uid  command                      script     forever pid   logfile                 uptime
   data:    [0] DykF /root/.nvm/v0.10.25/bin/node server2.js 28939   28944 /root/.forever/DykF.log 1:1:2:21.834
   tail -f /root/.forever/DykF.log

require, exports and module.exports

when to use node

node cors

express

http://expressjs-book.com/forums/topic/express-js-sessions-a-detailed-tutorial/

http://stackoverflow.com/questions/18708428/how-to-do-authentication-with-node-js-and-mean-stack

win7

https://github.com/joyent/node/wiki/Installation

64bit version: http://nodejs.org/dist/latest/x64/node.exe

  • is in /wamp/bin/node
  • installed npm there too
  • added it to path
  • to test: from git bash> node hellonode.js starts server, see page at http://127.0.0.1:8124/

homebuntu

http://ariejan.net/2011/10/24/installing-node-js-and-npm-on-ubuntu-debian/

yeoman