Giter VIP home page Giter VIP logo

react-clean-architecture-lib's Introduction

CodeScouts

Clean architecture template for react and vite πŸš€

React Clean Architecture Template πŸ—οΈ

Stars are welcome 😊 Report an error πŸ› Contact us πŸ€”

view - Documentation

maintained - yes contributions - welcome Clean - Architecture

πŸš€ Getting started

⬇️ Template downloading

npx degit codescouts-academy/react-clean-architecture my-app

πŸ‚ Install dependencies

npm i

🏁 Start

npm run dev

πŸ₯‹ Dependencies

  • πŸ§ͺ codescouts/test -> Jest & Vite mocking library easy to use
  • πŸ’‰ codescouts/di -> agnostic ependency injection container
  • ⚑️ codescouts/events -> agnostic library to create and handle domain events
  • πŸ›Ÿ codescouts/store -> reactive store to allow update ui from domain
  • πŸ‘©β€πŸ’» codescouts/ui -> components for events and di only for react

πŸ‘©β€πŸ’» Project explanation

πŸ“ Recommended folder structure


public/
β”œβ”€β”€ favicon.png --> CodeScouts's logo
β”‚
src/
β”œβ”€β”€ application/ Our use cases
β”‚   β”œβ”€β”€ add-log-user-case.test --> add-log-use-case tests
β”‚   └── add-log-use-case.ts --> Here we model the use cases
β”œβ”€β”€ domain/ Our Business logic
β”‚   β”œβ”€β”€ events --> Here we model the domain events
β”‚   β”œβ”€β”€ model --> Here we model our business logic
β”‚   └── services --> Here exists the domain services (only abstractions)
β”‚
β”œβ”€β”€ infrastructure/ Our external services implementations
β”‚   └── services
β”‚       └── LoggerService.ts
β”‚
β”œβ”€β”€ ui/ React things
β”‚   β”œβ”€β”€ components/ --> stateless components
β”‚   └── pages/
β”‚       └── home/
β”‚           β”œβ”€β”€ Home.tsx --> Page component (View)
β”‚           └── useHomeViewModel.ts --> Home UI business logic (ViewModel)
β”‚
β”œβ”€β”€ App.tsx
β”œβ”€β”€ di.ts --> Dependency injection configuration
└── main.tsx --> Main component loaded, referenced in index.html

πŸ€” Contributing

Si encuentras algΓΊn error, crees que hay cosas por mejorar o simplemente quieres contribuir, eres bienvenido/a. Solo realiza un fork y envΓ­anos tu PR πŸ™.

LICENSE

Released under MIT by @codescouts-academy.

react-clean-architecture-lib's People

Contributors

damianpumar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.