Racon

  • 홈
  • 태그
  • 방명록
프로필사진

코드가 복잡해 졌다면 로직을 다시 생각해볼 때 이다.

방문자수Total

  • Today :
  • Yesterday :

공지사항

  • All (222) N
    • Unresolved (2)
    • Editor (2)
      • VScode (2)
    • Language (10)
      • Java (4)
      • JavaScript (1)
      • TypeScript (1)
      • Kotlin (2)
    • AWS (5)
    • Server (24)
    • BackEnd (85) N
      • Spring Boot (48) N
      • Spring WebFlux (9)
      • Spring Batch (4) N
      • ExpressJS (2)
      • Flask (0)
      • Django (2)
    • FrontEnd (11)
      • Vue (9)
      • Nuxt (0)
      • React-vite (1)
    • Publishing (4)
      • Css (4)
    • DB (46)
    • Coding Test (5)
    • Data Structure (5)
    • ETC (19)
      • Dialogflow (5)
      • Docker (7)
      • NodeJs (2)
      • GIT (1)
      • 책 (2)

Tag

Dialogflow, mybatis, 알고리즘, Volume, spring boot, MYSQL, JPA, flask, 자료구조, Vue, DB, css, expressjs, Spring, 서버 구축, 차이, docker, network, Transaction, Jasypt,

최근글과 인기글

  • 최근글
  • 인기글
250x250

BackEnd/ExpressJS 2

ExpressJS 기본 셋팅(ES6, NodeDemon, Jest)

ExpressJS ES6 설정 Node.js는 common.js 방식을 따릅니다. ES6 사용이유 Fat Arrow Function, 템플릿 리터럴 (Template Literal) 등 사용하기 쉬운 문법들이 ES6에 포함 되어 있다. CommonJS -> ES6 폴더 및 파일 구조 변경 "server"폴더를 생성한다. create a folder "bin", "routes" 폴더 와 "app.js" 파일을 "server"폴더에 이동시킨다. "bin > www" 파일을 www.js로 변경한다. "public" 폴더를 프로젝트 루트에 그대로 둡니다. bin/www.js > ES6 코드로 변환 TIP! 생성된 코드를 ES6로 변환하는 작업은 조금 번거롭기 때문에 여기에 코드를 게시하고 자유롭게 복사하여 붙여..

BackEnd/ExpressJS 2023.04.16

ExpressJS Create Project

프로젝트 생성 Node Express 설치 npm install express-generator -g Node Express 프로젝트 생성 express --no-view backend 'backend' : 프로젝트 이름 Node Express 폴더 이동 cd backend Node Express package.json 생성 npm init Node Express 서버 실행 npm start 만약 "Error: Cannot find module 'http-errors'" 에러 시 npm install 최초 Dependency cookie-parser 쿠키 헤더를 구문 분석하고 req.cookies를 쿠키 이름으로 키가 지정된 개체로 채웁니다. 선택적으로 다른 미들웨어에서 사용..

BackEnd/ExpressJS 2023.04.16
이전
1
다음
더보기

Copyright © Kakao Corp. All rights reserved.

티스토리툴바