Code 301: Class 06 - Node.js
- Node.js “JavaScript runtime built on Chrome’s V8 JavaScript engine”
- According to stack overflow: “is an event-based, non-blocking, asynchronous I/O runtime tha uses Google’s V8 JavaScript engine and libuv library”
$node -v
to check the version of node that is installed, should be v12.14.1 or higher
$npm -v
to check the version of npm manager installed
$npm init -y
installs npm locally to specific directory rather than globally
- One of the primary uses of Node.js is running JavaScript on the server
- Node.js is “event driven” everything that happens in Node s a reaction ot an event
- Advantage of using JavaScript and Node.js to handle front and back end: speed, scalability, a single syntax throughout, and node’s ability to read JSON
- This article provides a link to What the heck is the event loop anyway? by Philip Roberts
- Youtube video that is a good description of ansync
Return to reading-notes Deployed Site
Return to reading-notes Mark Down