├── .eslintignore ├── .eslintrc.json ├── .gitignore ├── README.md ├── assets └── clean-architecture.png ├── craco.config.js ├── cypress.json ├── cypress ├── fixtures │ └── example.json ├── integration │ ├── activities.spec.ts │ ├── elements │ │ ├── Activities.ts │ │ ├── SignIn.ts │ │ └── SignUp.ts │ ├── singin.spec.ts │ └── singup.spec.ts ├── plugins │ └── index.js └── support │ ├── commands.ts │ └── index.ts ├── package.json ├── prettier.config.js ├── public ├── favicon.ico ├── index.html ├── logo192.png ├── logo512.png ├── manifest.json └── robots.txt ├── serverless.yml ├── src ├── index.tsx ├── modules │ ├── activities │ │ ├── __tests__ │ │ │ └── builders │ │ │ │ └── Activity.builder.ts │ │ ├── domain │ │ │ ├── models │ │ │ │ └── IActivity.model.ts │ │ │ └── usecases │ │ │ │ ├── ICreateActivity.usecase.ts │ │ │ │ ├── IDeleteActivity.usecase.ts │ │ │ │ └── IGetUserActivities.usecase.ts │ │ ├── presentation │ │ │ ├── components │ │ │ │ ├── FormCreateActivity │ │ │ │ │ ├── __tests__ │ │ │ │ │ │ └── index.spec.tsx │ │ │ │ │ └── index.tsx │ │ │ │ └── ListActivities │ │ │ │ │ ├── Item │ │ │ │ │ ├── __tests__ │ │ │ │ │ │ └── index.spec.tsx │ │ │ │ │ └── index.tsx │ │ │ │ │ ├── __tests__ │ │ │ │ │ └── index.spec.tsx │ │ │ │ │ └── index.tsx │ │ │ ├── contexts │ │ │ │ ├── combineContexts.tsx │ │ │ │ ├── hooks │ │ │ │ │ ├── __tests__ │ │ │ │ │ │ └── useGetActivities.spec.ts │ │ │ │ │ └── useGetActivities.tsx │ │ │ │ └── index.ts │ │ │ ├── hooks │ │ │ │ ├── __tests__ │ │ │ │ │ └── useCreateActivity.spec.ts │ │ │ │ └── useCreateActivity.ts │ │ │ ├── pages │ │ │ │ └── Dashboard │ │ │ │ │ ├── __tests__ │ │ │ │ │ └── index.spec.tsx │ │ │ │ │ └── index.tsx │ │ │ ├── utils │ │ │ │ ├── dateFormat.ts │ │ │ │ └── parsedType.ts │ │ │ └── validators │ │ │ │ └── activity.validator.ts │ │ └── usecases │ │ │ ├── CreateActivity.usecase.ts │ │ │ ├── DeleteActivity.usecase.ts │ │ │ ├── GetUserActivities.usecase.ts │ │ │ ├── __tests__ │ │ │ ├── CreateActivity.usecase.spec.ts │ │ │ ├── DeleteActivity.usecase.spec.ts │ │ │ └── GetUserActivities.usecase.spec.ts │ │ │ └── index.ts │ └── user │ │ ├── __tests__ │ │ └── builders │ │ │ ├── SignIn.builder.ts │ │ │ └── User.builder.ts │ │ ├── domain │ │ ├── models │ │ │ ├── ISignIn.model.ts │ │ │ └── IUser.model.ts │ │ └── usecases │ │ │ ├── ISignIn.usecase.ts │ │ │ └── ISignUp.usecase.ts │ │ ├── presentation │ │ ├── hooks │ │ │ ├── __tests__ │ │ │ │ ├── useSignIn.spec.ts │ │ │ │ └── useSignUp.spec.ts │ │ │ ├── useSignIn.ts │ │ │ └── useSignUp.ts │ │ ├── pages │ │ │ ├── SignIn │ │ │ │ ├── __tests__ │ │ │ │ │ └── index.spec.tsx │ │ │ │ └── index.tsx │ │ │ └── SignUp │ │ │ │ ├── __tests__ │ │ │ │ └── index.spec.tsx │ │ │ │ └── index.tsx │ │ └── validators │ │ │ ├── signin.validator.ts │ │ │ └── signup.validator.ts │ │ └── usecases │ │ ├── SignIn.usecase.ts │ │ ├── SignUp.usecase.ts │ │ ├── __tests__ │ │ ├── SignIn.usecase.spec.ts │ │ └── SignUp.usecase.spec.ts │ │ └── index.ts ├── react-app-env.d.ts ├── reportWebVitals.js ├── setupTests.js └── shared │ ├── core │ └── Either.ts │ ├── infra │ ├── cache │ │ ├── LocalStorage.ts │ │ ├── __tests__ │ │ │ └── localStorage.spec.ts │ │ ├── fakes │ │ │ └── FakeLocalStorage.ts │ │ └── index.ts │ └── http │ │ └── httpClient │ │ ├── Axios.ts │ │ ├── __tests__ │ │ └── axios.spec.ts │ │ └── index.ts │ ├── presentation │ ├── App.tsx │ ├── assets │ │ └── styles │ │ │ └── global.style.css │ ├── components │ │ ├── Buttons │ │ │ └── Default │ │ │ │ ├── __tests__ │ │ │ │ └── index.spec.tsx │ │ │ │ └── index.tsx │ │ ├── ToastifyContainer │ │ │ ├── __tests__ │ │ │ │ └── index.spec.tsx │ │ │ └── index.tsx │ │ └── inputs │ │ │ ├── Mask │ │ │ ├── __tests__ │ │ │ │ └── index.spec.tsx │ │ │ └── index.tsx │ │ │ ├── Select │ │ │ ├── __tests__ │ │ │ │ └── index.spec.tsx │ │ │ └── index.tsx │ │ │ └── Text │ │ │ ├── __tests__ │ │ │ └── index.spec.tsx │ │ │ └── index.tsx │ ├── constants │ │ ├── cacheKeys.ts │ │ └── inputMessages.ts │ ├── hooks │ │ ├── __tests__ │ │ │ ├── useAuth.spec.ts │ │ │ └── useYupValidationResolver.spec.ts │ │ ├── useAuth.ts │ │ └── useYupValidationResolver.ts │ ├── routes │ │ ├── Route.tsx │ │ └── index.tsx │ └── utils │ │ └── validationYupErrors.ts │ └── usecases │ └── ports │ ├── cache.ts │ └── httpClient.ts ├── tailwind.config.js ├── tsconfig.json ├── tsconfig.paths.json └── yarn.lock /.eslintignore: -------------------------------------------------------------------------------- 1 | **/*.js 2 | node_modules 3 | build 4 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/README.md -------------------------------------------------------------------------------- /assets/clean-architecture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/assets/clean-architecture.png -------------------------------------------------------------------------------- /craco.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/craco.config.js -------------------------------------------------------------------------------- /cypress.json: -------------------------------------------------------------------------------- 1 | { 2 | "baseUrl": "http://localhost:3000" 3 | } 4 | -------------------------------------------------------------------------------- /cypress/fixtures/example.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/cypress/fixtures/example.json -------------------------------------------------------------------------------- /cypress/integration/activities.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/cypress/integration/activities.spec.ts -------------------------------------------------------------------------------- /cypress/integration/elements/Activities.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/cypress/integration/elements/Activities.ts -------------------------------------------------------------------------------- /cypress/integration/elements/SignIn.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/cypress/integration/elements/SignIn.ts -------------------------------------------------------------------------------- /cypress/integration/elements/SignUp.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/cypress/integration/elements/SignUp.ts -------------------------------------------------------------------------------- /cypress/integration/singin.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/cypress/integration/singin.spec.ts -------------------------------------------------------------------------------- /cypress/integration/singup.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/cypress/integration/singup.spec.ts -------------------------------------------------------------------------------- /cypress/plugins/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/cypress/plugins/index.js -------------------------------------------------------------------------------- /cypress/support/commands.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/cypress/support/commands.ts -------------------------------------------------------------------------------- /cypress/support/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/cypress/support/index.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/package.json -------------------------------------------------------------------------------- /prettier.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/prettier.config.js -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/public/index.html -------------------------------------------------------------------------------- /public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/public/logo192.png -------------------------------------------------------------------------------- /public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/public/logo512.png -------------------------------------------------------------------------------- /public/manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/public/manifest.json -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/public/robots.txt -------------------------------------------------------------------------------- /serverless.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/serverless.yml -------------------------------------------------------------------------------- /src/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/index.tsx -------------------------------------------------------------------------------- /src/modules/activities/__tests__/builders/Activity.builder.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/activities/__tests__/builders/Activity.builder.ts -------------------------------------------------------------------------------- /src/modules/activities/domain/models/IActivity.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/activities/domain/models/IActivity.model.ts -------------------------------------------------------------------------------- /src/modules/activities/domain/usecases/ICreateActivity.usecase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/activities/domain/usecases/ICreateActivity.usecase.ts -------------------------------------------------------------------------------- /src/modules/activities/domain/usecases/IDeleteActivity.usecase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/activities/domain/usecases/IDeleteActivity.usecase.ts -------------------------------------------------------------------------------- /src/modules/activities/domain/usecases/IGetUserActivities.usecase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/activities/domain/usecases/IGetUserActivities.usecase.ts -------------------------------------------------------------------------------- /src/modules/activities/presentation/components/FormCreateActivity/__tests__/index.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/activities/presentation/components/FormCreateActivity/__tests__/index.spec.tsx -------------------------------------------------------------------------------- /src/modules/activities/presentation/components/FormCreateActivity/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/activities/presentation/components/FormCreateActivity/index.tsx -------------------------------------------------------------------------------- /src/modules/activities/presentation/components/ListActivities/Item/__tests__/index.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/activities/presentation/components/ListActivities/Item/__tests__/index.spec.tsx -------------------------------------------------------------------------------- /src/modules/activities/presentation/components/ListActivities/Item/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/activities/presentation/components/ListActivities/Item/index.tsx -------------------------------------------------------------------------------- /src/modules/activities/presentation/components/ListActivities/__tests__/index.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/activities/presentation/components/ListActivities/__tests__/index.spec.tsx -------------------------------------------------------------------------------- /src/modules/activities/presentation/components/ListActivities/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/activities/presentation/components/ListActivities/index.tsx -------------------------------------------------------------------------------- /src/modules/activities/presentation/contexts/combineContexts.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/activities/presentation/contexts/combineContexts.tsx -------------------------------------------------------------------------------- /src/modules/activities/presentation/contexts/hooks/__tests__/useGetActivities.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/activities/presentation/contexts/hooks/__tests__/useGetActivities.spec.ts -------------------------------------------------------------------------------- /src/modules/activities/presentation/contexts/hooks/useGetActivities.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/activities/presentation/contexts/hooks/useGetActivities.tsx -------------------------------------------------------------------------------- /src/modules/activities/presentation/contexts/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/activities/presentation/contexts/index.ts -------------------------------------------------------------------------------- /src/modules/activities/presentation/hooks/__tests__/useCreateActivity.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/activities/presentation/hooks/__tests__/useCreateActivity.spec.ts -------------------------------------------------------------------------------- /src/modules/activities/presentation/hooks/useCreateActivity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/activities/presentation/hooks/useCreateActivity.ts -------------------------------------------------------------------------------- /src/modules/activities/presentation/pages/Dashboard/__tests__/index.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/activities/presentation/pages/Dashboard/__tests__/index.spec.tsx -------------------------------------------------------------------------------- /src/modules/activities/presentation/pages/Dashboard/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/activities/presentation/pages/Dashboard/index.tsx -------------------------------------------------------------------------------- /src/modules/activities/presentation/utils/dateFormat.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/activities/presentation/utils/dateFormat.ts -------------------------------------------------------------------------------- /src/modules/activities/presentation/utils/parsedType.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/activities/presentation/utils/parsedType.ts -------------------------------------------------------------------------------- /src/modules/activities/presentation/validators/activity.validator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/activities/presentation/validators/activity.validator.ts -------------------------------------------------------------------------------- /src/modules/activities/usecases/CreateActivity.usecase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/activities/usecases/CreateActivity.usecase.ts -------------------------------------------------------------------------------- /src/modules/activities/usecases/DeleteActivity.usecase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/activities/usecases/DeleteActivity.usecase.ts -------------------------------------------------------------------------------- /src/modules/activities/usecases/GetUserActivities.usecase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/activities/usecases/GetUserActivities.usecase.ts -------------------------------------------------------------------------------- /src/modules/activities/usecases/__tests__/CreateActivity.usecase.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/activities/usecases/__tests__/CreateActivity.usecase.spec.ts -------------------------------------------------------------------------------- /src/modules/activities/usecases/__tests__/DeleteActivity.usecase.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/activities/usecases/__tests__/DeleteActivity.usecase.spec.ts -------------------------------------------------------------------------------- /src/modules/activities/usecases/__tests__/GetUserActivities.usecase.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/activities/usecases/__tests__/GetUserActivities.usecase.spec.ts -------------------------------------------------------------------------------- /src/modules/activities/usecases/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/activities/usecases/index.ts -------------------------------------------------------------------------------- /src/modules/user/__tests__/builders/SignIn.builder.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/user/__tests__/builders/SignIn.builder.ts -------------------------------------------------------------------------------- /src/modules/user/__tests__/builders/User.builder.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/user/__tests__/builders/User.builder.ts -------------------------------------------------------------------------------- /src/modules/user/domain/models/ISignIn.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/user/domain/models/ISignIn.model.ts -------------------------------------------------------------------------------- /src/modules/user/domain/models/IUser.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/user/domain/models/IUser.model.ts -------------------------------------------------------------------------------- /src/modules/user/domain/usecases/ISignIn.usecase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/user/domain/usecases/ISignIn.usecase.ts -------------------------------------------------------------------------------- /src/modules/user/domain/usecases/ISignUp.usecase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/user/domain/usecases/ISignUp.usecase.ts -------------------------------------------------------------------------------- /src/modules/user/presentation/hooks/__tests__/useSignIn.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/user/presentation/hooks/__tests__/useSignIn.spec.ts -------------------------------------------------------------------------------- /src/modules/user/presentation/hooks/__tests__/useSignUp.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/user/presentation/hooks/__tests__/useSignUp.spec.ts -------------------------------------------------------------------------------- /src/modules/user/presentation/hooks/useSignIn.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/user/presentation/hooks/useSignIn.ts -------------------------------------------------------------------------------- /src/modules/user/presentation/hooks/useSignUp.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/user/presentation/hooks/useSignUp.ts -------------------------------------------------------------------------------- /src/modules/user/presentation/pages/SignIn/__tests__/index.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/user/presentation/pages/SignIn/__tests__/index.spec.tsx -------------------------------------------------------------------------------- /src/modules/user/presentation/pages/SignIn/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/user/presentation/pages/SignIn/index.tsx -------------------------------------------------------------------------------- /src/modules/user/presentation/pages/SignUp/__tests__/index.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/user/presentation/pages/SignUp/__tests__/index.spec.tsx -------------------------------------------------------------------------------- /src/modules/user/presentation/pages/SignUp/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/user/presentation/pages/SignUp/index.tsx -------------------------------------------------------------------------------- /src/modules/user/presentation/validators/signin.validator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/user/presentation/validators/signin.validator.ts -------------------------------------------------------------------------------- /src/modules/user/presentation/validators/signup.validator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/user/presentation/validators/signup.validator.ts -------------------------------------------------------------------------------- /src/modules/user/usecases/SignIn.usecase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/user/usecases/SignIn.usecase.ts -------------------------------------------------------------------------------- /src/modules/user/usecases/SignUp.usecase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/user/usecases/SignUp.usecase.ts -------------------------------------------------------------------------------- /src/modules/user/usecases/__tests__/SignIn.usecase.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/user/usecases/__tests__/SignIn.usecase.spec.ts -------------------------------------------------------------------------------- /src/modules/user/usecases/__tests__/SignUp.usecase.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/user/usecases/__tests__/SignUp.usecase.spec.ts -------------------------------------------------------------------------------- /src/modules/user/usecases/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/modules/user/usecases/index.ts -------------------------------------------------------------------------------- /src/react-app-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /src/reportWebVitals.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/reportWebVitals.js -------------------------------------------------------------------------------- /src/setupTests.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/setupTests.js -------------------------------------------------------------------------------- /src/shared/core/Either.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/shared/core/Either.ts -------------------------------------------------------------------------------- /src/shared/infra/cache/LocalStorage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/shared/infra/cache/LocalStorage.ts -------------------------------------------------------------------------------- /src/shared/infra/cache/__tests__/localStorage.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/shared/infra/cache/__tests__/localStorage.spec.ts -------------------------------------------------------------------------------- /src/shared/infra/cache/fakes/FakeLocalStorage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/shared/infra/cache/fakes/FakeLocalStorage.ts -------------------------------------------------------------------------------- /src/shared/infra/cache/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/shared/infra/cache/index.ts -------------------------------------------------------------------------------- /src/shared/infra/http/httpClient/Axios.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/shared/infra/http/httpClient/Axios.ts -------------------------------------------------------------------------------- /src/shared/infra/http/httpClient/__tests__/axios.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/shared/infra/http/httpClient/__tests__/axios.spec.ts -------------------------------------------------------------------------------- /src/shared/infra/http/httpClient/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/shared/infra/http/httpClient/index.ts -------------------------------------------------------------------------------- /src/shared/presentation/App.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/shared/presentation/App.tsx -------------------------------------------------------------------------------- /src/shared/presentation/assets/styles/global.style.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/shared/presentation/assets/styles/global.style.css -------------------------------------------------------------------------------- /src/shared/presentation/components/Buttons/Default/__tests__/index.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/shared/presentation/components/Buttons/Default/__tests__/index.spec.tsx -------------------------------------------------------------------------------- /src/shared/presentation/components/Buttons/Default/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/shared/presentation/components/Buttons/Default/index.tsx -------------------------------------------------------------------------------- /src/shared/presentation/components/ToastifyContainer/__tests__/index.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/shared/presentation/components/ToastifyContainer/__tests__/index.spec.tsx -------------------------------------------------------------------------------- /src/shared/presentation/components/ToastifyContainer/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/shared/presentation/components/ToastifyContainer/index.tsx -------------------------------------------------------------------------------- /src/shared/presentation/components/inputs/Mask/__tests__/index.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/shared/presentation/components/inputs/Mask/__tests__/index.spec.tsx -------------------------------------------------------------------------------- /src/shared/presentation/components/inputs/Mask/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/shared/presentation/components/inputs/Mask/index.tsx -------------------------------------------------------------------------------- /src/shared/presentation/components/inputs/Select/__tests__/index.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/shared/presentation/components/inputs/Select/__tests__/index.spec.tsx -------------------------------------------------------------------------------- /src/shared/presentation/components/inputs/Select/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/shared/presentation/components/inputs/Select/index.tsx -------------------------------------------------------------------------------- /src/shared/presentation/components/inputs/Text/__tests__/index.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/shared/presentation/components/inputs/Text/__tests__/index.spec.tsx -------------------------------------------------------------------------------- /src/shared/presentation/components/inputs/Text/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/shared/presentation/components/inputs/Text/index.tsx -------------------------------------------------------------------------------- /src/shared/presentation/constants/cacheKeys.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/shared/presentation/constants/cacheKeys.ts -------------------------------------------------------------------------------- /src/shared/presentation/constants/inputMessages.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/shared/presentation/constants/inputMessages.ts -------------------------------------------------------------------------------- /src/shared/presentation/hooks/__tests__/useAuth.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/shared/presentation/hooks/__tests__/useAuth.spec.ts -------------------------------------------------------------------------------- /src/shared/presentation/hooks/__tests__/useYupValidationResolver.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/shared/presentation/hooks/__tests__/useYupValidationResolver.spec.ts -------------------------------------------------------------------------------- /src/shared/presentation/hooks/useAuth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/shared/presentation/hooks/useAuth.ts -------------------------------------------------------------------------------- /src/shared/presentation/hooks/useYupValidationResolver.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/shared/presentation/hooks/useYupValidationResolver.ts -------------------------------------------------------------------------------- /src/shared/presentation/routes/Route.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/shared/presentation/routes/Route.tsx -------------------------------------------------------------------------------- /src/shared/presentation/routes/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/shared/presentation/routes/index.tsx -------------------------------------------------------------------------------- /src/shared/presentation/utils/validationYupErrors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/shared/presentation/utils/validationYupErrors.ts -------------------------------------------------------------------------------- /src/shared/usecases/ports/cache.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/shared/usecases/ports/cache.ts -------------------------------------------------------------------------------- /src/shared/usecases/ports/httpClient.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/src/shared/usecases/ports/httpClient.ts -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/tailwind.config.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.paths.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/tsconfig.paths.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avrcoelho/react-clean-architecture/HEAD/yarn.lock --------------------------------------------------------------------------------