express-modulegen

0.1.3 • Public • Published

Express code generator

Description

Create custom modules for your express application using the CLI.

Using the command:

$ 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 🚧

Using the command:

$ 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

Package Sidebar

Install

npm i express-modulegen

Weekly Downloads

0

Version

0.1.3

License

ISC

Unpacked Size

22.2 kB

Total Files

7

Last publish

Collaborators

  • nachoferrari