Skip to content
New issue

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

[refactor] Add configuration manager #135

Merged
merged 2 commits into from
Mar 24, 2022
Merged

Conversation

geeneve
Copy link
Member

@geeneve geeneve commented Mar 23, 2022

๐ŸŒˆ PR ์š”์•ฝ / Linked Issue

๐Ÿ“Œ ๋ณ€๊ฒฝ ์‚ฌํ•ญ

  • config ๊ด€๋ จ ๊ฐ’๋“ค์„ ๋ชจ์•„๋‘˜ ํŒŒ์ผ์„ ์ •์˜ํ•ด (src/config/index.ts) process.env์˜ ๊ฐ’๋“ค์„ ๋ถˆ๋Ÿฌ์ฃผ์—ˆ์Šต๋‹ˆ๋‹ค.
  • process.env๋ฅผ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๋Š” ์ฝ”๋“œ๋“ค์„ config ๊ฐ์ฒด๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์œผ๋กœ ๋ณ€๊ฒฝํ•ด์ฃผ์—ˆ์Šต๋‹ˆ๋‹ค.

โœ… PR check list

1. ์ œ๋ชฉ ์–‘์‹ ์ค€์ˆ˜ ํ™•์ธ

[feat] PR title

2. ํ…Œ์ŠคํŠธ ์ฝ”๋“œ ์ž‘๋™ ์Šคํฌ๋ฆฐ์ƒท

npm run mocha

โœ… After merge check list

1. ๋ฆด๋ฆฌ์ฆˆ ๋…ธํŠธ ๋ณ€๊ฒฝ

๋ฆด๋ฆฌ์ฆˆ ๋…ธํŠธ To Do์—์„œ Done์œผ๋กœ ์˜ฎ๊ธฐ๊ธฐ

2. ๋ธŒ๋žœ์น˜ ์‚ญ์ œ

@geeneve geeneve added ๐ŸŒˆ refactor ์ฝ”๋“œ ๋ฆฌํŒฉํ† ๋ง 3๏ธโƒฃ priority: low ์šฐ์„ ์ˆœ์œ„ ๋‚ฎ์Œ labels Mar 23, 2022
@geeneve geeneve requested review from seohyun-106 and holmir97 March 23, 2022 16:07
@geeneve geeneve self-assigned this Mar 23, 2022
},

// jwt ๊ด€๋ จ
jwt: {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๋ฌถ์€๊ฑฐ ๋„ˆ๋ฌด ์ข‹์•„์š”!

@@ -12,7 +13,7 @@ app.use(express.urlencoded());
app.use(express.json());

// Port Host
const PORT: number = parseInt(process.env.PORT as string, 10) || 3000 || 8080;
const PORT: number = config.port || 3000 || 8080;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ถ”ํ›„์— ํฌํŠธ๋ฒˆํ˜ธ๋„ ์ˆ˜์ •์ด ํ•„์š”ํ•˜๊ฒ ๋„ค์š”!

@geeneve geeneve merged commit e9fb302 into develop Mar 24, 2022
@geeneve geeneve deleted the refactor/configuration-manager branch April 18, 2022 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3๏ธโƒฃ priority: low ์šฐ์„ ์ˆœ์œ„ ๋‚ฎ์Œ ๐ŸŒˆ refactor ์ฝ”๋“œ ๋ฆฌํŒฉํ† ๋ง
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[refactor] Use a configuration manager
2 participants