Q: Welche Version hat eine installierte node.js Software?
node -v
Unsortierte Notizen zum Einstieg in node.js:
Für das allererste Kennenlernen von node.js (einschließlich npm und Express) gibt es einen "Absolute Beginner's Guide to Node.js".
Eine erste Hilfe für das Erstellen eines "Web-Servers" (ohne Nutzung von Express) gibt es eine einfache Einweisung.
Ein Tutorial mit der Erstellung eines einfachen Chat-Servers findet man unter "Tutorial: Einfacher Chat mit Node.js und WebSocket".
Zu node.js gibt es eine Reihe vonGuides. Beispielsweise "Anatomy of an HTTP Transaction "Overview of Blocking vs Non-Blocking", "Domain Module Postmortem", "The Node.js Event Loop, Timers, and process.nextTick()", "Dockerizing a Node.js web app", "Easy profiling for Node.js Applications", "Timers in Node.js", "Working with Different Filesystems" .
Der Artikel "JavaScript überall – Webserverprogrammierung mit Node.js" enthält interessante Grafiken zum node.js (Server-) Konzept und nutzt Express.
"Express": Ein Web Framework für Node.js
Mit "express-PouchDB" wird eine Schnittstelle zur PouchDB auf dem Server bereitgestellt.
... tbd ...
Unsortierte Notizen zum Arbeiten mit Node.js:
Bei w3schools.com wird ein Node.js Tutorial bereitgestellt.
Die Dokumentation zum Node.js API (v6.7.0) (derzeit verwendete Long Term Support -Version)
node.js-Debugging-Kurzübersicht:
Starten:
C:\..\wimServer>node debug wim.js
Beenden:debug>quitStepping cont, c - Continue execution next, n - Step next step, s - Step in out, o - Step out pause - Pause running code (like pause button in Developer Tools) Breakpoints setBreakpoint(), sb() - Set breakpoint on current line setBreakpoint(line), sb(line) - Set breakpoint on specific line setBreakpoint('fn()'), sb(...) - Set breakpoint on a first statement in functions body setBreakpoint('script.js', 1), sb(...) - Set breakpoint on first line of script.js clearBreakpoint('script.js', 1), cb(...) - Clear breakpoint in script.js on line 1 Information backtrace, bt - Print backtrace of current execution frame list(5) - List scripts source code with 5 line context (5 lines before and after) watch(expr) - Add expression to watch list unwatch(expr) - Remove expression from watch list watchers - List all watchers and their values (automatically listed on each breakpoint) repl - Open debugger's repl for evaluation in debugging script's context exec expr - Execute an expression in debugging script's context Execution control run - Run script (automatically runs on debugger's start) restart - Restart script kill - Kill script Various scripts - List all loaded scripts version - Display V8's versionWeiteres steht in der Doku zum node.js -Debugger.
Hintergrund-Informationen:
Ein Vergleich von PHP und Node.js ist in "PHP oder Node.js? – Vorteile und Nachteile" zu finden.
Ein Übersichtsartikel zum seinerzeit neu herausgekommenen node.js 6.0 bei Golem
#
\Users\V\Documents\$V\4.WAS\1.openWIM\node.js\PC-Test#