본문 바로가기
NODE.JS

[ NODEJS ] express project 생성

by 정윤재 2019. 4. 14.

1. shell> npm install express-generator -g

 

2. workplace의 root 폴더에서

shell> express --ejs [project name]

(저는 jade 같은 신박한 구조는 잘 모르겠네요. jsp 같은 기존에 쓰던 스타일이 좋습니다. 그래서 ejs 쓸래요)

 

3. shell> cd [project name]

 

project 폴더의 구조가 아래와 같이 생기면 됩니다.

 

express generator 를 통한 express project 생성 구조

 

4. shell> npm install

-> node_module 폴더가 생기면 됨

 

 

참고 : https://expressjs.com/ko/starter/generator.html


댓글