├── .editorconfig ├── .github └── solid-api.png ├── .gitignore ├── LICENSE ├── README.md ├── package.json ├── src ├── app.ts ├── entities │ └── User.ts ├── providers │ ├── IMailProvider.ts │ └── implementations │ │ └── MailtrapMailProvider.ts ├── repositories │ ├── IUsersRepository.ts │ └── implementations │ │ └── PostgresUserRepository.ts ├── routes.ts ├── server.ts └── useCases │ └── CreateUser │ ├── CreateUserController.ts │ ├── CreateUserDTO.ts │ ├── CreateUserUseCase.ts │ └── index.ts ├── tsconfig.json └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goncadanilo/solid-api/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/solid-api.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goncadanilo/solid-api/HEAD/.github/solid-api.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goncadanilo/solid-api/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goncadanilo/solid-api/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goncadanilo/solid-api/HEAD/package.json -------------------------------------------------------------------------------- /src/app.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goncadanilo/solid-api/HEAD/src/app.ts -------------------------------------------------------------------------------- /src/entities/User.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goncadanilo/solid-api/HEAD/src/entities/User.ts -------------------------------------------------------------------------------- /src/providers/IMailProvider.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goncadanilo/solid-api/HEAD/src/providers/IMailProvider.ts -------------------------------------------------------------------------------- /src/providers/implementations/MailtrapMailProvider.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goncadanilo/solid-api/HEAD/src/providers/implementations/MailtrapMailProvider.ts -------------------------------------------------------------------------------- /src/repositories/IUsersRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goncadanilo/solid-api/HEAD/src/repositories/IUsersRepository.ts -------------------------------------------------------------------------------- /src/repositories/implementations/PostgresUserRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goncadanilo/solid-api/HEAD/src/repositories/implementations/PostgresUserRepository.ts -------------------------------------------------------------------------------- /src/routes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goncadanilo/solid-api/HEAD/src/routes.ts -------------------------------------------------------------------------------- /src/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goncadanilo/solid-api/HEAD/src/server.ts -------------------------------------------------------------------------------- /src/useCases/CreateUser/CreateUserController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goncadanilo/solid-api/HEAD/src/useCases/CreateUser/CreateUserController.ts -------------------------------------------------------------------------------- /src/useCases/CreateUser/CreateUserDTO.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goncadanilo/solid-api/HEAD/src/useCases/CreateUser/CreateUserDTO.ts -------------------------------------------------------------------------------- /src/useCases/CreateUser/CreateUserUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goncadanilo/solid-api/HEAD/src/useCases/CreateUser/CreateUserUseCase.ts -------------------------------------------------------------------------------- /src/useCases/CreateUser/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goncadanilo/solid-api/HEAD/src/useCases/CreateUser/index.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goncadanilo/solid-api/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goncadanilo/solid-api/HEAD/yarn.lock --------------------------------------------------------------------------------