├── .dockerignore ├── .eslintrc.js ├── .gitignore ├── .prettierrc ├── Dockerfile ├── README.md ├── assets └── logo-arcanimal.png ├── docker-compose.yml ├── exemplo.env ├── nest-cli.json ├── nodemon.json ├── package.json ├── prisma ├── migrations │ ├── 20240512141956_add_database │ │ └── migration.sql │ ├── 20240512203347_new_columns_for_shelter │ │ └── migration.sql │ ├── 20240512205738_add_owner_to_shelter │ │ └── migration.sql │ ├── 20240514004250_create_refresh_token │ │ └── migration.sql │ ├── 20240514021432_clear │ │ └── migration.sql │ ├── 20240516174924_turn_shelter_email_optional │ │ └── migration.sql │ ├── 20240516181111_ │ │ └── migration.sql │ ├── 20240516181631_add_spaces │ │ └── migration.sql │ └── migration_lock.toml ├── prisma.service.d.ts ├── prisma.service.js ├── prisma.service.js.map ├── prisma.service.ts ├── schema.prisma └── seed │ ├── seed.ts │ └── user.seed.ts ├── src ├── app.controller.ts ├── app.module.ts ├── auth │ ├── auth.controller.ts │ ├── auth.module.ts │ ├── auth.service.ts │ ├── dto │ │ ├── login.dto.ts │ │ └── token.dto.ts │ ├── guards │ │ └── local-auth.guard.ts │ ├── interface │ │ └── login.interface.ts │ └── strategies │ │ ├── jwt.strategy.ts │ │ └── local.strategy.ts ├── decorators │ └── get-user-id.decorator.ts ├── enums │ └── role.enum.ts ├── images │ ├── images.module.ts │ └── images.service.ts ├── mail │ ├── dto │ │ └── send-email.dto.ts │ ├── mail.module.ts │ ├── mail.service.ts │ └── templates │ │ ├── recover-password.hbs │ │ └── welcome.hbs ├── main.ts ├── pet │ ├── dto │ │ ├── create-pet.dto.ts │ │ ├── read-pet.dto.ts │ │ └── update-pet.dto.ts │ ├── pet.controller.ts │ ├── pet.module.ts │ └── pet.service.ts ├── shelter │ ├── dto │ │ ├── create-shelter.dto.ts │ │ ├── read-shelter.dto.ts │ │ └── update-shelter.dto.ts │ ├── shelter-csv-parser.ts │ ├── shelter.controller.ts │ ├── shelter.module.ts │ └── shelter.service.ts ├── user │ ├── dto │ │ ├── create-user.dto.ts │ │ ├── read-user.dto.ts │ │ └── update-user.dto.ts │ ├── user.controller.ts │ ├── user.module.ts │ └── user.service.ts ├── utils │ └── generateRandomPassword.ts └── validation │ └── user-validation.service.ts ├── tsconfig.build.json ├── tsconfig.json └── yarn.lock /.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/.dockerignore -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/.prettierrc -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/Dockerfile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/README.md -------------------------------------------------------------------------------- /assets/logo-arcanimal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/assets/logo-arcanimal.png -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /exemplo.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/exemplo.env -------------------------------------------------------------------------------- /nest-cli.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/nest-cli.json -------------------------------------------------------------------------------- /nodemon.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/nodemon.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/package.json -------------------------------------------------------------------------------- /prisma/migrations/20240512141956_add_database/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/prisma/migrations/20240512141956_add_database/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/20240512203347_new_columns_for_shelter/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/prisma/migrations/20240512203347_new_columns_for_shelter/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/20240512205738_add_owner_to_shelter/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/prisma/migrations/20240512205738_add_owner_to_shelter/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/20240514004250_create_refresh_token/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/prisma/migrations/20240514004250_create_refresh_token/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/20240514021432_clear/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/prisma/migrations/20240514021432_clear/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/20240516174924_turn_shelter_email_optional/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/prisma/migrations/20240516174924_turn_shelter_email_optional/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/20240516181111_/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/prisma/migrations/20240516181111_/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/20240516181631_add_spaces/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/prisma/migrations/20240516181631_add_spaces/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/migration_lock.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/prisma/migrations/migration_lock.toml -------------------------------------------------------------------------------- /prisma/prisma.service.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/prisma/prisma.service.d.ts -------------------------------------------------------------------------------- /prisma/prisma.service.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/prisma/prisma.service.js -------------------------------------------------------------------------------- /prisma/prisma.service.js.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/prisma/prisma.service.js.map -------------------------------------------------------------------------------- /prisma/prisma.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/prisma/prisma.service.ts -------------------------------------------------------------------------------- /prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/prisma/schema.prisma -------------------------------------------------------------------------------- /prisma/seed/seed.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/prisma/seed/seed.ts -------------------------------------------------------------------------------- /prisma/seed/user.seed.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/prisma/seed/user.seed.ts -------------------------------------------------------------------------------- /src/app.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/app.controller.ts -------------------------------------------------------------------------------- /src/app.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/app.module.ts -------------------------------------------------------------------------------- /src/auth/auth.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/auth/auth.controller.ts -------------------------------------------------------------------------------- /src/auth/auth.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/auth/auth.module.ts -------------------------------------------------------------------------------- /src/auth/auth.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/auth/auth.service.ts -------------------------------------------------------------------------------- /src/auth/dto/login.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/auth/dto/login.dto.ts -------------------------------------------------------------------------------- /src/auth/dto/token.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/auth/dto/token.dto.ts -------------------------------------------------------------------------------- /src/auth/guards/local-auth.guard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/auth/guards/local-auth.guard.ts -------------------------------------------------------------------------------- /src/auth/interface/login.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/auth/interface/login.interface.ts -------------------------------------------------------------------------------- /src/auth/strategies/jwt.strategy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/auth/strategies/jwt.strategy.ts -------------------------------------------------------------------------------- /src/auth/strategies/local.strategy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/auth/strategies/local.strategy.ts -------------------------------------------------------------------------------- /src/decorators/get-user-id.decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/decorators/get-user-id.decorator.ts -------------------------------------------------------------------------------- /src/enums/role.enum.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/enums/role.enum.ts -------------------------------------------------------------------------------- /src/images/images.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/images/images.module.ts -------------------------------------------------------------------------------- /src/images/images.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/images/images.service.ts -------------------------------------------------------------------------------- /src/mail/dto/send-email.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/mail/dto/send-email.dto.ts -------------------------------------------------------------------------------- /src/mail/mail.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/mail/mail.module.ts -------------------------------------------------------------------------------- /src/mail/mail.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/mail/mail.service.ts -------------------------------------------------------------------------------- /src/mail/templates/recover-password.hbs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/mail/templates/recover-password.hbs -------------------------------------------------------------------------------- /src/mail/templates/welcome.hbs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/mail/templates/welcome.hbs -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/main.ts -------------------------------------------------------------------------------- /src/pet/dto/create-pet.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/pet/dto/create-pet.dto.ts -------------------------------------------------------------------------------- /src/pet/dto/read-pet.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/pet/dto/read-pet.dto.ts -------------------------------------------------------------------------------- /src/pet/dto/update-pet.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/pet/dto/update-pet.dto.ts -------------------------------------------------------------------------------- /src/pet/pet.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/pet/pet.controller.ts -------------------------------------------------------------------------------- /src/pet/pet.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/pet/pet.module.ts -------------------------------------------------------------------------------- /src/pet/pet.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/pet/pet.service.ts -------------------------------------------------------------------------------- /src/shelter/dto/create-shelter.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/shelter/dto/create-shelter.dto.ts -------------------------------------------------------------------------------- /src/shelter/dto/read-shelter.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/shelter/dto/read-shelter.dto.ts -------------------------------------------------------------------------------- /src/shelter/dto/update-shelter.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/shelter/dto/update-shelter.dto.ts -------------------------------------------------------------------------------- /src/shelter/shelter-csv-parser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/shelter/shelter-csv-parser.ts -------------------------------------------------------------------------------- /src/shelter/shelter.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/shelter/shelter.controller.ts -------------------------------------------------------------------------------- /src/shelter/shelter.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/shelter/shelter.module.ts -------------------------------------------------------------------------------- /src/shelter/shelter.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/shelter/shelter.service.ts -------------------------------------------------------------------------------- /src/user/dto/create-user.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/user/dto/create-user.dto.ts -------------------------------------------------------------------------------- /src/user/dto/read-user.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/user/dto/read-user.dto.ts -------------------------------------------------------------------------------- /src/user/dto/update-user.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/user/dto/update-user.dto.ts -------------------------------------------------------------------------------- /src/user/user.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/user/user.controller.ts -------------------------------------------------------------------------------- /src/user/user.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/user/user.module.ts -------------------------------------------------------------------------------- /src/user/user.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/user/user.service.ts -------------------------------------------------------------------------------- /src/utils/generateRandomPassword.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/utils/generateRandomPassword.ts -------------------------------------------------------------------------------- /src/validation/user-validation.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/src/validation/user-validation.service.ts -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/tsconfig.build.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theleba/arcanimal-api/HEAD/yarn.lock --------------------------------------------------------------------------------