mongoose1 ejs 활용, mongoose 데이터 연동, simple counter 구현 ejs 활용, mongoose 데이터 연동, simple counter 구현 #ejs #mongoose #mongoDB #simplecounter ejs : Embedded Javascript [ejs 설치]1. 윈도우 탐색기 프로젝트 폴더에서 cmd 또는 git bash를 열어서$npm install ejs --save 2. node_modules\ejs에 설치됨 [ejs로 hello world]1. Atom의 프로젝트 폴더에서 views 폴더 생성 2. views 폴더 내에 testejs.ejs 파일 생성 3. 생성된 testejs.ejs 파일내에서 html 타이핑 후 tab을 눌러 HTML 기본 태그 호출하기 또는 아래 내용 입력 Hello EJS 4. public 폴더 내의 index.html 파.. 2017. 1. 25. 이전 1 다음 반응형