Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.24 KB

File metadata and controls

44 lines (31 loc) · 1.24 KB

Node Badge TypeScript Badge TypeScript Badge Jest Badge Docker Badge

Description

Nimble Meet 백엔드 리퍼지토리

.env

프로젝트 루트 디렉토리에 .env 파일 생성
테스트 실행 시에는 동일한 형식으로 .env.test 파일 생성

DATABASE_HOST=<db host>
DATABASE_USER=<db user>
DATABASE_PASSWORD=<db password>
DATABASE_NAME=<db name>

JWT_ACCESS_TOKEN_SECRET=<random secret>
JWT_REFRESH_TOKEN_SECRET=<random secret>
JWT_REFRESH_TOKEN_EXPIRATION_TIME=<expiration time in sec>
JWT_ACCESS_TOKEN_EXPIRATION_TIME=<expiration time in sec>

Running the app

$ docker-compose up

Test

# 전체 테스트
$ yarn test

# 테스트 커버리지 확인
$ yarn test:cov

# 단위 테스트
$ yarn test:unit

# e2e 테스트
$ yarn test:e2e