angular-hexagonal-schematic

1.0.3 • Public • Published

Angular Hexagonal Schematic

This schematic can be used to generate a hexagonal module with angular cli.

Installation

To use it, you can simply use this command in your angular project :

ng add angular-hexagonal-schematic

How to use

 ng g angular-hexagonal-schematic:hexagonal
 ? What is the domain name? <your-domain-name>

folder created :

domain-example
│   domain-example.module.ts
│
├───application
│       README.md
│
├───domain
│   │   README.md
│   │
│   ├───models
│   │       domain-example.model.ts
│   │
│   ├───ports
│   │       domain-example.port.ts
│   │
│   ├───repositories
│   │       domain-example.repository.ts
│   │
│   └───services
│           domain-example.service.spec.ts
│           domain-example.service.ts
│
└───infrastructure
    │   README.md
    │
    └───repositories
            domain-example-http-repository.service.spec.ts
            domain-example-http-repository.service.ts
            domain-example-mock-repository.service.spec.ts
            domain-example-mock-repository.service.ts

You will find a ReadMe in all folders in order to explain how to manage your file architecture.

Readme

Keywords

Package Sidebar

Install

npm i angular-hexagonal-schematic

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

19.7 kB

Total Files

31

Last publish

Collaborators

  • theo_canonne