nodejs2 postgresql 설치, db, table 생성, pg-promise로 연결, counter구현 postgresql 설치, db, table 생성, pg-promise로 연결, counter구현 #postgresql #pg-promise #nodejs #simple counter #bluebird [postgreSQL 설치]1. 시스템에 맞게 다운로드 (9.6.1 / Windows x86-64)https://www.enterprisedb.com/downloads/postgres-postgresql-downloads#windows 2. 다운 받은 설치파일을 실행하여 설치 3. 설치 폴더 설정(default) - 데이터 디렉토리 설정(default) - password (superuser: postgres/password: root로 설정) - Port (default: 5432) - Locale (K.. 2017. 2. 3. 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 다음 반응형