Node.js Flashcards

1
Q

What is Node.JS?

A

Allows the creation of a backend using Javascript
Fast execution on the backend
Allows Javascript to be run outside of the browser, independently, and to allow Javascript code to interact directly with the computer, that will allow it to access files, listen to network requests, …
Allows the creation of full desktop applications using Javascript
Allows the execution of Javascript programs on the server
All of the heavy calculations and executions happen on the server, rather than the client’s browser

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The Node REPL

A

REPL

Read
Evaluation
Print
Loops

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How to Use the Native Node Modules

A
Check out the different types of API’s on nodejs.org/API/
Accessing File Systems
Create a file system object
Example:
const fs = require(“fs”);
require();
Not part of standard Javascript
In NodeJs, a built in function to load modules into the javascript code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The NPM Package Manager and Installing External Node Modules

A

Followed by accompanying cards

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

NPM

A

(Node Package Manager)
Package managers for external modules
Gets bundled with Node

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Creating your own Package

A

run node init and follow the steps

It will create a package.json file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Downloading an external node module

A
Find the module you want from searching from npmjs.com
Check the usage, usually it is in the form of npm install
How well did you know this?
1
Not at all
2
3
4
5
Perfectly