├── .gitignore ├── .prettierignore ├── .prettierrc ├── .vscode └── launch.json ├── README.md ├── doc ├── readme.md └── todo.md ├── e2e ├── jest-e2e.json └── photo │ └── photo.e2e-spec.ts ├── gulpfile.js ├── jest.json ├── nestfy.json ├── package.json ├── src ├── lib │ ├── config │ │ ├── index.ts │ │ └── interface.ts │ ├── constants.ts │ ├── decorators │ │ ├── auth.decorator.ts │ │ ├── config │ │ │ ├── symbols.ts │ │ │ └── task.ts │ │ ├── index.ts │ │ └── task.decorator.ts │ ├── filters │ │ └── error.filter.ts │ ├── guards │ │ └── auth.guard.ts │ ├── index.ts │ ├── interceptors │ │ ├── exception.interceptor.ts │ │ ├── logging.interceptor.ts │ │ ├── timeout.interceptor.ts │ │ └── transform.interceptor.ts │ ├── middlewares │ │ ├── request-log.middleware.ts │ │ └── verify-token.middleware.ts │ ├── pipes │ │ ├── index.ts │ │ └── validation.pipe.ts │ ├── tsconfig.json │ └── utils │ │ ├── app.util.ts │ │ ├── index.ts │ │ ├── log.util.ts │ │ ├── response.util.ts │ │ └── token.util.ts ├── testing │ ├── common │ │ └── config │ │ │ ├── config.dev.ts │ │ │ ├── config.prod.ts │ │ │ ├── errors.ts │ │ │ ├── index.ts │ │ │ └── setting.ts │ ├── modules │ │ ├── app.module.ts │ │ └── photo │ │ │ ├── dto │ │ │ ├── create-photo.dto.ts │ │ │ └── query-photos.dto.ts │ │ │ ├── photo.controller.spec.ts │ │ │ ├── photo.controller.ts │ │ │ ├── photo.entity.ts │ │ │ ├── photo.module.ts │ │ │ └── photo.service.ts │ ├── server.ts │ └── tsconfig.json └── tsconfig.base.json ├── tsconfig.json ├── tslint.json └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/.prettierrc -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/README.md -------------------------------------------------------------------------------- /doc/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/doc/readme.md -------------------------------------------------------------------------------- /doc/todo.md: -------------------------------------------------------------------------------- 1 | 2 | # TODOs 3 | 4 | - 考虑配置文件 5 | - 单元测试 6 | 7 | - npm publish --registry http://192.168.1.203:7000 -------------------------------------------------------------------------------- /e2e/jest-e2e.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/e2e/jest-e2e.json -------------------------------------------------------------------------------- /e2e/photo/photo.e2e-spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/e2e/photo/photo.e2e-spec.ts -------------------------------------------------------------------------------- /gulpfile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/gulpfile.js -------------------------------------------------------------------------------- /jest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/jest.json -------------------------------------------------------------------------------- /nestfy.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/nestfy.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/package.json -------------------------------------------------------------------------------- /src/lib/config/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/lib/config/index.ts -------------------------------------------------------------------------------- /src/lib/config/interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/lib/config/interface.ts -------------------------------------------------------------------------------- /src/lib/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/lib/constants.ts -------------------------------------------------------------------------------- /src/lib/decorators/auth.decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/lib/decorators/auth.decorator.ts -------------------------------------------------------------------------------- /src/lib/decorators/config/symbols.ts: -------------------------------------------------------------------------------- 1 | export const TASK_SYMBOL = Symbol('Task'); 2 | -------------------------------------------------------------------------------- /src/lib/decorators/config/task.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/lib/decorators/config/task.ts -------------------------------------------------------------------------------- /src/lib/decorators/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/lib/decorators/index.ts -------------------------------------------------------------------------------- /src/lib/decorators/task.decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/lib/decorators/task.decorator.ts -------------------------------------------------------------------------------- /src/lib/filters/error.filter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/lib/filters/error.filter.ts -------------------------------------------------------------------------------- /src/lib/guards/auth.guard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/lib/guards/auth.guard.ts -------------------------------------------------------------------------------- /src/lib/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/lib/index.ts -------------------------------------------------------------------------------- /src/lib/interceptors/exception.interceptor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/lib/interceptors/exception.interceptor.ts -------------------------------------------------------------------------------- /src/lib/interceptors/logging.interceptor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/lib/interceptors/logging.interceptor.ts -------------------------------------------------------------------------------- /src/lib/interceptors/timeout.interceptor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/lib/interceptors/timeout.interceptor.ts -------------------------------------------------------------------------------- /src/lib/interceptors/transform.interceptor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/lib/interceptors/transform.interceptor.ts -------------------------------------------------------------------------------- /src/lib/middlewares/request-log.middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/lib/middlewares/request-log.middleware.ts -------------------------------------------------------------------------------- /src/lib/middlewares/verify-token.middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/lib/middlewares/verify-token.middleware.ts -------------------------------------------------------------------------------- /src/lib/pipes/index.ts: -------------------------------------------------------------------------------- 1 | export * from './validation.pipe'; 2 | -------------------------------------------------------------------------------- /src/lib/pipes/validation.pipe.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/lib/pipes/validation.pipe.ts -------------------------------------------------------------------------------- /src/lib/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/lib/tsconfig.json -------------------------------------------------------------------------------- /src/lib/utils/app.util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/lib/utils/app.util.ts -------------------------------------------------------------------------------- /src/lib/utils/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/lib/utils/index.ts -------------------------------------------------------------------------------- /src/lib/utils/log.util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/lib/utils/log.util.ts -------------------------------------------------------------------------------- /src/lib/utils/response.util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/lib/utils/response.util.ts -------------------------------------------------------------------------------- /src/lib/utils/token.util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/lib/utils/token.util.ts -------------------------------------------------------------------------------- /src/testing/common/config/config.dev.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/testing/common/config/config.dev.ts -------------------------------------------------------------------------------- /src/testing/common/config/config.prod.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/testing/common/config/config.prod.ts -------------------------------------------------------------------------------- /src/testing/common/config/errors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/testing/common/config/errors.ts -------------------------------------------------------------------------------- /src/testing/common/config/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/testing/common/config/index.ts -------------------------------------------------------------------------------- /src/testing/common/config/setting.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/testing/common/config/setting.ts -------------------------------------------------------------------------------- /src/testing/modules/app.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/testing/modules/app.module.ts -------------------------------------------------------------------------------- /src/testing/modules/photo/dto/create-photo.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/testing/modules/photo/dto/create-photo.dto.ts -------------------------------------------------------------------------------- /src/testing/modules/photo/dto/query-photos.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/testing/modules/photo/dto/query-photos.dto.ts -------------------------------------------------------------------------------- /src/testing/modules/photo/photo.controller.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/testing/modules/photo/photo.controller.spec.ts -------------------------------------------------------------------------------- /src/testing/modules/photo/photo.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/testing/modules/photo/photo.controller.ts -------------------------------------------------------------------------------- /src/testing/modules/photo/photo.entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/testing/modules/photo/photo.entity.ts -------------------------------------------------------------------------------- /src/testing/modules/photo/photo.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/testing/modules/photo/photo.module.ts -------------------------------------------------------------------------------- /src/testing/modules/photo/photo.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/testing/modules/photo/photo.service.ts -------------------------------------------------------------------------------- /src/testing/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/testing/server.ts -------------------------------------------------------------------------------- /src/testing/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/testing/tsconfig.json -------------------------------------------------------------------------------- /src/tsconfig.base.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/src/tsconfig.base.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/tslint.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qinyang1980/nestfy/HEAD/yarn.lock --------------------------------------------------------------------------------