Skip to content

Commit

Permalink
Merge pull request #5 from teamViNO/ci/1
Browse files Browse the repository at this point in the history
[fix] 초기 세팅 폴더 추가 및 db설정
  • Loading branch information
jainefer authored Jan 12, 2024
2 parents f77e926 + c9abb57 commit c87786c
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ import { BaseError } from './config/error.js';
import { status } from './config/response.status.js';
import { healthRoute } from './src/routes/health.route.js';



dotenv.config(); // .env 파일 사용 (환경 변수 관리)

const app = express();


// server setting - veiw, static, body-parser etc..
app.set('port', process.env.PORT || 3000) // 서버 포트 지정
app.use(cors()); // cors 방식 허용
Expand Down
96 changes: 96 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"dotenv": "^16.3.1",
"express": "^4.18.2",
"http-status-codes": "^2.3.0",
"mysql2": "^3.7.0",
"swagger-cli": "^4.0.4",
"swagger-jsdoc": "^6.2.8",
"swagger-ui-express": "^5.0.0"
Expand Down

0 comments on commit c87786c

Please sign in to comment.