From 589c71ca03dcd2911da7ade6d8015db2a0626d8c Mon Sep 17 00:00:00 2001 From: root Date: Thu, 3 Aug 2023 16:42:02 +0000 Subject: [PATCH] =?UTF-8?q?[feat]=20=EC=B4=88=EA=B8=B0=20=EC=84=B8?= =?UTF-8?q?=ED=8C=85=20#1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/ISSUE_TEMPLATE/todo.md | 0 .gitignore | 0 README.md | 0 config/baseResponseStatus.js | 0 config/database.js | 8 ++++---- config/express.js | 1 + config/jwtMiddleware.js | 0 config/response.js | 0 config/secret.js | 0 config/winston.js | 0 index.js | 0 package-lock.json | 12 ++++++------ package.json | 0 src/app/User/userController.js | 0 src/app/User/userDao.js | 0 src/app/User/userProvider.js | 0 src/app/User/userRoute.js | 0 src/app/User/userService.js | 0 src/app/test/testController.js | 4 ++++ src/app/test/testRoute.js | 5 +++++ 20 files changed, 20 insertions(+), 10 deletions(-) mode change 100644 => 100755 .github/ISSUE_TEMPLATE/todo.md mode change 100644 => 100755 .gitignore mode change 100644 => 100755 README.md mode change 100644 => 100755 config/baseResponseStatus.js mode change 100644 => 100755 config/database.js mode change 100644 => 100755 config/express.js mode change 100644 => 100755 config/jwtMiddleware.js mode change 100644 => 100755 config/response.js mode change 100644 => 100755 config/secret.js mode change 100644 => 100755 config/winston.js mode change 100644 => 100755 index.js mode change 100644 => 100755 package-lock.json mode change 100644 => 100755 package.json mode change 100644 => 100755 src/app/User/userController.js mode change 100644 => 100755 src/app/User/userDao.js mode change 100644 => 100755 src/app/User/userProvider.js mode change 100644 => 100755 src/app/User/userRoute.js mode change 100644 => 100755 src/app/User/userService.js create mode 100644 src/app/test/testController.js create mode 100644 src/app/test/testRoute.js diff --git a/.github/ISSUE_TEMPLATE/todo.md b/.github/ISSUE_TEMPLATE/todo.md old mode 100644 new mode 100755 diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/config/baseResponseStatus.js b/config/baseResponseStatus.js old mode 100644 new mode 100755 diff --git a/config/database.js b/config/database.js old mode 100644 new mode 100755 index 03146d0..d1ecd15 --- a/config/database.js +++ b/config/database.js @@ -3,11 +3,11 @@ const {logger} = require('./winston'); // TODO: 본인의 DB 계정 입력 const pool = mysql.createPool({ - host: '', - user: '', + host: 'aniwear.ckekicus1alq.ap-northeast-2.rds.amazonaws.com', + user: 'admin', port: '3306', - password: '', - database: '' + password: 'aniwear1234', + database: 'aniwear' }); module.exports = { diff --git a/config/express.js b/config/express.js old mode 100644 new mode 100755 index d564db0..bf39a9b --- a/config/express.js +++ b/config/express.js @@ -19,6 +19,7 @@ module.exports = function () { /* App (Android, iOS) */ // TODO: 도메인을 추가할 경우 이곳에 Route를 추가하세요. require('../src/app/User/userRoute')(app); + require('../src/app/test/testRoute')(app); // require('../src/app/Board/boardRoute')(app); return app; diff --git a/config/jwtMiddleware.js b/config/jwtMiddleware.js old mode 100644 new mode 100755 diff --git a/config/response.js b/config/response.js old mode 100644 new mode 100755 diff --git a/config/secret.js b/config/secret.js old mode 100644 new mode 100755 diff --git a/config/winston.js b/config/winston.js old mode 100644 new mode 100755 diff --git a/index.js b/index.js old mode 100644 new mode 100755 diff --git a/package-lock.json b/package-lock.json old mode 100644 new mode 100755 index 2255e65..2fa8afd --- a/package-lock.json +++ b/package-lock.json @@ -995,9 +995,9 @@ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" }, "node_modules/nodemon/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "bin": { "semver": "bin/semver" } @@ -1208,9 +1208,9 @@ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, "node_modules/semver": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.0.tgz", - "integrity": "sha512-+XC0AD/R7Q2mPSRuy2Id0+CGTZ98+8f+KvwirxOKIEyid+XSx6HbC63p+O4IndTHuX5Z+JxQ0TghCkO5Cg/2HA==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dependencies": { "lru-cache": "^6.0.0" }, diff --git a/package.json b/package.json old mode 100644 new mode 100755 diff --git a/src/app/User/userController.js b/src/app/User/userController.js old mode 100644 new mode 100755 diff --git a/src/app/User/userDao.js b/src/app/User/userDao.js old mode 100644 new mode 100755 diff --git a/src/app/User/userProvider.js b/src/app/User/userProvider.js old mode 100644 new mode 100755 diff --git a/src/app/User/userRoute.js b/src/app/User/userRoute.js old mode 100644 new mode 100755 diff --git a/src/app/User/userService.js b/src/app/User/userService.js old mode 100644 new mode 100755 diff --git a/src/app/test/testController.js b/src/app/test/testController.js new file mode 100644 index 0000000..32704bd --- /dev/null +++ b/src/app/test/testController.js @@ -0,0 +1,4 @@ +exports.default = async function (req, res) { + console.log("GET 메소드를 사용하는 /test 라우팅 연결이 성공하였습니다."); + res.json({message:"GET 메소드를 사용하는 /test 라우팅 연결이 성공하였습니다."}); +}; \ No newline at end of file diff --git a/src/app/test/testRoute.js b/src/app/test/testRoute.js new file mode 100644 index 0000000..9da3938 --- /dev/null +++ b/src/app/test/testRoute.js @@ -0,0 +1,5 @@ +module.exports = function(app) { + const test = require('./testController'); + //const jwtMiddleware = require('../../../config/jwtMiddleware'); + app.get('/test', test.default); +} \ No newline at end of file