본 게시글은 유튜브 생활코딩 온라인강의를 시청한 후 학습한 정보를 기록하는 목적의 게시글입니다.

생각의 흐름에 따라 작성된 게시글입니다. 가독성이 떨어질 수 있습니다.

생활코딩 유튜브

 

생활코딩

일반인에게 프로그래밍을 알려주는 온라인/오프라인 활동 입니다.

www.youtube.com

생활코딩 사이트

 

생활코딩

hello world 생활코딩의 세계에 오신 것을 환영합니다. 생활코딩은 일반인들에게 프로그래밍을 알려주는 무료 온라인, 오프라인 수업입니다.  어떻게 공부할 것인가를 생각해보기 전에 왜 프로그래밍을 공부하는 이유에 대한 이유를 함께 생각해보면 좋을 것 같습니다. 아래 영상을 한번 보시죠. 온라인 강의 소개 입문자의 가장 큰 고충은 '무엇을 모르는지 모르는 상태'일 겁니다. 온라인에는 프로그래밍을 익히는 데 필요한 거의 모든 정보가 있지만, 이 지식들은

opentutorials.org

"프레임워크는 현실의 복잡함으로 부터 우리를 구원해 줄

우리의 구원자가 될 것입니다."

(생활코딩 : Web3 - express 수업소개. 중)


#0.

express에서 애플리케이션을 구축할 때 주의해야 할 보안적인 이슈에 대하여 고민해보자.

 

#1.

보안과 관련된 좋은 습관들

 

Security Best Practices for Express in Production

Production Best Practices: Security Overview The term “production” refers to the stage in the software lifecycle when an application or API is generally available to its end-users or consumers. In contrast, in the “development” stage, you’re stil

expressjs.com

1. express 최신 버전을 항상 유지할것

2. TLS(=https)를 사용할 것

3. helmet 모듈 사용할 것 

npm install halmet --save
var helmet = require('helmet')
app.use(helmet());

4. 쿠키를 안전하게 사용할 것

5. dependency를 안전하게 관리할 것

// 보안 체크
npm install nsp -g

#0.

Express 기반의 프로젝트를 할 때 기본적으로 필요한 파일과 코드를 자동으로 만들어주는 앱인 

Express generator에 대하여 알아보자.

 

#1.

express로 어플리케이션을 설계할 때 처음 부분은 대동소이하다.

그런 처음 과정의 반복을 막기 위해서 사용하는 것이 바로 Express generator

 

Express application generator

Express application generator Use the application generator tool, express-generator, to quickly create an application skeleton. You can run the application generator with the npx command (available in Node.js 8.2.0). $ npx express-generator For earlier Nod

expressjs.com

$ npm install -g express-generator
$ express
$ express --view=pug myapp
$ cd myapp
$ npm install
$ DEBUG=myapp:* npm start

다음 공부할 것?

1. 템플릿 엔진 : pug?

2. 데이터베이스 : my-sql? mongo?

3. 다른 middleware

  • 네이버 블러그 공유하기
  • 네이버 밴드에 공유하기
  • 페이스북 공유하기
  • 카카오스토리 공유하기