7.0.2 • Published 3 years ago

@adr-express-ts/cli v7.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@adr-express-ts/cli

This is a CLI for @adr-express-ts/core

Current Modules in CLI

  • Morgan
  • Mongoose
  • Sequelize
  • JSON Web Token
  • Cookie Parser
  • CSRF Middleware
  • OAuth2
    • Authorization Code Grant with PKCE
    • Password Grant

Install global

For Yarn

yarn global add @adr-express-ts/cli

For NPM

npm install -g @adr-express-ts/cli

Commands

If is installed globally, instead of npx @adr-express-ts/cli use adr-cli

To create a project

npx @adr-express-ts/cli create [path]

e.g.

npx @adr-express-ts/cli create MyApp

To create the project without a sub-folder

npx @adr-express-ts/cli create .

To create files (e.g. Actions)

Execute the following command in the same folder with the package.json

npx @adr-express-ts/cli create

You will get the following result:

? What type of file do you want to create? (Use arrow keys)
❯ Action
  Domain
  Responder
  Entity
  Middleware