├── .eslintrc.js ├── .github ├── ISSUE_TEMPLATE.md ├── PULL_REQUEST_TEMPLATE.md └── workflows │ └── deploy.yml ├── .gitignore ├── .husky ├── pre-commit └── pre-push ├── .prettierrc.js ├── README.md ├── nodemon.json ├── package.json ├── src ├── config │ ├── index.ts │ ├── multerConfig.ts │ └── s3Config.ts ├── controllers │ ├── auth │ │ └── AuthController.ts │ ├── index.ts │ └── timeTravel │ │ └── TimeTravelController.ts ├── index.ts ├── interfaces │ ├── common │ │ ├── JwtPayloadInfo.ts │ │ └── PostBaseResponseDto.ts │ ├── message │ │ └── MessageInfo.ts │ ├── oldMedia │ │ ├── OldMediaInfo.ts │ │ └── OldMediaResponseDto.ts │ ├── timeTravel │ │ ├── GetAnswersDto.ts │ │ ├── GetQuestionDto.ts │ │ ├── GetTimeTravelAllDto.ts │ │ ├── GetTimeTravelDetailDto.ts │ │ ├── TimeTravelCountDto.ts │ │ ├── TimeTravelCreateDto.ts │ │ └── TimeTravelInfo.ts │ └── user │ │ ├── UserInfo.ts │ │ ├── UserLoginDto.ts │ │ └── UserLogoutDto.ts ├── loaders │ └── db.ts ├── middlewares │ └── auth.ts ├── models │ ├── Message.ts │ ├── OldMedia.ts │ ├── TimeTravel.ts │ └── User.ts ├── modules │ ├── checkObjectIdValid.ts │ ├── exceptionMessage.ts │ ├── jwtHandler.ts │ ├── responseMessage.ts │ ├── shuffleQuestion.ts │ ├── slackAPI.ts │ ├── slackMessage.ts │ ├── statusCode.ts │ └── util.ts ├── routes │ ├── AuthRouter.ts │ ├── TimeTravelRouter.ts │ └── index.ts ├── services │ ├── auth │ │ ├── AuthService.ts │ │ └── PushAlarmService.ts │ └── timetravel │ │ └── TimeTravelService.ts ├── test │ ├── auth.spec.ts │ ├── image │ │ └── test.JPG │ └── timeTravel.spec.ts └── types │ └── express.d.ts ├── tsconfig.json └── yarn.lock /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/.github/ISSUE_TEMPLATE.md -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.github/workflows/deploy.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/.github/workflows/deploy.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | . "$(dirname -- "$0")/_/husky.sh" 3 | 4 | yarn lint-staged -------------------------------------------------------------------------------- /.husky/pre-push: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | . "$(dirname -- "$0")/_/husky.sh" 3 | 4 | yarn run test 5 | -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/.prettierrc.js -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/README.md -------------------------------------------------------------------------------- /nodemon.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/nodemon.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/package.json -------------------------------------------------------------------------------- /src/config/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/config/index.ts -------------------------------------------------------------------------------- /src/config/multerConfig.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/config/multerConfig.ts -------------------------------------------------------------------------------- /src/config/s3Config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/config/s3Config.ts -------------------------------------------------------------------------------- /src/controllers/auth/AuthController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/controllers/auth/AuthController.ts -------------------------------------------------------------------------------- /src/controllers/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/controllers/index.ts -------------------------------------------------------------------------------- /src/controllers/timeTravel/TimeTravelController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/controllers/timeTravel/TimeTravelController.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/interfaces/common/JwtPayloadInfo.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/interfaces/common/JwtPayloadInfo.ts -------------------------------------------------------------------------------- /src/interfaces/common/PostBaseResponseDto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/interfaces/common/PostBaseResponseDto.ts -------------------------------------------------------------------------------- /src/interfaces/message/MessageInfo.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/interfaces/message/MessageInfo.ts -------------------------------------------------------------------------------- /src/interfaces/oldMedia/OldMediaInfo.ts: -------------------------------------------------------------------------------- 1 | export interface OldMediaInfo { 2 | year: number; 3 | image: string; 4 | } 5 | -------------------------------------------------------------------------------- /src/interfaces/oldMedia/OldMediaResponseDto.ts: -------------------------------------------------------------------------------- 1 | export interface OldMediaResponseDto { 2 | images: string[]; 3 | } -------------------------------------------------------------------------------- /src/interfaces/timeTravel/GetAnswersDto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/interfaces/timeTravel/GetAnswersDto.ts -------------------------------------------------------------------------------- /src/interfaces/timeTravel/GetQuestionDto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/interfaces/timeTravel/GetQuestionDto.ts -------------------------------------------------------------------------------- /src/interfaces/timeTravel/GetTimeTravelAllDto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/interfaces/timeTravel/GetTimeTravelAllDto.ts -------------------------------------------------------------------------------- /src/interfaces/timeTravel/GetTimeTravelDetailDto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/interfaces/timeTravel/GetTimeTravelDetailDto.ts -------------------------------------------------------------------------------- /src/interfaces/timeTravel/TimeTravelCountDto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/interfaces/timeTravel/TimeTravelCountDto.ts -------------------------------------------------------------------------------- /src/interfaces/timeTravel/TimeTravelCreateDto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/interfaces/timeTravel/TimeTravelCreateDto.ts -------------------------------------------------------------------------------- /src/interfaces/timeTravel/TimeTravelInfo.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/interfaces/timeTravel/TimeTravelInfo.ts -------------------------------------------------------------------------------- /src/interfaces/user/UserInfo.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/interfaces/user/UserInfo.ts -------------------------------------------------------------------------------- /src/interfaces/user/UserLoginDto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/interfaces/user/UserLoginDto.ts -------------------------------------------------------------------------------- /src/interfaces/user/UserLogoutDto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/interfaces/user/UserLogoutDto.ts -------------------------------------------------------------------------------- /src/loaders/db.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/loaders/db.ts -------------------------------------------------------------------------------- /src/middlewares/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/middlewares/auth.ts -------------------------------------------------------------------------------- /src/models/Message.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/models/Message.ts -------------------------------------------------------------------------------- /src/models/OldMedia.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/models/OldMedia.ts -------------------------------------------------------------------------------- /src/models/TimeTravel.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/models/TimeTravel.ts -------------------------------------------------------------------------------- /src/models/User.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/models/User.ts -------------------------------------------------------------------------------- /src/modules/checkObjectIdValid.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/modules/checkObjectIdValid.ts -------------------------------------------------------------------------------- /src/modules/exceptionMessage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/modules/exceptionMessage.ts -------------------------------------------------------------------------------- /src/modules/jwtHandler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/modules/jwtHandler.ts -------------------------------------------------------------------------------- /src/modules/responseMessage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/modules/responseMessage.ts -------------------------------------------------------------------------------- /src/modules/shuffleQuestion.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/modules/shuffleQuestion.ts -------------------------------------------------------------------------------- /src/modules/slackAPI.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/modules/slackAPI.ts -------------------------------------------------------------------------------- /src/modules/slackMessage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/modules/slackMessage.ts -------------------------------------------------------------------------------- /src/modules/statusCode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/modules/statusCode.ts -------------------------------------------------------------------------------- /src/modules/util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/modules/util.ts -------------------------------------------------------------------------------- /src/routes/AuthRouter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/routes/AuthRouter.ts -------------------------------------------------------------------------------- /src/routes/TimeTravelRouter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/routes/TimeTravelRouter.ts -------------------------------------------------------------------------------- /src/routes/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/routes/index.ts -------------------------------------------------------------------------------- /src/services/auth/AuthService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/services/auth/AuthService.ts -------------------------------------------------------------------------------- /src/services/auth/PushAlarmService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/services/auth/PushAlarmService.ts -------------------------------------------------------------------------------- /src/services/timetravel/TimeTravelService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/services/timetravel/TimeTravelService.ts -------------------------------------------------------------------------------- /src/test/auth.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/test/auth.spec.ts -------------------------------------------------------------------------------- /src/test/image/test.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/test/image/test.JPG -------------------------------------------------------------------------------- /src/test/timeTravel.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/test/timeTravel.spec.ts -------------------------------------------------------------------------------- /src/types/express.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/src/types/express.d.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TeamDearToday/Deartoday-Server/HEAD/yarn.lock --------------------------------------------------------------------------------