├── .eslintrc.json ├── .gitignore ├── .vscode └── settings.json ├── README.md ├── babel.config.js ├── jest.config.js ├── next.config.ts ├── package.json ├── public ├── file.svg ├── globe.svg ├── next.svg ├── vercel.svg └── window.svg ├── src ├── app │ ├── api │ │ └── orders │ │ │ └── [id] │ │ │ └── route.ts │ ├── layout.tsx │ └── page.tsx ├── core │ ├── data │ │ └── interfaces │ │ │ └── http-client.interface.ts │ ├── domain │ │ ├── __mocks__ │ │ │ └── order.mock.ts │ │ ├── adapters │ │ │ ├── __tests__ │ │ │ │ └── order.adapters.unit.spec.ts │ │ │ └── order.adapters.ts │ │ ├── contracts │ │ │ └── order.contracts.ts │ │ ├── entities │ │ │ └── order.ts │ │ └── services │ │ │ ├── __tests__ │ │ │ └── order.services.unit.spec.ts │ │ │ └── order.services.ts │ └── infra │ │ ├── http │ │ ├── axios-client │ │ │ ├── axios-client.http.ts │ │ │ └── axios-client.http.unit.spec.ts │ │ └── index.ts │ │ └── index.ts ├── repositories │ └── order │ │ └── get.repository.ts ├── usecases │ └── order-view │ │ ├── order-view.card.tsx │ │ ├── order-view.controller.ts │ │ ├── order-view.dependencies.tsx │ │ └── order-view.integration.spec.tsx └── utils │ └── create-generic-context.util.ts ├── tsconfig.json └── yarn.lock /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonyleme/React-Clean-Architecture-Example/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonyleme/React-Clean-Architecture-Example/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonyleme/React-Clean-Architecture-Example/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # React-Clean-Architecture-Example 2 | -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonyleme/React-Clean-Architecture-Example/HEAD/babel.config.js -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonyleme/React-Clean-Architecture-Example/HEAD/jest.config.js -------------------------------------------------------------------------------- /next.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonyleme/React-Clean-Architecture-Example/HEAD/next.config.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonyleme/React-Clean-Architecture-Example/HEAD/package.json -------------------------------------------------------------------------------- /public/file.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonyleme/React-Clean-Architecture-Example/HEAD/public/file.svg -------------------------------------------------------------------------------- /public/globe.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonyleme/React-Clean-Architecture-Example/HEAD/public/globe.svg -------------------------------------------------------------------------------- /public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonyleme/React-Clean-Architecture-Example/HEAD/public/next.svg -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonyleme/React-Clean-Architecture-Example/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /public/window.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonyleme/React-Clean-Architecture-Example/HEAD/public/window.svg -------------------------------------------------------------------------------- /src/app/api/orders/[id]/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonyleme/React-Clean-Architecture-Example/HEAD/src/app/api/orders/[id]/route.ts -------------------------------------------------------------------------------- /src/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonyleme/React-Clean-Architecture-Example/HEAD/src/app/layout.tsx -------------------------------------------------------------------------------- /src/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonyleme/React-Clean-Architecture-Example/HEAD/src/app/page.tsx -------------------------------------------------------------------------------- /src/core/data/interfaces/http-client.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonyleme/React-Clean-Architecture-Example/HEAD/src/core/data/interfaces/http-client.interface.ts -------------------------------------------------------------------------------- /src/core/domain/__mocks__/order.mock.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonyleme/React-Clean-Architecture-Example/HEAD/src/core/domain/__mocks__/order.mock.ts -------------------------------------------------------------------------------- /src/core/domain/adapters/__tests__/order.adapters.unit.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonyleme/React-Clean-Architecture-Example/HEAD/src/core/domain/adapters/__tests__/order.adapters.unit.spec.ts -------------------------------------------------------------------------------- /src/core/domain/adapters/order.adapters.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonyleme/React-Clean-Architecture-Example/HEAD/src/core/domain/adapters/order.adapters.ts -------------------------------------------------------------------------------- /src/core/domain/contracts/order.contracts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonyleme/React-Clean-Architecture-Example/HEAD/src/core/domain/contracts/order.contracts.ts -------------------------------------------------------------------------------- /src/core/domain/entities/order.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonyleme/React-Clean-Architecture-Example/HEAD/src/core/domain/entities/order.ts -------------------------------------------------------------------------------- /src/core/domain/services/__tests__/order.services.unit.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonyleme/React-Clean-Architecture-Example/HEAD/src/core/domain/services/__tests__/order.services.unit.spec.ts -------------------------------------------------------------------------------- /src/core/domain/services/order.services.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonyleme/React-Clean-Architecture-Example/HEAD/src/core/domain/services/order.services.ts -------------------------------------------------------------------------------- /src/core/infra/http/axios-client/axios-client.http.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonyleme/React-Clean-Architecture-Example/HEAD/src/core/infra/http/axios-client/axios-client.http.ts -------------------------------------------------------------------------------- /src/core/infra/http/axios-client/axios-client.http.unit.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonyleme/React-Clean-Architecture-Example/HEAD/src/core/infra/http/axios-client/axios-client.http.unit.spec.ts -------------------------------------------------------------------------------- /src/core/infra/http/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonyleme/React-Clean-Architecture-Example/HEAD/src/core/infra/http/index.ts -------------------------------------------------------------------------------- /src/core/infra/index.ts: -------------------------------------------------------------------------------- 1 | export * from './http'; 2 | -------------------------------------------------------------------------------- /src/repositories/order/get.repository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonyleme/React-Clean-Architecture-Example/HEAD/src/repositories/order/get.repository.ts -------------------------------------------------------------------------------- /src/usecases/order-view/order-view.card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonyleme/React-Clean-Architecture-Example/HEAD/src/usecases/order-view/order-view.card.tsx -------------------------------------------------------------------------------- /src/usecases/order-view/order-view.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonyleme/React-Clean-Architecture-Example/HEAD/src/usecases/order-view/order-view.controller.ts -------------------------------------------------------------------------------- /src/usecases/order-view/order-view.dependencies.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonyleme/React-Clean-Architecture-Example/HEAD/src/usecases/order-view/order-view.dependencies.tsx -------------------------------------------------------------------------------- /src/usecases/order-view/order-view.integration.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonyleme/React-Clean-Architecture-Example/HEAD/src/usecases/order-view/order-view.integration.spec.tsx -------------------------------------------------------------------------------- /src/utils/create-generic-context.util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonyleme/React-Clean-Architecture-Example/HEAD/src/utils/create-generic-context.util.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonyleme/React-Clean-Architecture-Example/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/antonyleme/React-Clean-Architecture-Example/HEAD/yarn.lock --------------------------------------------------------------------------------