guestbook
1. new project -> node-express-guestbook
2. npm install express
npm install ejs
nom install
npm install mongoose(db쓰는거)
npm install mongoose-auto-increment
npm install moment
//npm uninstall ejs
3. app.js 작성
- settings - languages &frameworks - node.js and npm -codingassistance check
4. emaillist 프로젝트 구조 숙지
|
|--- app.js
|--- package.json
|--- public
| |--- images
| | |---favicon.ico
|
|--- router(Controller)
| |--- guestbook.js
|
|--- views(V)
| | |--- detele.ejs
| | |--- list.ejs
|--- modes(M)
| |--- Email.js
----package json?어디서
5. Router 작업
/emaillist/form
/emaillist/add
/emaillist/list
/form
/add
(list)
/list
/
/dsgasdgasdf
728x90
'풀스택 > Node js' 카테고리의 다른 글
Node.js란 (0) | 2019.04.18 |
---|---|
3. node js -emaillist (0) | 2019.04.08 |
2. node js - ex02 (0) | 2019.04.08 |
1. node js - ex01 (0) | 2019.04.08 |
댓글