devwiki:nodejs

Differences

This shows you the differences between two versions of the page.


Previous revision
devwiki:nodejs [2021/09/04 17:51] (current) – [Intro to Node.js] ying
Line 1: Line 1:
 +====== Intro to Node.js ======
  
 +  * (fr. LearnCode) https://www.youtube.com/watch?v=pU9Q6oiQNd0
 +  * (fr. NodeJS Fan) https://www.youtube.com/watch?v=FVdH9YcB3Dg
 +
 +  * node.js at godaddy: http://www.cgi-node.org/docs/cgi-node-on-godaddy-tutorial#TOC-Introduction-
 +
 +  * zero to hero tutorial: https://www.youtube.com/watch?v=czmulJ9NBP0
 +
 +**Portable Node.js**
 +
 +  * like python, you can make it portable, 
 +    - download zip version (32 bit for best compatible for all machines): https://nodejs.org/en/download/
 +    - launch cmd with your custom path bat file (here I include a git as well) <code dos>
 +set path=%PATH%;D:\cutom_app_path_to\node;D:\cutom_app_path_to\PortableGit\bin
 +cmd
 +</code>
 +
 +**basic node cmd**
 +  * ctrl+L : clear the node cmd screen
 +  * .editor : a tmp full editor to run multi-line code
 +    * ctrl+d : to finish above editor
 +    * .break : to get out of code in above editor
 +  * .save : save history to a file
 +  * .load : load code from a file
 +  * _ : last stored value
 +
 +**Node.js concept**
 +  * npm install: will localized all modules for local project, like python lib but local copy for each project (like python, module has version history, some project may have different version, but seems various js lib version have bigger compatibility change compared to python modules)
 +====== Application Dev Example ======
 +
 +  * Node.js Real Time Chat: https://www.youtube.com/watch?v=QISU14OrRbI&list=PLfdtiltiRHWHZh8C2G0xNRbcf0uyYzzK_
 +  * another 10 project: https://www.youtube.com/playlist?list=PLO-hrPk0zuI18xlF_480s6UiaGD7hBqJa