Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/guiseek/nx-clean

Clean Architecture with TypeScript, Angular, React, Web Components, Node, Nest... for Nx Workspaces
https://github.com/guiseek/nx-clean

angular architecture clean-architecture clean-code hacktoberfest monorepo nestjs nodejs nx nx-clean nx-plugin plugin-core react typescript

Last synced: about 2 months ago
JSON representation

Clean Architecture with TypeScript, Angular, React, Web Components, Node, Nest... for Nx Workspaces

Awesome Lists containing this project

README

        

# 🧅 Clean Architecture & Nx workspace

[clean-architecture.design](https://clean-architecture.design)

## Install

```sh
npm i -D @nx-clean/plugin-core
```

Nx Clean is a plugin for developers that extends Nx, although we have several schematics and plugins already, sometimes we miss one that already creates libraries with functional implementations and obviously, structured following good practices. Thinking about big projects, with many people working and it will remain alive for a long period, it is a fact the architecture becomes essential...

Clean architecture proposes some techniques that solve the problems and reduce the effort in future maintenance, generating less impact on changes. With well-defined layers and little coupling, Nx Clean aims to provide the generation of scaffoldings with some of these best practices already implemented and working, being a framework agnostic. Keep the business rule working safely, without worrying about the hype framework of the moment, use your business rules with ease and practicality where necessary, respecting the defined layers. This can be done using ES Lint.

## Docs

### Generators
- [Domain](./libs/plugin/core#domain---generate):
business rules lives here
- [Data](./libs/plugin/core#data---generate):
our data access layer
- [Presentation](./libs/plugin/core#presentation---generate):
data flow handling

### Packages
- [Core](./libs/core):
common abstractions, dependency injector...

---

![Nx Console with Nx Clean](./assets/onions.svg)

---

## Nx Clean with Nx Console

![Nx Console with Nx Clean](./assets/nx-clean-console.png)

| Name | ID | Description | Editor | Link |
| --- | --- | --- | --- | --- |
| Nx Console | nrwl.angular-console | Nx Console for Visual Studio Code | [nrwl](https://nrwl.io/) | [Download](https://marketplace.visualstudio.com/items?itemName=nrwl.angular-console) |
| | | | | |

## Contributors

| | |
| --- | --- |
| [![Guilherme Siquinelli](https://avatars.githubusercontent.com/u/5638096?v=4) Guilherme Siquinelli ](https://github.com/guiseek) | [![Albino Neto](https://avatars.githubusercontent.com/u/43091506?v=4) Albino Neto](https://github.com/albinomn) |
| | |