Notice
                              
                          
                        
                          
                          
                            Recent Posts
                            
                        
                          
                          
                            Recent Comments
                            
                        
                          
                          
                            Link
                            
                        
                    | 일 | 월 | 화 | 수 | 목 | 금 | 토 | 
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 | 
| 12 | 13 | 14 | 15 | 16 | 17 | 18 | 
| 19 | 20 | 21 | 22 | 23 | 24 | 25 | 
| 26 | 27 | 28 | 29 | 30 | 31 | 
                            Tags
                            
                        
                          
                          - nodejs
- Component
- HTML
- backend
- Flutter
- CSS
- node.js
- NextJs
- CLONE
- javscript
- express
- GRID
- TypeScript
- frontend
- 자바스크립트
- ES6
- graphQL
- form
- 리액트
- heroku
- Session
- API
- Mongoose
- MongoDB
- react
- ECMAScript
- DART
- JavaScript
- clonecoding
- pug
                            Archives
                            
                        
                          
                          - Today
- Total
목록cookie-parser (1)
Enjoy Programming
 Express (Node.js) - middleware : Morgan, helmet, bodyparser, cookieparser
      
      
        Express (Node.js) - middleware : Morgan, helmet, bodyparser, cookieparser
        필요한 미들웨어들을 설치하기 전에 express에 대한것을 다시 짚고 넘어가자 express 의 주요기능에는 1. 미들웨어 - 함수를 효과적으로 배열하는 미들웨어 스텍 2. 라우팅 - HTTP method로 특정 URL을 방문할 때만 함수가 호출 됨 3. request/ response 에 대한 확장 - response.redirect() or response.sendFile() 처럼 확장 가능 4. 뷰 - 뷰를 사용해서 HTML을 동적으로 랜더링 할 수 있음(pug, ejs등) 먼저 로그를 관리하기 위한 Nodejs의 미들 웨어인 morgan을 설치해보자 npm install morgan 그리고 import morgan from "morgan";으로 임포트 해주고 app.use(morgan("dev")..
        JavaScript/Node.JS
        
        2021. 4. 7. 14:15