1.0.7 • Published 1 year ago

express-cli-helper v1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

About

express cli helper is a command-line interface tool that helps you to generates an express project structure pre-configured with the most commonly used packages to speed up your development workflow. Instead of wasting time setting up your project structure, express-cli-helper does the heavy lifting FOR YOU with best-practice architectural patterns to encourage well-structured apps.

Installation

npm install -g express-cli-helper

Features

  • Preconfigured database driver (Mongoose and Sequelize)
  • Typescript support
  • Generate Models, Controllers, Routes, Services and Test files directly from the command
  • Easy exception handling
  • Beautiful clear code structure
  • Integrated Testing tool
  • Eslint and Prettier Formatting
  • Integrated Basic Security e.t.c

Quick Start

  1. Install the package globally npm install -g express-cli-helper
  2. Open your command line tool and type the following command to create a new project exp-cli create project-name Subsitute "project-name" with the name of your project.

  3. Select your preferred language (Javascript or Typescript) and Database Driver (Mongoose or Sequelize)

  4. Once project is installed, configure your environment variables

Commands

CommandsDescriptionExample
createCreates a new projectexp-cli create project-name
-m or --modelCreate a new model in the model directoryexp-cli -m post
-c or --controllerCreate a new controller in the controller directoryexp-cli -c post
-s or --serviceCreate a new service in the service directoryexp-cli -s post
-r or --routeCreate a new route in the route directoryexp-cli -r post
-R or --resourceCreate a new route, model, controller and service in their respective directoriesexp-cli -R post
-u or --utilityCreate a new utility file in the utils directoryexp-cli -u random-string
-M or --middlewareCreate a new middleware in the middleware directoryexp-cli -M auth
-V or --validatorCreate a new validator file in the validator directoryexp-cli -v user-validator
-v or --versionGet express-cli-helper versionexp-cli -v
-i or --interfaceCreate a new interface file in the interface directory (Available only on Typescript)exp-cli -i post
-U or --unittestCreate a new unit test file in the test directoryexp-cli -U post
-I or --integrationtestCreate a new integration test file in the test directoryexp-cli -I post
-T or --testCreate new unit and integration testexp-cli -U post
-C or --configCreate a new config file in the config directoryexp-cli -C mail
1.0.7

1 year ago

1.0.6

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago