WeRe์ Server side Repository์
๋๋ค.
์นํฐ์ ์ข์ํ๋ ์ฌ๋๋ค์ ์ํ ์ถ์ฒ, ๋ฆฌ๋ทฐ ํ์ธ ํ๋ซํผ์ ์ ๊ณตํฉ๋๋ค.
- NodeJS v20.11.1
- npm v6.14.17
- NestJS v9.1.5
- mysql v8.3.0
- jest v28.1.3
$ yarnenv file should be set.
# development
# mySQL server should be turned on.
$ yarn start:local
# run program in docker
$ yarn start:docker
# production mode
$ yarn start:prodenv file keys
# env.local
DATABASE_HOST={your_host_name}
DATABASE_PORT={your_port}
DATABASE_USER={your_user_name}
DATABASE_PASSWORD={your_password}
DATABASE_NAME={your_database_name}
ACCESS_SECRET_KEY={your_access_token_secret_key}
REFRESH_SECRET_KEY={your_refresh_token_secret_key}
ACCESS_EXPIRATION_TIME={your_access_expiration_time}
REFRESH_EXPIRATION_TIME={your_refresh_expiration_time}
when using docker, you need this file too.
# env.db
MYSQL_DATABASE={your_database_name}
MYSQL_ROOT_HOST={your_host_name}
MYSQL_ROOT_PASSWORD={your_password}
# unit tests
$ yarn test
# e2e tests
$ yarn test:e2e
# test coverage
$ yarn test:cov- Author - Geonu Lim
- Website - https://nestjs.com
Nest is MIT licensed.
Updated at 2024.03.03