├── .env ├── .gitignore ├── .prettierrc ├── .vscode ├── launch.json └── settings.json ├── README.md ├── nest-cli.json ├── nodemon-debug.json ├── nodemon.json ├── orm.config.json ├── package.json ├── src ├── app.controller.spec.ts ├── app.controller.ts ├── app.module.ts ├── app.service.ts ├── config │ ├── config.keys.ts │ ├── config.module.ts │ └── config.service.ts ├── database │ ├── database.module.ts │ ├── database.service.ts │ └── migrations │ │ ├── 1563143249133-first_migration.ts │ │ ├── 1563145752216-second_migration.ts │ │ ├── 1563147222457-fix_user_details.ts │ │ ├── 1563153043386-fix_date.ts │ │ └── 1563155067432-fix_name_detail.ts ├── main.ts ├── modules │ ├── auth │ │ ├── auth.controller.spec.ts │ │ ├── auth.controller.ts │ │ ├── auth.module.ts │ │ ├── auth.repository.ts │ │ ├── auth.service.spec.ts │ │ ├── auth.service.ts │ │ ├── dto │ │ │ ├── index.ts │ │ │ ├── signin.dto.ts │ │ │ └── signup.dto.ts │ │ ├── jwt-payload.interface.ts │ │ ├── strategies │ │ │ └── jwt.strategy.ts │ │ └── user.decorator.ts │ ├── role │ │ ├── decorators │ │ │ └── role.decorator.ts │ │ ├── guards │ │ │ ├── role.guard.spec.ts │ │ │ └── role.guard.ts │ │ ├── role.controller.ts │ │ ├── role.entity.ts │ │ ├── role.module.ts │ │ ├── role.repository.ts │ │ ├── role.service.ts │ │ └── roletype.enum.ts │ └── user │ │ ├── dto │ │ └── user.dto.ts │ │ ├── user.controller.spec.ts │ │ ├── user.controller.ts │ │ ├── user.details.entity.ts │ │ ├── user.entity.ts │ │ ├── user.module.ts │ │ ├── user.repository.ts │ │ ├── user.service.spec.ts │ │ └── user.service.ts └── shared │ ├── entity-status.num.ts │ └── shared.module.ts ├── test ├── app.e2e-spec.ts └── jest-e2e.json ├── tsconfig.build.json ├── tsconfig.json └── tslint.json /.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/.env -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/.prettierrc -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/README.md -------------------------------------------------------------------------------- /nest-cli.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/nest-cli.json -------------------------------------------------------------------------------- /nodemon-debug.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/nodemon-debug.json -------------------------------------------------------------------------------- /nodemon.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/nodemon.json -------------------------------------------------------------------------------- /orm.config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/orm.config.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/package.json -------------------------------------------------------------------------------- /src/app.controller.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/app.controller.spec.ts -------------------------------------------------------------------------------- /src/app.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/app.controller.ts -------------------------------------------------------------------------------- /src/app.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/app.module.ts -------------------------------------------------------------------------------- /src/app.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/app.service.ts -------------------------------------------------------------------------------- /src/config/config.keys.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/config/config.keys.ts -------------------------------------------------------------------------------- /src/config/config.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/config/config.module.ts -------------------------------------------------------------------------------- /src/config/config.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/config/config.service.ts -------------------------------------------------------------------------------- /src/database/database.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/database/database.module.ts -------------------------------------------------------------------------------- /src/database/database.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/database/database.service.ts -------------------------------------------------------------------------------- /src/database/migrations/1563143249133-first_migration.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/database/migrations/1563143249133-first_migration.ts -------------------------------------------------------------------------------- /src/database/migrations/1563145752216-second_migration.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/database/migrations/1563145752216-second_migration.ts -------------------------------------------------------------------------------- /src/database/migrations/1563147222457-fix_user_details.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/database/migrations/1563147222457-fix_user_details.ts -------------------------------------------------------------------------------- /src/database/migrations/1563153043386-fix_date.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/database/migrations/1563153043386-fix_date.ts -------------------------------------------------------------------------------- /src/database/migrations/1563155067432-fix_name_detail.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/database/migrations/1563155067432-fix_name_detail.ts -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/main.ts -------------------------------------------------------------------------------- /src/modules/auth/auth.controller.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/modules/auth/auth.controller.spec.ts -------------------------------------------------------------------------------- /src/modules/auth/auth.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/modules/auth/auth.controller.ts -------------------------------------------------------------------------------- /src/modules/auth/auth.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/modules/auth/auth.module.ts -------------------------------------------------------------------------------- /src/modules/auth/auth.repository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/modules/auth/auth.repository.ts -------------------------------------------------------------------------------- /src/modules/auth/auth.service.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/modules/auth/auth.service.spec.ts -------------------------------------------------------------------------------- /src/modules/auth/auth.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/modules/auth/auth.service.ts -------------------------------------------------------------------------------- /src/modules/auth/dto/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/modules/auth/dto/index.ts -------------------------------------------------------------------------------- /src/modules/auth/dto/signin.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/modules/auth/dto/signin.dto.ts -------------------------------------------------------------------------------- /src/modules/auth/dto/signup.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/modules/auth/dto/signup.dto.ts -------------------------------------------------------------------------------- /src/modules/auth/jwt-payload.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/modules/auth/jwt-payload.interface.ts -------------------------------------------------------------------------------- /src/modules/auth/strategies/jwt.strategy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/modules/auth/strategies/jwt.strategy.ts -------------------------------------------------------------------------------- /src/modules/auth/user.decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/modules/auth/user.decorator.ts -------------------------------------------------------------------------------- /src/modules/role/decorators/role.decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/modules/role/decorators/role.decorator.ts -------------------------------------------------------------------------------- /src/modules/role/guards/role.guard.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/modules/role/guards/role.guard.spec.ts -------------------------------------------------------------------------------- /src/modules/role/guards/role.guard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/modules/role/guards/role.guard.ts -------------------------------------------------------------------------------- /src/modules/role/role.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/modules/role/role.controller.ts -------------------------------------------------------------------------------- /src/modules/role/role.entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/modules/role/role.entity.ts -------------------------------------------------------------------------------- /src/modules/role/role.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/modules/role/role.module.ts -------------------------------------------------------------------------------- /src/modules/role/role.repository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/modules/role/role.repository.ts -------------------------------------------------------------------------------- /src/modules/role/role.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/modules/role/role.service.ts -------------------------------------------------------------------------------- /src/modules/role/roletype.enum.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/modules/role/roletype.enum.ts -------------------------------------------------------------------------------- /src/modules/user/dto/user.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/modules/user/dto/user.dto.ts -------------------------------------------------------------------------------- /src/modules/user/user.controller.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/modules/user/user.controller.spec.ts -------------------------------------------------------------------------------- /src/modules/user/user.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/modules/user/user.controller.ts -------------------------------------------------------------------------------- /src/modules/user/user.details.entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/modules/user/user.details.entity.ts -------------------------------------------------------------------------------- /src/modules/user/user.entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/modules/user/user.entity.ts -------------------------------------------------------------------------------- /src/modules/user/user.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/modules/user/user.module.ts -------------------------------------------------------------------------------- /src/modules/user/user.repository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/modules/user/user.repository.ts -------------------------------------------------------------------------------- /src/modules/user/user.service.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/modules/user/user.service.spec.ts -------------------------------------------------------------------------------- /src/modules/user/user.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/modules/user/user.service.ts -------------------------------------------------------------------------------- /src/shared/entity-status.num.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/shared/entity-status.num.ts -------------------------------------------------------------------------------- /src/shared/shared.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/src/shared/shared.module.ts -------------------------------------------------------------------------------- /test/app.e2e-spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/test/app.e2e-spec.ts -------------------------------------------------------------------------------- /test/jest-e2e.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/test/jest-e2e.json -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/tsconfig.build.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marluanespiritusanto/book-store-nestjs/HEAD/tslint.json --------------------------------------------------------------------------------