├── .dockerignore ├── .eslintrc.js ├── .github └── workflows │ ├── deploy.yml │ └── test.yml ├── .gitignore ├── .prettierrc ├── Dockerfile ├── README.md ├── docker-compose.yml ├── nest-cli.json ├── package.json ├── src ├── app.module.ts ├── authentication │ ├── authentication.controller.ts │ ├── authentication.module.ts │ ├── authentication.service.test.ts │ ├── authentication.service.ts │ ├── dto │ │ ├── logIn.dto.ts │ │ └── register.dto.ts │ ├── jwt-authentication.guard.ts │ ├── jwt.strategy.ts │ ├── local.strategy.ts │ ├── localAuthentication.guard.ts │ ├── requestWithUser.interface.ts │ └── tokenPayload.interface.ts ├── categories │ ├── categories.controller.ts │ ├── categories.module.ts │ ├── categories.service.md │ ├── categories.service.ts │ ├── category.entity.ts │ ├── dto │ │ ├── createCategory.dto.ts │ │ └── updateCategory.dto.ts │ └── exceptions │ │ └── categoryNotFound.exception.ts ├── database │ ├── database.module.ts │ └── postgresErrorCode.enum.ts ├── health │ ├── health.controller.ts │ └── health.module.ts ├── main.ts ├── posts │ ├── dto │ │ ├── createPost.dto.ts │ │ └── updatePost.dto.ts │ ├── exceptions │ │ └── postNotFound.exception.ts │ ├── post.entity.ts │ ├── posts.controller.ts │ ├── posts.module.ts │ └── posts.service.ts ├── users │ ├── address.entity.ts │ ├── dto │ │ └── createUser.dto.ts │ ├── user.entity.ts │ ├── users.module.ts │ └── users.service.ts └── utils │ ├── findOneParams.ts │ └── logger.interceptor.ts ├── tsconfig.build.json └── tsconfig.json /.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/.dockerignore -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.github/workflows/deploy.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/.github/workflows/deploy.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/.prettierrc -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/Dockerfile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/README.md -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /nest-cli.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/nest-cli.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/package.json -------------------------------------------------------------------------------- /src/app.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/app.module.ts -------------------------------------------------------------------------------- /src/authentication/authentication.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/authentication/authentication.controller.ts -------------------------------------------------------------------------------- /src/authentication/authentication.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/authentication/authentication.module.ts -------------------------------------------------------------------------------- /src/authentication/authentication.service.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/authentication/authentication.service.test.ts -------------------------------------------------------------------------------- /src/authentication/authentication.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/authentication/authentication.service.ts -------------------------------------------------------------------------------- /src/authentication/dto/logIn.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/authentication/dto/logIn.dto.ts -------------------------------------------------------------------------------- /src/authentication/dto/register.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/authentication/dto/register.dto.ts -------------------------------------------------------------------------------- /src/authentication/jwt-authentication.guard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/authentication/jwt-authentication.guard.ts -------------------------------------------------------------------------------- /src/authentication/jwt.strategy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/authentication/jwt.strategy.ts -------------------------------------------------------------------------------- /src/authentication/local.strategy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/authentication/local.strategy.ts -------------------------------------------------------------------------------- /src/authentication/localAuthentication.guard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/authentication/localAuthentication.guard.ts -------------------------------------------------------------------------------- /src/authentication/requestWithUser.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/authentication/requestWithUser.interface.ts -------------------------------------------------------------------------------- /src/authentication/tokenPayload.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/authentication/tokenPayload.interface.ts -------------------------------------------------------------------------------- /src/categories/categories.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/categories/categories.controller.ts -------------------------------------------------------------------------------- /src/categories/categories.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/categories/categories.module.ts -------------------------------------------------------------------------------- /src/categories/categories.service.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/categories/categories.service.md -------------------------------------------------------------------------------- /src/categories/categories.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/categories/categories.service.ts -------------------------------------------------------------------------------- /src/categories/category.entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/categories/category.entity.ts -------------------------------------------------------------------------------- /src/categories/dto/createCategory.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/categories/dto/createCategory.dto.ts -------------------------------------------------------------------------------- /src/categories/dto/updateCategory.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/categories/dto/updateCategory.dto.ts -------------------------------------------------------------------------------- /src/categories/exceptions/categoryNotFound.exception.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/categories/exceptions/categoryNotFound.exception.ts -------------------------------------------------------------------------------- /src/database/database.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/database/database.module.ts -------------------------------------------------------------------------------- /src/database/postgresErrorCode.enum.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/database/postgresErrorCode.enum.ts -------------------------------------------------------------------------------- /src/health/health.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/health/health.controller.ts -------------------------------------------------------------------------------- /src/health/health.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/health/health.module.ts -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/main.ts -------------------------------------------------------------------------------- /src/posts/dto/createPost.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/posts/dto/createPost.dto.ts -------------------------------------------------------------------------------- /src/posts/dto/updatePost.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/posts/dto/updatePost.dto.ts -------------------------------------------------------------------------------- /src/posts/exceptions/postNotFound.exception.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/posts/exceptions/postNotFound.exception.ts -------------------------------------------------------------------------------- /src/posts/post.entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/posts/post.entity.ts -------------------------------------------------------------------------------- /src/posts/posts.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/posts/posts.controller.ts -------------------------------------------------------------------------------- /src/posts/posts.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/posts/posts.module.ts -------------------------------------------------------------------------------- /src/posts/posts.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/posts/posts.service.ts -------------------------------------------------------------------------------- /src/users/address.entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/users/address.entity.ts -------------------------------------------------------------------------------- /src/users/dto/createUser.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/users/dto/createUser.dto.ts -------------------------------------------------------------------------------- /src/users/user.entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/users/user.entity.ts -------------------------------------------------------------------------------- /src/users/users.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/users/users.module.ts -------------------------------------------------------------------------------- /src/users/users.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/users/users.service.ts -------------------------------------------------------------------------------- /src/utils/findOneParams.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/utils/findOneParams.ts -------------------------------------------------------------------------------- /src/utils/logger.interceptor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/src/utils/logger.interceptor.ts -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/tsconfig.build.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwanago/nestjs-dockerized/HEAD/tsconfig.json --------------------------------------------------------------------------------