Skip to content

Commit

Permalink
[feat] 초기 세팅 #1
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Aug 3, 2023
1 parent ce976aa commit 589c71c
Show file tree
Hide file tree
Showing 20 changed files with 20 additions and 10 deletions.
Empty file modified .github/ISSUE_TEMPLATE/todo.md
100644 → 100755
Empty file.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified config/baseResponseStatus.js
100644 → 100755
Empty file.
8 changes: 4 additions & 4 deletions config/database.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
1 change: 1 addition & 0 deletions config/express.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Empty file modified config/jwtMiddleware.js
100644 → 100755
Empty file.
Empty file modified config/response.js
100644 → 100755
Empty file.
Empty file modified config/secret.js
100644 → 100755
Empty file.
Empty file modified config/winston.js
100644 → 100755
Empty file.
Empty file modified index.js
100644 → 100755
Empty file.
12 changes: 6 additions & 6 deletions package-lock.json
100644 → 100755

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

Empty file modified package.json
100644 → 100755
Empty file.
Empty file modified src/app/User/userController.js
100644 → 100755
Empty file.
Empty file modified src/app/User/userDao.js
100644 → 100755
Empty file.
Empty file modified src/app/User/userProvider.js
100644 → 100755
Empty file.
Empty file modified src/app/User/userRoute.js
100644 → 100755
Empty file.
Empty file modified src/app/User/userService.js
100644 → 100755
Empty file.
4 changes: 4 additions & 0 deletions src/app/test/testController.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
exports.default = async function (req, res) {
console.log("GET 메소드를 사용하는 /test 라우팅 연결이 성공하였습니다.");
res.json({message:"GET 메소드를 사용하는 /test 라우팅 연결이 성공하였습니다."});
};
5 changes: 5 additions & 0 deletions src/app/test/testRoute.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = function(app) {
const test = require('./testController');
//const jwtMiddleware = require('../../../config/jwtMiddleware');
app.get('/test', test.default);
}

0 comments on commit 589c71c

Please sign in to comment.