clharch
v1.0.0
Published
Outil de génération d'architecture propre (Clean Architecture) par Alassane Coulibaly
Downloads
4
Readme
ClHARCH - Outil de Génération d'Architecture Propre (Clean Architecture)
ClHARCH est un outil de ligne de commande qui vous permet de générer rapidement une architecture propre (Clean Architecture) pour vos projets. Il simplifie le processus de création de fichiers et de dossiers pour suivre les principes de Clean Architecture.
Installation
Pour installer ClHARCH, vous pouvez utiliser npm (Node Package Manager). Assurez-vous d'avoir Node.js installé sur votre machine.
npm install -g clharch
# Utilisation
Une fois ClHARCH installé, vous pouvez l'utiliser pour générer différents types de fichiers et de dossiers. Voici quelques exemples de commandes :
Générer un cas d'utilisation (Use Case)
Pour générer un cas d'utilisation, utilisez la commande suivante :
clharch generate use-case NomDuUseCase
# Générer une interface
Pour générer une interface, utilisez la commande suivante :
clharch generate interface NomDeLInterface
# Générer un contrôleur (Controller)
Pour générer un contrôleur, utilisez la commande suivante :
clharch generate controller NomDuController
# Générer un adaptateur (Adapter)
Pour générer un adaptateur, utilisez la commande suivante :
clharch generate adapter NomDeLAdapter
#Générer un middleware
Pour générer un middleware, utilisez la commande suivante :
clharch generate middleware NomDuMiddleware
Remarque : Assurez-vous d'exécuter ces commandes à l'emplacement de votre choix, où vous souhaitez générer les fichiers et dossiers de votre application Clean Architecture.
Contribuer
Les contributions à ClHARCH sont les bienvenues ! Si vous souhaitez apporter des améliorations, des corrections de bugs ou des fonctionnalités supplémentaires, n'hésitez pas à ouvrir une issue ou à envoyer une pull request.
Licence
Ce projet est sous licence MIT - voir le fichier LICENSE pour plus de détails.