목록노드js (4)
taenyLog

https://www.mongodb.com/community/forums/t/option-usecreateindex-is-not-supported/123048 Option usecreateindex is not supported I am trying to connect mongoDB to my web app but it is saying that usercreateindex is not supported please help me with this This is the code from my index.js file const express = require('express'); const app = express(); const mongoose = require('mongoos www.mongodb.c..

최신버전의 Node.js 사용하는 경우 JS파일에서 몽구스 모듈을 가져오고 강의 코드를 실행할때 .load index.js 명령 대신 node -i -e "$(< index.js)" 명령사용하자. 윈도우라면 깃배쉬 이용 .

템플레이팅 특정 로직과 HTML 응답 생성을 결합 EJS (Embedded JavaScript) - Node.js에서 많이 사용하는 템플릿엔진 EJS용 Express 구성하기 http://expressjs.com/en/5x/api.html#app.set Express 5.x - API Reference Express 5.x API Note: This is early beta documentation that may be incomplete and is still under development. express() Creates an Express application. The express() function is a top-level function exported by the express modul..

Node 사용하여 서버 구축할 때 사용 Express 개요 - Express는 요청을 받아들일 서버 구축을 돕고 들어오는 요청을 파싱한다(HTTP요청이 텍스트 정보이기 때문이다 JS가 아니므로 Express가 돕는다. ) - 응답을 만드는 것도 도와줌. 상태코드 설정 , 헤더와 같은 콘텐츠를 어떻게 응답할지 설정 제어와 제어의 역전 제어 라이브러리는 언제든지 코드에 결합 가능 프레임워크 - 제어의 역전 애플리케이션의 프레임워크에서 제어의 흐름을 역전시키기때문에 프레임워크의 작동원리에 따라 코드를 작성한다. Express 앱 $ npm i express express다운 $ npm i express --save 구버전 NPM에서 패키지를 package.json에 저장시 --save붙여준다. https://..