From 9b7d6caf17efb4dd03be4f78528d15dac8ae70e4 Mon Sep 17 00:00:00 2001 From: Jiwon-Woo Date: Thu, 28 Dec 2023 13:47:55 +0900 Subject: [PATCH 1/3] refactor: set frontend port by enviorment variable #146 --- webpack.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.config.ts b/webpack.config.ts index 40a2407..fa209a1 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -85,7 +85,7 @@ const config = { }, devServer: { historyApiFallback: true, - port: 3050, + port: +process.env.FRONT_PORT || 3050, }, }; From e186d87a66a43596d7b0d34a183f8e4ba86c35c7 Mon Sep 17 00:00:00 2001 From: Jiwon-Woo Date: Thu, 28 Dec 2023 13:50:08 +0900 Subject: [PATCH 2/3] feat: update README replace backend info with link, update frontend env #146 --- README.md | 60 +++++++++++-------------------------------------------- 1 file changed, 12 insertions(+), 48 deletions(-) diff --git a/README.md b/README.md index 7268153..672db95 100644 --- a/README.md +++ b/README.md @@ -19,21 +19,6 @@

-

-πŸ” For Server -

- -

- - - - - - - - -

- ## 🏠 [HOME PAGE](https://together.42jip.net/) μ •κΈ°μ μœΌλ‘œ **20λͺ…**이 λ„˜λŠ” 동아리원(μ‚¬μ„œ)λ‹˜λ“€μ„ λ¬΄μž‘μœ„ 맀칭 ν›„, μΉœν•΄μ§ˆ 수 μžˆλŠ” ν™œλ™μ„ ν•¨κ»˜ ν•˜λ„λ‘ λ•λŠ” νŽ˜μ΄μ§€μž…λ‹ˆλ‹€. 맀칭에 λŒ€ν•œ **ν›„κΈ°λ₯Ό SNS**처럼 남길 μˆ˜λ„ μžˆμŠ΅λ‹ˆλ‹€. ν˜„μž¬ React 에 λŒ€ν•œ κ²½ν—˜μ΄ μ—†λŠ” νŒ€μ›λ“€μ„ 직접 κ°€λ₯΄μ³λ“œλ¦¬λ©°, ν”„λ‘œμ νŠΈ μ°Έμ—¬λ₯Ό 독렀 μ€‘μž…λ‹ˆλ‹€. @@ -79,47 +64,26 @@ ν”„λ‘ νŠΈ μ½”λ“œμ™€ λ°±μ—”λ“œ μ½”λ“œ λͺ¨λ‘ ν΄λ‘ ν•©λ‹ˆλ‹€. -[λ°±μ—”λ“œ μ½”λ“œ](https://github.com/Together42/backend) +**1. DB 및 λ°±μ—”λ“œ** -**1. MySQL λ‹€μš΄λ‘œλ“œ ν›„ μ›Œν¬λ²€μΉ˜μ— DB μŠ€ν‚€λ§ˆ 섀계 ν›„ μ‹€ν–‰** - -**2. λ°±μ—”λ“œ** -- λ°±μ—”λ“œ ν™˜κ²½ λ³€μˆ˜ μ„€μ • - - backend폴더 λ°”λ‘œ μ•ˆμ— .env 파일 생성 - - .env μ˜ˆμ‹œ - ``` - DB_DATABASE=... - DB_USER=... - DB_PASSWORD=... - DB_HOST=... - DB_PORT=... - JWT_SECRET=... - JWT_EXPIRES_SEC=... - BCRYPT_SALT_ROUNDS=... - HOST_PORT=... - HOSTNAME=... - ACCESS_KEY_ID=... - SECRET_ACCESS_KEY=... - REGION=... - NAVER_ID=... - NAVER_PW=... - BOT_USER_OAUTH_ACCESS_TOKEN=... - SLACK_JIP=... - SLACK_TKIM=... - ``` - - μ‹€ν–‰ - ```jsx - npm install - npm run dev - ``` +- [DB 및 λ°±μ—”λ“œ μ‹€ν–‰ 방법](https://github.com/Together42/nest-backend?tab=readme-ov-file#%EC%8B%A4%ED%96%89%20%EB%B0%A9%EB%B2%95) **3. ν”„λ‘ νŠΈμ—”λ“œ** - ν”„λ‘ νŠΈμ—”λ“œ ν™˜κ²½ λ³€μˆ˜ μ„€μ • - 폴더에 .env 파일 생성 - .env μ˜ˆμ‹œ ``` - DEPLOY_ADR=... + # ν”„λ‘ νŠΈμ—”λ“œ μ‹€ν–‰ 포트, λ””ν΄νŠΈλŠ” 3050 + FRONT_PORT=http://localhost:{λ°±μ—”λ“œ μ‹€ν–‰ 포트} + + # 개발 μ‹œ μ‚¬μš©ν•˜λŠ” λ°±μ—”λ“œ μ£Όμ†Œ. ν”„λ‘ νŠΈλ₯Ό 둜컬 ν™˜κ²½μ—μ„œ μ‹€ν–‰ μ‹œ λ°±μ—”λ“œλ„ 둜컬 ν™˜κ²½ μ‹€ν–‰ μΆ”μ²œ DEV_ADR=... + + # 이미지 μ„œλ²„ μ£Όμ†Œ + IMAGE_SERVER_ADR=https://together-fileserver.s3.ap-northeast-2.amazonaws.com + + # 배포된 μ„œλ²„ μ£Όμ†Œ, NODE_ENVκ°€ 'production' 일 λ•Œλ§Œ ν•„μš” + DEPLOY_ADR=... ``` - μ‹€ν–‰ ```jsx From f9245c078138ed820bd456c0d81d883bedc576b4 Mon Sep 17 00:00:00 2001 From: Jiwon-Woo Date: Thu, 28 Dec 2023 14:28:03 +0900 Subject: [PATCH 3/3] docs: Update README change order number #146 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 672db95..70f4c84 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ - [DB 및 λ°±μ—”λ“œ μ‹€ν–‰ 방법](https://github.com/Together42/nest-backend?tab=readme-ov-file#%EC%8B%A4%ED%96%89%20%EB%B0%A9%EB%B2%95) -**3. ν”„λ‘ νŠΈμ—”λ“œ** +**2. ν”„λ‘ νŠΈμ—”λ“œ** - ν”„λ‘ νŠΈμ—”λ“œ ν™˜κ²½ λ³€μˆ˜ μ„€μ • - 폴더에 .env 파일 생성 - .env μ˜ˆμ‹œ