express-modulegen
v0.1.3
Published
Create express modules from the cli
Downloads
4
Maintainers
Readme
Express code generator
Description
$ express-codegen generate module
Generate a folder inside your src module containing:
- A repository folder, with index, a repository.interface and a repository
- A service folder, with index, a service.interface and a service
- A controller folder, with index, and a controller
- A dto folder, with createDto and Dto entities and index
🚧 Work in progress 🚧
$ express-codegen generate test
Generates a folder inside the provided directory with
- A dummies folder, with a repository mocking common functions (complete for your custom ones)
- A integration folder for e2e tests
- A unit folder for testing controllers and services
Installation
$ npm i -g express-modulegen
$ npm i --save express-modulegen
Usage
$ express-codegen generate module
? What is the name of the module? Insert-name-here
? Path to the code, or leave blank for src/ (src)
Stay in touch
- Author - Nacho Ferrari