# expressjs
Properties of Cookies and Environment file
String of text to sign the cookies. Verifies the browser got the cookies from OUR backend. Prevents session highjack.Shows the what kind of backend ga
Session store
Session is created when a browser first reachs to a backend. And browser only gets the sessionID. Problem is that the default server-side session stor
User Authentication
middleware express-session send browser a cookie.Cookies: pieces of information that backend can give to the browser. A way of transporting and sendin
🎣 Hooks (Middleware)
Middleware in Mongoose > Middleware is basically intercepts request and do something inside of the middleware and call next() to pass the request. (Ex
Callback and promise(Async await)
Callback is a function which runs after certain action is executed. Just like EventListener: btn.addEventListener("click", callbackFunction); callback
MongoDB and Mongoose
MongoDB > MongoDB is an open source cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like
Sending data to back-end
mixing variable with text #{variableName} Ex) mixing variable with attributes(href, class, id...) \`${variableName}\` (inside backticks) Ex) POST
URL parameters
router.get(":parameter", controller);It is like ${variableName} inside of HTML elements.It lets you put variables inside of the routes.You can check t
Separating and exporting
If the request, router, and controller stored in a single page, it's gonna be very inefficient for editing or finding the specific part of the code. S
External Middleware (Morgan)
What is Morgan? > Morgan is HTTP request logger middleware for node.js Morgan link When Morgan function is called, Morgan returns middleware as order
Middleware?
software in the middle 🙄Middle of what => Between Request and Response.All middlewares are handlers, and all handlers are middlewares(?)middleware =
Request & Response
A way servers communicate with users, or servers communicate with each other.A HTTP method, a type of RequestFor example, when a user try to go to a w
Making a server with NodeJS and Express
In the server.jsexpress functionWhat is server(application)?Basically, server is a computer(without monitor or keyboard) which is turned on 24/7 and c

보일러 플레이트란? / Node js & Express js 다운 / #1~#2
인프런 : 따라하며 배우는 노드, 리액트 시리즈 - 기본강의 (John Ahn님)를 듣고 정리한 내용입니다.
Node JS 시작하기
node js를 설치하고자 하는 곳에서 npm init 명령어를 실행하면 아래와 같은 화면이 나온다. package name만 입력해주고 나머지는 Enter를 쭉 눌러준다. (물론 다 입력해줘도 되겠지..)그렇게 하면 package.json 파일이 생성된다.node j
구글 시트 클론코딩 도전
미친짓을 해보기로 했다. 완전히 똑같은 건 아니고 아래 기능만 구현하면 된다. editable 테이블 만들기editable 테이블에 데이터베이스에서 가져온 데이터가 들어가도록 만들기 editable 테이블 컬럼으로 필터하여 조회할 수 있게하기(구글 시트에서 필터 적용하