Content Menu

Study with Melody

프로필사진
  • Write
  • Manage
  • 방명록

Study with Melody

검색하기 폼
  • 분류 전체보기 (206)
    • Melody's 개발일기 (1)
    • 프로젝트 (1)
    • Wecode 부트캠프 (3)
    • 코딩테스트 (103)
      • 프로그래머스 (77)
      • 백준 (22)
    • Computer Science (16)
      • 운영체제(OS) (16)
      • 시스템 프로그래밍 (0)
      • 컴퓨터 구조 (0)
      • 네트워크 (0)
    • PYTHON (30)
    • Django (3)
    • PostgreSQL (2)
    • Mysql (0)
    • NestJS (18)
    • JAVA (0)
    • Git (1)
    • AWS (1)
    • Docker (1)
    • HTML (3)
    • CSS (4)
    • JAVASCRIPT (12)
    • WEB (5)
    • Quiet Time (0)
  • Visite

TIL | NestJS_REST_API_Service

NestJS_REST_API_Service 우리는 Single-responsibility principle에 따라 코드를 작성할 예정이다. Single-responsibility principle란? 하나의 module, class 혹은 fuction이 하나의 기능은 꼭 책임져야한다는 뜻이다. 1. Service 생성 nest g s 2. service에서 사용할 데이터베이스를 생성한다. entity 폴더를 만들어 movie.entity.ts 파일을 생성하여 데이터의 모델을 지정해준다. export class Movie { id: number; title:string; year:number; genres: string[]; }3. movie.service.ts 작성 import { Injectable, ..

NestJS 2021. 10. 11. 15:25
« 1 »
«   2025/07   »
일 월 화 수 목 금 토
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

티스토리툴바