diff --git a/README.md b/README.md index 7268153..70f4c84 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 μ€ν€λ§ μ€κ³ ν μ€ν** +- [DB λ° λ°±μλ μ€ν λ°©λ²](https://github.com/Together42/nest-backend?tab=readme-ov-file#%EC%8B%A4%ED%96%89%20%EB%B0%A9%EB%B2%95) -**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 - ``` - -**3. νλ‘ νΈμλ** +**2. νλ‘ νΈμλ** - νλ‘ νΈμλ νκ²½ λ³μ μ€μ - ν΄λμ .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 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, }, };