๐ ์ดํํ ์ฝ๋ฉ ์๊ฐ 7hour
๐๐ผ -
๐๐ผ -
first backend content
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)
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)
cd Downloads
cd ~
.. : backspace์ฒ๋ผ ํ๋์ฉ ๋ค๋ก, back up one level
abosolute : /Users/colt/Pets (first / -> root directroy, top level of machin)
relative : ../../Pets
mkdir : make directory, will create new directory or directories
mkdir goats ducks -> ๋ ๊ฐ ๋ง๋ฆ
mkdir ../hamsters NewHam
mkdir frogs/treefrogs SugarGliders
man ls
ls -l
ls -a
use touch to create a file (or multiple)
touch purple.txt
man touch
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)
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
web servers , command line tools, native apps, video games, drone software, lot more
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.
node firstScript.js
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