In this article, I will share my personal information on node. I hope to help you understand and understand js. node. javascript on the server side, which allows javascript code to run on the backend (out of the browser environment.
2. event-driven, asynchronous I/O programming mode (single thread) is its core.
3. node. js's javascript Engine is v8, from the google chrome project. V8 claims to be the world's fastest javascript Engine.
4. node. js has built-in http server support, which means you can easily implement a combination of websites and servers.
5. commonnjs tries to define an api used by a common application to fill in the simplicity of the javascript standard library. Node. js is the implementation of commonjs.
6. node Package Manager (npm), which can be used to install some applications online.
7. Basic node usage: node xxx. js (script file name) or node-e "xxxxxxxxx" (code that can be directly executed)
8. node press enter --> repl (read-eval-print loop) mode. Press ctrl + c twice in a row to exit repl mode.
9. Use the supervisor to refresh the script for debugging. install: npm install-g supervisor to start the application: supervisor app. js
10. The module is a basic component of the node. js application. The files and modules correspond one by one.
11. The node. js package is a directory with package. json under the top-level directory.
12. Start angular-seed-master: node scripts/web-server.js with node