React/Redux Flashcards

1
Q

What is Node.js ?

A

framework to run js files server side / in your terminal

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

What is oh-my-zsh?

A

framework for your zsh shell. This tool is configured thanks to the ~/.zshrc file. Go ahead and have a look at it:

cat ~/.zshrc

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

What is yarn?

A

Yarn is the new dependency management tool you can use with NPM packages. It’s a replacement over the npm command line which comes by default with Node.js.

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

What is $PATH?

A

Basically, it’s a list of folders where your operating system look when you type a command. When you type ls, the OS will look in the $PATH and see that /bin is in there. And /bin/ls exists! So it will run /bin/ls. That means that ls is just a shortcut for typing the whole path /bin/ls.

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

How do you access the JS console in your terminal?

A

node

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

What is the js package manager?

A

yarn

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

Which file do you put your js libraries and dependencies?

A

package.json

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

What is the tool to identify syntax problems in your js code?

A

Eslint

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

What is the test framework for js?

A

Jest (like Rspec for Ruby)

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

What is Babel?

A

ES6 is only available in 95% of browsers. For the other 5%, Babel will compile our ES6 code into ES5, the previous version of JavaScript.

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

Elements of a webpack boilerplate?

A

Initalize Yarn
ESlint
Webpack
Babel

yarn init (package.json file)

ESlint
yarn add eslint –dev
eslint –init # Use Airbnb, no react (yet). Store as json
rm package-lock.json # we already have yarn.lock
eslint src/index.js

Webpack
yarn add webpack webpack-cli webpack-dev-server –dev

Configure Webpack
touch index.html
touch webpack.config.js

launch the dev server with:
webpack-dev-server

Babel
yarn add @babel/core @babel/preset-env –dev
# Create a Babel config file with:
echo ‘{ “presets”: [“@babel/preset-env”] }’ > .babelrc
# For webpack
yarn add babel-loader –dev

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