Skip to content

We-re-WeRe/WeRe-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

69 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

WeRe-Server

๐Ÿš€ Latest version: 0.0.0

โš ๏ธํ˜„์žฌ ๊ฐœ๋ฐœ ์ค‘์ธ ํ”„๋กœ์ ํŠธ์ž…๋‹ˆ๋‹ค.โš ๏ธ ์ฝ”๋“œ๋ฅผ ๋ณด์‹ค ๋ถ„์€ develop ๋ธŒ๋žœ์น˜์—์„œ ํ™•์ธ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค.

Description

WeRe์˜ Server side Repository์ž…๋‹ˆ๋‹ค.
์›นํˆฐ์„ ์ข‹์•„ํ•˜๋Š” ์‚ฌ๋žŒ๋“ค์„ ์œ„ํ•œ ์ถ”์ฒœ, ๋ฆฌ๋ทฐ ํ™•์ธ ํ”Œ๋žซํผ์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.

Tech.

  • NodeJS v20.11.1
  • npm v6.14.17
  • NestJS v9.1.5
  • mysql v8.3.0
  • jest v28.1.3

Installation

$ yarn

Running the app

env 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:prod

env 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}

Test

# unit tests
$ yarn test

# e2e tests
$ yarn test:e2e

# test coverage
$ yarn test:cov

Stay in touch

License

Nest is MIT licensed.

Updated at 2024.03.03

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published