A React project using TypeScript and Clean Architecture principles to ensure modularity, maintainability, and scalability.
-
Clean Architecture: Separation of concerns with well-defined layers.
-
TypeScript: Strongly typed for better code quality and maintainability.
-
React with Hooks: Functional components and state management with hooks.
-
Dependency Injection: Promotes decoupled components and services.
-
Scalable Folder Structure: Organized based on Clean Architecture principles.
-
Node.js (version 14 or higher)
-
Yarn (recommended) or npm
git clone https://github.com/dannielss/clean-react-typescript.git
cd clean-react-typescript yarn installor
npm installRunning the Application
yarn startor
npm start-
src/
-
domain/ - Business logic, entities, and use cases.
-
data/ - Data sources, repositories, and DTOs.
-
infra/ - API clients, local storage handlers, and external integrations.
-
presentation/ - React components, pages, and UI logic.
-
main/ - Dependency injection and application setup.
-
-
yarn start - Runs the app in development mode.
-
yarn test - Runs unit tests.
-
yarn build - Builds the app for production.
This project is licensed under the MIT License.
