We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
κ°λ° λ¨κ³μμ μ€μκ°μΌλ‘ μ»΄νμΌμ΄ νμν κ²½μ°
backend directory μμ .env.development μμ±
.env.development
yarn -> yarn db -> yarn start:dev νΉμ yarn start:prod μ€ν
yarn
yarn db
yarn start:dev
yarn start:prod
seeding μ΄ νμνλ€λ©΄ yarn seed [number] μ€ν
yarn seed [number]
frontend directory μμ yarn -> yarn dev νΉμ yarn prod μ€ν
yarn dev
yarn prod
νμλ‘ λ³κ²½ν΄μΌ ν κ°
DB_
POSTGRES_
POSTGRES_HOST
localhost
env.development
NODE_ENV=development POSTGRES_PORT= POSTGRES_HOST=localhost POSTGRES_NAME= POSTGRES_USER= POSTGRES_PASSWORD=
server, client, DB λ₯Ό λͺ¨λ λ컀λΌμ΄μ§νκ³ ν μ€νΈνκ³ μΆμ κ²½μ°
backend directory μμ .env μμ±
.env
root directory μμ docker compose up --build μ€ν
docker compose up --build
ghostgres
NODE_ENV=production POSTGRES_PORT= POSTGRES_HOST=ghostgres POSTGRES_NAME= POSTGRES_USER= POSTGRES_PASSWORD=
backend λλ ν 리 μμμ μ€νν΄μ£ΌμΈμ.
.env.sample
yarn install
Authorization
x-my-id
yarn run start
yarn db:reset
TEST_DB_NAME
yarn seed:reset && yarn seed [number]
yarn seed:reset
[number]
auth
user
friendship
message
game_history
localhost:${APP_PORT}/api
The text was updated successfully, but these errors were encountered:
jis-kim
No branches or pull requests
1. Development νκ²½μΌλ‘ μ€ν
κ°λ° λ¨κ³μμ μ€μκ°μΌλ‘ μ»΄νμΌμ΄ νμν κ²½μ°
backend directory μμ
.env.development
μμ±yarn
->yarn db
->yarn start:dev
νΉμyarn start:prod
μ€νseeding μ΄ νμνλ€λ©΄
yarn seed [number]
μ€νfrontend directory μμ
yarn
->yarn dev
νΉμyarn prod
μ€ννμλ‘ λ³κ²½ν΄μΌ ν κ°
DB_
λ³μλ€μPOSTGRES_
λ‘ λ³κ²½ν΄μ£ΌμΈμ.POSTGRES_HOST
λlocalhost
λ‘ μ§μ ν΄μ£ΌμΈμ.env.development
2. Production νκ²½μΌλ‘ μ€ν
server, client, DB λ₯Ό λͺ¨λ λ컀λΌμ΄μ§νκ³ ν μ€νΈνκ³ μΆμ κ²½μ°
backend directory μμ
.env
μμ±root directory μμ
docker compose up --build
μ€ννμλ‘ λ³κ²½ν΄μΌ ν κ°
DB_
λ³μλ€μPOSTGRES_
λ‘ λ³κ²½ν΄μ£ΌμΈμ.POSTGRES_HOST
λghostgres
λ‘ μ§μ ν΄μ£ΌμΈμ..env
μ΄μ μ€ν λ°©λ²
nest.js app μ΄κΈ° μ€ν
backend λλ ν 리 μμμ μ€νν΄μ£ΌμΈμ.
.env.sample
νμΌ μ°Έκ³ ν΄μ.env
νμΌ μμ±yarn install
yarn db
yarn start:prod
λλyarn start:dev
yarn start:prod
: NODE_ENV=production νκ²½λ³μ μ€μ ν΄μ ν΄λΌμ΄μΈνΈκ°Authorization
headerλ‘ 'token' λ΄μμ ν΅μ ν λ μ¬μ©yarn start:dev
: NODE_ENV=development νκ²½λ³μ μ€μ ν΄μ ν΄λΌμ΄μΈνΈκ°x-my-id
headerλ‘ 'user id' λ΄μμ ν΅μ ν λ μ¬μ©DB ν μ΄λΈμ΄ μ‘΄μ¬νλ μνμμ μ€ν
yarn db
ν λ°λ‘yarn run start
ν΄μ£Όμλ©΄ λ©λλ€.yarn db:reset
μΌλ‘ λ³Όλ₯¨μ μμ νκ³ λ€μ μ΄κΈ° μ€νν μλ μμ΅λλ€.DB seeding
.env
νμΌμTEST_DB_NAME
μ€μ λμλμ§ νμΈν©λλ€. (ν΄λΉ νκ²½λ³μλ₯Ό μ½μ΄μ μ€νν©λλ€.)yarn seed:reset && yarn seed [number]
yarn seed:reset
μ ν μ€νΈ λ°μ΄ν°λ² μ΄μ€κ° λ μκ°λ€κ° λ€μ μμ±λλ―λ‘ μ¬μ©μ μ£Όμν΄μ£ΌμΈμ![number]
μ리μλ μμ±νκ³ μ νλauth
μ row μλ₯Ό μ λ ₯ν©λλ€. νλ₯ μ λ°λΌuser
,friendship
,message
,game_history
κ° μ°¨λ‘λ‘ μμ±λ©λλ€.Swagger
localhost:${APP_PORT}/api
λ‘ μ μνμλ©΄ swagger λ‘ ν μ€νΈ νμ€ μ μμ΅λλ€.The text was updated successfully, but these errors were encountered: