Skip to content

Mash-Up-Node/mash-up-Nest-Rest-Template

Repository files navigation

MashUp Node.js REST Template

Env

env파일은 환경에 맞춰서 {dev | prod}.env 파일을 생성해주세요! Key들은 아래 토글 참조해주세요

Env Keys
APP_MODE의 경우에는 실행 context에서만 적용되게끔 적용해주시면 됩니다
e.g) export APP_MODE={dev | prod}
  • DB_HOST
  • DB_PORT
  • DB_USER
  • DB_PASSWORD
  • DB_NAME

Database & Migrations

Database는 MySQL입니다. 로컬 개발시에는 DB 컨테이너를 생성해주시고 Migration이 존재하는 경우에는 Migration을 먼저 적용해주세요

docker compose up -d

yarn migration:run

Migration 파일은 기본적으로 src/migrations, dist/migrations에 생성됩니다. 마이그레이션파일 이름은 자동 생성입니다. 하단에는 migration 관련 명령어들입니다.

  • Migration 생성

    yarn migration:generate
    
  • Migration 실행

    yarn migration:run
    
  • Migration 롤백

    yarn migration:revert
    

Nest-Rest-Template

👫 팀원 소개

김바다 윤준호 이미나 최재영
sally0226 J-Hoplin chsjen492 Choi-JY1107

About

MashUp 15th Nest.js REST API Template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •