Skip to content

whrudwls08/nodejsStudy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 

Repository files navigation

nodejsStudy

nodejs 패스트캠퍼스를 활용하여 공부

start

npm start = nodemon start

Chapter1-1

왜 Express를 사용하는가

  1. 웹서비스 관점
  2. 프레임워크 선정시 고려해야 될점

Chapter1-2

서벅 코드를 변경 할 때마다, 서버를 재시작해야 하는데 nodemon 이라는 도구를 사용하면 저장시 서버가 자동으로 재시작됩니다. nodemon 사용법

  1. npm install -g nodemon ( nodemon 설치 )
  2. package.json > script 에서 설정하면 더 쉽게 사용할 수 있다. ex) "start" : "nodemon app.js" > terminal에서 npm start 시 더 쉽게 nodemon 사용가능

Chapter1-3

Routing 모든 경로를 js에서 관리하기엔 지저분하기 때문에
routes 파일안에서 관리한다.

Chapter1-4

view engine

Chapter1-5

morgan는 사용자가 어떤 url을 호출 했는지 확인할 수 있는 모듈

Chapter1-6

body-parser를 통하여 데이터를 받아올 수 있다.

Chapter1-7

Global View Variable

Chapter2-1

Sequelize란 ORM(Object-Relational Mapping) Nodejs로 mysql 또는 postgresql (db)를 제어할 수 있게 해줌

Chapter2-2

환경변수를 설정할때 dotenv를 설정한다.

About

nodejs 패스트캠퍼스를 활용하여 공부

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published