TIL026_210420

JIYOONยท2021๋…„ 4์›” 20์ผ
0

TIL

๋ชฉ๋ก ๋ณด๊ธฐ
26/42
post-thumbnail

๐ŸŠ ๊ฐ์ƒ

๐Ÿ“™ ์—ดํ’ˆํƒ€ ์ฝ”๋”ฉ ์‹œ๊ฐ„ 7hour
๐Ÿ‘๐Ÿผ -
๐Ÿ‘Ž๐Ÿผ -

๐Ÿš€ ๋ชฉํ‘œ

  • Udemy์—์„œ Javascript ๊ฐ•์ขŒ ์ˆ˜๊ฐ•ํ•˜๊ธฐ (365/682)
  • ๊ฐœ์ธ ํ”„๋กœ์ ํŠธ ์ง„ํ–‰

๐Ÿ“ฃ The Web Developer Bootcamp 2021

30. Mastering the terminal

first backend content

301. Backend overview

303. Terminal Commands

The terminal takes some getting used to. but it can be much faster than using a GUI.
The terminal provides a manline into the heart of out computer, giving us access to areas we normally don't interact with.
Many of tools we need are installed and used via the command line. We don't have much of a choice.

confusing terminology

Terminal : a text-based interface to your computer. originally a physical object. but now we use software terminals. the ATM
Shell : the program running on ther terminal. The software running on the ATM
Command line
Console
Bash : one of the most popular shells ( and the default on a mac)

305. The basics : LS & PWD

home directory = my ueser account directory
ls: list
~ : home directory
pwd : print working directory - prints the path to the working directory (where you currently are)

306. Changing directories

cd Downloads
cd ~
.. : backspace์ฒ˜๋Ÿผ ํ•˜๋‚˜์”ฉ ๋’ค๋กœ, back up one level

307. Relative vs Absolute pathes

abosolute : /Users/colt/Pets (first / -> root directroy, top level of machin)
relative : ../../Pets

308. Making directories

mkdir : make directory, will create new directory or directories
mkdir goats ducks -> ๋‘ ๊ฐœ ๋งŒ๋“ฆ
mkdir ../hamsters NewHam
mkdir frogs/treefrogs SugarGliders

309. Man pages & flags

man ls
ls -l
ls -a

310. The touch command

use touch to create a file (or multiple)
touch purple.txt
man touch

311. Removing files & folders

rm will delete a file or files - It permanently removes them
rm app.js index.html
rm -rf -> delete a directory (r=recursive, f=force)

Our first brush with Node

313. Introducing Node.js

What is node

a javascript runtime, until recently, we could only run javascript in a web browser.
node is a javascript runtime that executes code outside of the browser.
we can use the same js syntax we know and love to write server-side code.
instead of relying on other languages like python and ruby

314. What is node used for

web servers , command line tools, native apps, video games, drone software, lot more

316. The Node REPL

node
๋‚˜๊ฐ€๋ ค๋ฉด .exit
.help

dom ์‚ฌ์šฉ ๋ชปํ•จ, global obejct์ธ window๋Š” -> global

node js vs client-side js

  • not included
    node does not run in a browser, we don't have access to all the browser stuff
    the window, document, and dom api's are not a thing in node

  • new stuff in node
    node comes with a bunch of built in modules that don't exist in the browser.
    these modules help us do things like interact with the operating system and files/folders.

317. Running node files

node firstScript.js

๐ŸŠ ๋ณต์Šต : The web developer bootcamp 2021

01. Introduction

Web

Internet : global network of networks (bunch of connected computers)

Web : www is an information system where documents and otehrs resources are available over the internet. documents are transferred via http.

url: resources and documents are identified by urls.

http : way that the information is transferred in the web, foundation of communication of the www. request and response

web server : computer, or server(the software running on the computer) that can satisfy requests on the Web

client : the computer that accesses a server

Request & response cycle

sever responds with instructions with code that my browser can understand and then display for me

0๊ฐœ์˜ ๋Œ“๊ธ€