├── .docker ├── entrypoint.dev.sh └── entrypoint.sh ├── .dockerignore ├── .editorconfig ├── .env.dev ├── .env.example ├── .env.test ├── .eslintignore ├── .eslintrc.json ├── .github ├── pull_request_template.md └── workflows │ ├── lint.yml │ ├── pull_request.yml │ └── superlinter.yml ├── .gitignore ├── .husky ├── commit-msg ├── pre-commit └── pre-push ├── .lintstagedrc.json ├── .prettierignore ├── .prettierrc ├── Dockerfile ├── Dockerfile.dev ├── README.md ├── docker-compose-dev.yml ├── docker-compose-test.yml ├── docker-compose.yml ├── jest.config.ts ├── nest-cli.json ├── package.json ├── prisma ├── migrations │ ├── 20210904213746_init │ │ └── migration.sql │ ├── 20211006030008_init │ │ └── migration.sql │ └── migration_lock.toml └── schema.prisma ├── src ├── app.module.ts ├── common │ ├── classes │ │ ├── base-repository-prisma.class.ts │ │ ├── base-repository.class.ts │ │ ├── entity.class.ts │ │ ├── index.ts │ │ └── tests │ │ │ └── base-repository.class.spec.ts │ ├── constants │ │ ├── config.ts │ │ └── index.ts │ ├── decorators │ │ ├── arg-id.decorator.ts │ │ ├── auth-user.decorator.ts │ │ ├── field-id.decorator.ts │ │ ├── index.ts │ │ ├── requires-user-auth.decorator.ts │ │ ├── roles.decorator.ts │ │ └── tests │ │ │ ├── arg-id.decorator.spec.ts │ │ │ ├── auth-user.decorator.spec.ts │ │ │ ├── field-id.decorator.spec.ts │ │ │ ├── requires-user-auth.decorator.spec.ts │ │ │ └── roles.decorator.spec.ts │ ├── errors │ │ ├── auth-invalid.error.ts │ │ ├── domain.error.ts │ │ ├── forbidden.error.ts │ │ ├── index.ts │ │ ├── invalid-arguments.error.ts │ │ ├── invalid-token.error.ts │ │ ├── object-already-exists.error.ts │ │ └── unauthenticated.error.ts │ ├── filters │ │ ├── domain-error.filter.ts │ │ ├── index.ts │ │ └── tests │ │ │ └── domain-error.filter.spec.ts │ ├── guards │ │ ├── auth.guard.ts │ │ ├── index.ts │ │ └── tests │ │ │ └── auth.guard.spec.ts │ ├── models │ │ ├── index.ts │ │ ├── page-info.model.ts │ │ └── paginated-list.model.ts │ ├── pipes │ │ ├── index.ts │ │ ├── tests │ │ │ └── validation.pipe.spec.ts │ │ └── validation.pipe.ts │ ├── test │ │ ├── index.ts │ │ └── test.util.ts │ ├── types │ │ ├── context.type.ts │ │ ├── error-code.type.ts │ │ ├── index.ts │ │ ├── object-type.type.ts │ │ ├── pagination-params.type.ts │ │ └── utils.type.ts │ ├── utils │ │ ├── cqrs.util.ts │ │ ├── format-error.util.ts │ │ ├── function.util.ts │ │ ├── index.ts │ │ └── regexps.util.ts │ └── validators │ │ ├── index.ts │ │ └── is-valid-password.validator.ts ├── i18n │ ├── en │ │ └── error.json │ └── pt-BR │ │ └── error.json ├── main.ts └── modules │ ├── global-configs │ ├── global-config.module.ts │ ├── index.ts │ └── services │ │ ├── crypt.service.ts │ │ ├── index.ts │ │ └── tests │ │ └── crypt.service.spec.ts │ ├── prisma │ ├── index.ts │ ├── prisma.module.ts │ ├── prisma.service.ts │ └── tests │ │ └── prisma.service.spec.ts │ └── users │ ├── cqrs │ ├── commands │ │ ├── index.ts │ │ ├── login │ │ │ ├── index.ts │ │ │ ├── login.command.ts │ │ │ ├── login.handler.spec.ts │ │ │ └── login.handler.ts │ │ └── sign-up │ │ │ ├── index.ts │ │ │ ├── sign-up.command.ts │ │ │ ├── sign-up.handler.spec.ts │ │ │ └── sign-up.handler.ts │ ├── index.ts │ └── queries │ │ ├── get-user-by-id │ │ ├── get-user-by-id.handler.ts │ │ ├── get-user-by-id.query.ts │ │ ├── get-user-by-id.spec.ts │ │ └── index.ts │ │ └── index.ts │ ├── dto │ ├── index.ts │ ├── login.dto.ts │ └── sign-up.dto.ts │ ├── fixtures │ ├── index.ts │ └── user.fixture.ts │ ├── index.ts │ ├── models │ ├── index.ts │ ├── user-login.model.ts │ └── user.model.ts │ ├── repositories │ ├── index.ts │ ├── tests │ │ └── user.repository.spec.ts │ └── user.repository.ts │ ├── resolvers │ ├── index.ts │ └── user.resolver.ts │ ├── services │ ├── auth.service.ts │ ├── index.ts │ ├── tests │ │ ├── auth.service.spec.ts │ │ └── user.service.spec.ts │ └── user.service.ts │ ├── types │ ├── index.ts │ └── user.repository.type.ts │ └── user.module.ts ├── test ├── jest-e2e.config.ts ├── queries │ ├── index.ts │ └── user.ts └── user.e2e-spec.ts ├── tsconfig.build.json ├── tsconfig.json └── yarn.lock /.docker/entrypoint.dev.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/.docker/entrypoint.dev.sh -------------------------------------------------------------------------------- /.docker/entrypoint.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/.docker/entrypoint.sh -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/.dockerignore -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/.editorconfig -------------------------------------------------------------------------------- /.env.dev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/.env.dev -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/.env.example -------------------------------------------------------------------------------- /.env.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/.env.test -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/.eslintignore -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/.github/pull_request_template.md -------------------------------------------------------------------------------- /.github/workflows/lint.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/.github/workflows/lint.yml -------------------------------------------------------------------------------- /.github/workflows/pull_request.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/.github/workflows/pull_request.yml -------------------------------------------------------------------------------- /.github/workflows/superlinter.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/.github/workflows/superlinter.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/commit-msg: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | .git/hooks/commit-msg $1 5 | -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | yarn lint-staged 5 | -------------------------------------------------------------------------------- /.husky/pre-push: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/.husky/pre-push -------------------------------------------------------------------------------- /.lintstagedrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/.lintstagedrc.json -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/.prettierrc -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/Dockerfile -------------------------------------------------------------------------------- /Dockerfile.dev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/Dockerfile.dev -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/README.md -------------------------------------------------------------------------------- /docker-compose-dev.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/docker-compose-dev.yml -------------------------------------------------------------------------------- /docker-compose-test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/docker-compose-test.yml -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /jest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/jest.config.ts -------------------------------------------------------------------------------- /nest-cli.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/nest-cli.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/package.json -------------------------------------------------------------------------------- /prisma/migrations/20210904213746_init/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/prisma/migrations/20210904213746_init/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/20211006030008_init/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/prisma/migrations/20211006030008_init/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/migration_lock.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/prisma/migrations/migration_lock.toml -------------------------------------------------------------------------------- /prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/prisma/schema.prisma -------------------------------------------------------------------------------- /src/app.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/app.module.ts -------------------------------------------------------------------------------- /src/common/classes/base-repository-prisma.class.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/classes/base-repository-prisma.class.ts -------------------------------------------------------------------------------- /src/common/classes/base-repository.class.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/classes/base-repository.class.ts -------------------------------------------------------------------------------- /src/common/classes/entity.class.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/classes/entity.class.ts -------------------------------------------------------------------------------- /src/common/classes/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/classes/index.ts -------------------------------------------------------------------------------- /src/common/classes/tests/base-repository.class.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/classes/tests/base-repository.class.spec.ts -------------------------------------------------------------------------------- /src/common/constants/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/constants/config.ts -------------------------------------------------------------------------------- /src/common/constants/index.ts: -------------------------------------------------------------------------------- 1 | export * from './config' 2 | -------------------------------------------------------------------------------- /src/common/decorators/arg-id.decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/decorators/arg-id.decorator.ts -------------------------------------------------------------------------------- /src/common/decorators/auth-user.decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/decorators/auth-user.decorator.ts -------------------------------------------------------------------------------- /src/common/decorators/field-id.decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/decorators/field-id.decorator.ts -------------------------------------------------------------------------------- /src/common/decorators/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/decorators/index.ts -------------------------------------------------------------------------------- /src/common/decorators/requires-user-auth.decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/decorators/requires-user-auth.decorator.ts -------------------------------------------------------------------------------- /src/common/decorators/roles.decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/decorators/roles.decorator.ts -------------------------------------------------------------------------------- /src/common/decorators/tests/arg-id.decorator.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/decorators/tests/arg-id.decorator.spec.ts -------------------------------------------------------------------------------- /src/common/decorators/tests/auth-user.decorator.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/decorators/tests/auth-user.decorator.spec.ts -------------------------------------------------------------------------------- /src/common/decorators/tests/field-id.decorator.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/decorators/tests/field-id.decorator.spec.ts -------------------------------------------------------------------------------- /src/common/decorators/tests/requires-user-auth.decorator.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/decorators/tests/requires-user-auth.decorator.spec.ts -------------------------------------------------------------------------------- /src/common/decorators/tests/roles.decorator.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/decorators/tests/roles.decorator.spec.ts -------------------------------------------------------------------------------- /src/common/errors/auth-invalid.error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/errors/auth-invalid.error.ts -------------------------------------------------------------------------------- /src/common/errors/domain.error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/errors/domain.error.ts -------------------------------------------------------------------------------- /src/common/errors/forbidden.error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/errors/forbidden.error.ts -------------------------------------------------------------------------------- /src/common/errors/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/errors/index.ts -------------------------------------------------------------------------------- /src/common/errors/invalid-arguments.error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/errors/invalid-arguments.error.ts -------------------------------------------------------------------------------- /src/common/errors/invalid-token.error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/errors/invalid-token.error.ts -------------------------------------------------------------------------------- /src/common/errors/object-already-exists.error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/errors/object-already-exists.error.ts -------------------------------------------------------------------------------- /src/common/errors/unauthenticated.error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/errors/unauthenticated.error.ts -------------------------------------------------------------------------------- /src/common/filters/domain-error.filter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/filters/domain-error.filter.ts -------------------------------------------------------------------------------- /src/common/filters/index.ts: -------------------------------------------------------------------------------- 1 | export * from './domain-error.filter' 2 | -------------------------------------------------------------------------------- /src/common/filters/tests/domain-error.filter.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/filters/tests/domain-error.filter.spec.ts -------------------------------------------------------------------------------- /src/common/guards/auth.guard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/guards/auth.guard.ts -------------------------------------------------------------------------------- /src/common/guards/index.ts: -------------------------------------------------------------------------------- 1 | export * from './auth.guard' 2 | -------------------------------------------------------------------------------- /src/common/guards/tests/auth.guard.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/guards/tests/auth.guard.spec.ts -------------------------------------------------------------------------------- /src/common/models/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/models/index.ts -------------------------------------------------------------------------------- /src/common/models/page-info.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/models/page-info.model.ts -------------------------------------------------------------------------------- /src/common/models/paginated-list.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/models/paginated-list.model.ts -------------------------------------------------------------------------------- /src/common/pipes/index.ts: -------------------------------------------------------------------------------- 1 | export * from './validation.pipe' 2 | -------------------------------------------------------------------------------- /src/common/pipes/tests/validation.pipe.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/pipes/tests/validation.pipe.spec.ts -------------------------------------------------------------------------------- /src/common/pipes/validation.pipe.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/pipes/validation.pipe.ts -------------------------------------------------------------------------------- /src/common/test/index.ts: -------------------------------------------------------------------------------- 1 | export * from './test.util' 2 | -------------------------------------------------------------------------------- /src/common/test/test.util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/test/test.util.ts -------------------------------------------------------------------------------- /src/common/types/context.type.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/types/context.type.ts -------------------------------------------------------------------------------- /src/common/types/error-code.type.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/types/error-code.type.ts -------------------------------------------------------------------------------- /src/common/types/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/types/index.ts -------------------------------------------------------------------------------- /src/common/types/object-type.type.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/types/object-type.type.ts -------------------------------------------------------------------------------- /src/common/types/pagination-params.type.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/types/pagination-params.type.ts -------------------------------------------------------------------------------- /src/common/types/utils.type.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/types/utils.type.ts -------------------------------------------------------------------------------- /src/common/utils/cqrs.util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/utils/cqrs.util.ts -------------------------------------------------------------------------------- /src/common/utils/format-error.util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/utils/format-error.util.ts -------------------------------------------------------------------------------- /src/common/utils/function.util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/utils/function.util.ts -------------------------------------------------------------------------------- /src/common/utils/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/utils/index.ts -------------------------------------------------------------------------------- /src/common/utils/regexps.util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/utils/regexps.util.ts -------------------------------------------------------------------------------- /src/common/validators/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/validators/index.ts -------------------------------------------------------------------------------- /src/common/validators/is-valid-password.validator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/common/validators/is-valid-password.validator.ts -------------------------------------------------------------------------------- /src/i18n/en/error.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/i18n/en/error.json -------------------------------------------------------------------------------- /src/i18n/pt-BR/error.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/i18n/pt-BR/error.json -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/main.ts -------------------------------------------------------------------------------- /src/modules/global-configs/global-config.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/global-configs/global-config.module.ts -------------------------------------------------------------------------------- /src/modules/global-configs/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/global-configs/index.ts -------------------------------------------------------------------------------- /src/modules/global-configs/services/crypt.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/global-configs/services/crypt.service.ts -------------------------------------------------------------------------------- /src/modules/global-configs/services/index.ts: -------------------------------------------------------------------------------- 1 | export * from './crypt.service' 2 | -------------------------------------------------------------------------------- /src/modules/global-configs/services/tests/crypt.service.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/global-configs/services/tests/crypt.service.spec.ts -------------------------------------------------------------------------------- /src/modules/prisma/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/prisma/index.ts -------------------------------------------------------------------------------- /src/modules/prisma/prisma.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/prisma/prisma.module.ts -------------------------------------------------------------------------------- /src/modules/prisma/prisma.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/prisma/prisma.service.ts -------------------------------------------------------------------------------- /src/modules/prisma/tests/prisma.service.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/prisma/tests/prisma.service.spec.ts -------------------------------------------------------------------------------- /src/modules/users/cqrs/commands/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/users/cqrs/commands/index.ts -------------------------------------------------------------------------------- /src/modules/users/cqrs/commands/login/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/users/cqrs/commands/login/index.ts -------------------------------------------------------------------------------- /src/modules/users/cqrs/commands/login/login.command.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/users/cqrs/commands/login/login.command.ts -------------------------------------------------------------------------------- /src/modules/users/cqrs/commands/login/login.handler.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/users/cqrs/commands/login/login.handler.spec.ts -------------------------------------------------------------------------------- /src/modules/users/cqrs/commands/login/login.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/users/cqrs/commands/login/login.handler.ts -------------------------------------------------------------------------------- /src/modules/users/cqrs/commands/sign-up/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/users/cqrs/commands/sign-up/index.ts -------------------------------------------------------------------------------- /src/modules/users/cqrs/commands/sign-up/sign-up.command.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/users/cqrs/commands/sign-up/sign-up.command.ts -------------------------------------------------------------------------------- /src/modules/users/cqrs/commands/sign-up/sign-up.handler.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/users/cqrs/commands/sign-up/sign-up.handler.spec.ts -------------------------------------------------------------------------------- /src/modules/users/cqrs/commands/sign-up/sign-up.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/users/cqrs/commands/sign-up/sign-up.handler.ts -------------------------------------------------------------------------------- /src/modules/users/cqrs/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/users/cqrs/index.ts -------------------------------------------------------------------------------- /src/modules/users/cqrs/queries/get-user-by-id/get-user-by-id.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/users/cqrs/queries/get-user-by-id/get-user-by-id.handler.ts -------------------------------------------------------------------------------- /src/modules/users/cqrs/queries/get-user-by-id/get-user-by-id.query.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/users/cqrs/queries/get-user-by-id/get-user-by-id.query.ts -------------------------------------------------------------------------------- /src/modules/users/cqrs/queries/get-user-by-id/get-user-by-id.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/users/cqrs/queries/get-user-by-id/get-user-by-id.spec.ts -------------------------------------------------------------------------------- /src/modules/users/cqrs/queries/get-user-by-id/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/users/cqrs/queries/get-user-by-id/index.ts -------------------------------------------------------------------------------- /src/modules/users/cqrs/queries/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/users/cqrs/queries/index.ts -------------------------------------------------------------------------------- /src/modules/users/dto/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/users/dto/index.ts -------------------------------------------------------------------------------- /src/modules/users/dto/login.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/users/dto/login.dto.ts -------------------------------------------------------------------------------- /src/modules/users/dto/sign-up.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/users/dto/sign-up.dto.ts -------------------------------------------------------------------------------- /src/modules/users/fixtures/index.ts: -------------------------------------------------------------------------------- 1 | export * from './user.fixture' 2 | -------------------------------------------------------------------------------- /src/modules/users/fixtures/user.fixture.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/users/fixtures/user.fixture.ts -------------------------------------------------------------------------------- /src/modules/users/index.ts: -------------------------------------------------------------------------------- 1 | export * from './user.module' 2 | -------------------------------------------------------------------------------- /src/modules/users/models/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/users/models/index.ts -------------------------------------------------------------------------------- /src/modules/users/models/user-login.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/users/models/user-login.model.ts -------------------------------------------------------------------------------- /src/modules/users/models/user.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/users/models/user.model.ts -------------------------------------------------------------------------------- /src/modules/users/repositories/index.ts: -------------------------------------------------------------------------------- 1 | export * from './user.repository' 2 | -------------------------------------------------------------------------------- /src/modules/users/repositories/tests/user.repository.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/users/repositories/tests/user.repository.spec.ts -------------------------------------------------------------------------------- /src/modules/users/repositories/user.repository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/users/repositories/user.repository.ts -------------------------------------------------------------------------------- /src/modules/users/resolvers/index.ts: -------------------------------------------------------------------------------- 1 | export * from './user.resolver' 2 | -------------------------------------------------------------------------------- /src/modules/users/resolvers/user.resolver.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/users/resolvers/user.resolver.ts -------------------------------------------------------------------------------- /src/modules/users/services/auth.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/users/services/auth.service.ts -------------------------------------------------------------------------------- /src/modules/users/services/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/users/services/index.ts -------------------------------------------------------------------------------- /src/modules/users/services/tests/auth.service.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/users/services/tests/auth.service.spec.ts -------------------------------------------------------------------------------- /src/modules/users/services/tests/user.service.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/users/services/tests/user.service.spec.ts -------------------------------------------------------------------------------- /src/modules/users/services/user.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/users/services/user.service.ts -------------------------------------------------------------------------------- /src/modules/users/types/index.ts: -------------------------------------------------------------------------------- 1 | export * from './user.repository.type' 2 | -------------------------------------------------------------------------------- /src/modules/users/types/user.repository.type.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/users/types/user.repository.type.ts -------------------------------------------------------------------------------- /src/modules/users/user.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/src/modules/users/user.module.ts -------------------------------------------------------------------------------- /test/jest-e2e.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/test/jest-e2e.config.ts -------------------------------------------------------------------------------- /test/queries/index.ts: -------------------------------------------------------------------------------- 1 | export * from './user' 2 | -------------------------------------------------------------------------------- /test/queries/user.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/test/queries/user.ts -------------------------------------------------------------------------------- /test/user.e2e-spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/test/user.e2e-spec.ts -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/tsconfig.build.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/greguintow/ultimate-nest-graphql-backend/HEAD/yarn.lock --------------------------------------------------------------------------------