├── .editorconfig ├── .gitignore ├── .travis.yml ├── Dockerfile ├── LICENSE ├── README.md ├── docker-compose.yml ├── gulpfile.js ├── package.json ├── pm2.json ├── src ├── api │ ├── tasks │ │ ├── index.ts │ │ ├── routes.ts │ │ ├── task-controller.ts │ │ ├── task-validator.ts │ │ └── task.ts │ └── users │ │ ├── index.ts │ │ ├── routes.ts │ │ ├── user-controller.ts │ │ ├── user-validator.ts │ │ └── user.ts ├── configurations │ ├── config.dev.json │ ├── config.test.json │ └── index.ts ├── database.ts ├── index.ts ├── interfaces │ └── request.ts ├── plugins │ ├── interfaces.ts │ ├── jwt-auth │ │ └── index.ts │ ├── logger │ │ └── index.ts │ ├── logging │ │ ├── index.ts │ │ └── logging.ts │ └── swagger │ │ └── index.ts ├── server.ts └── utils │ └── helper.ts ├── test ├── tasks │ └── task-controller-tests.ts ├── users │ └── users-controller-tests.ts └── utils.ts ├── tsconfig.json └── tslint.json /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/.travis.yml -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/README.md -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /gulpfile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/gulpfile.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/package.json -------------------------------------------------------------------------------- /pm2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/pm2.json -------------------------------------------------------------------------------- /src/api/tasks/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/src/api/tasks/index.ts -------------------------------------------------------------------------------- /src/api/tasks/routes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/src/api/tasks/routes.ts -------------------------------------------------------------------------------- /src/api/tasks/task-controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/src/api/tasks/task-controller.ts -------------------------------------------------------------------------------- /src/api/tasks/task-validator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/src/api/tasks/task-validator.ts -------------------------------------------------------------------------------- /src/api/tasks/task.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/src/api/tasks/task.ts -------------------------------------------------------------------------------- /src/api/users/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/src/api/users/index.ts -------------------------------------------------------------------------------- /src/api/users/routes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/src/api/users/routes.ts -------------------------------------------------------------------------------- /src/api/users/user-controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/src/api/users/user-controller.ts -------------------------------------------------------------------------------- /src/api/users/user-validator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/src/api/users/user-validator.ts -------------------------------------------------------------------------------- /src/api/users/user.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/src/api/users/user.ts -------------------------------------------------------------------------------- /src/configurations/config.dev.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/src/configurations/config.dev.json -------------------------------------------------------------------------------- /src/configurations/config.test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/src/configurations/config.test.json -------------------------------------------------------------------------------- /src/configurations/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/src/configurations/index.ts -------------------------------------------------------------------------------- /src/database.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/src/database.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/interfaces/request.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/src/interfaces/request.ts -------------------------------------------------------------------------------- /src/plugins/interfaces.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/src/plugins/interfaces.ts -------------------------------------------------------------------------------- /src/plugins/jwt-auth/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/src/plugins/jwt-auth/index.ts -------------------------------------------------------------------------------- /src/plugins/logger/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/src/plugins/logger/index.ts -------------------------------------------------------------------------------- /src/plugins/logging/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/src/plugins/logging/index.ts -------------------------------------------------------------------------------- /src/plugins/logging/logging.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/src/plugins/logging/logging.ts -------------------------------------------------------------------------------- /src/plugins/swagger/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/src/plugins/swagger/index.ts -------------------------------------------------------------------------------- /src/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/src/server.ts -------------------------------------------------------------------------------- /src/utils/helper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/src/utils/helper.ts -------------------------------------------------------------------------------- /test/tasks/task-controller-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/test/tasks/task-controller-tests.ts -------------------------------------------------------------------------------- /test/users/users-controller-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/test/users/users-controller-tests.ts -------------------------------------------------------------------------------- /test/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/test/utils.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwyl/hapi-typescript-example/HEAD/tslint.json --------------------------------------------------------------------------------