1.0.10 • Published 3 months ago

tode-cli v1.0.10

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

Tode CLI

Tode is a CLI that wraps around the popular express.js. It is a tool that provides a scaffolded approach to building node.js/express.js APIs. The Tode CLI comes packed with features that aims to speed up your development with node/express.js.

Version Downloads/week License

Features

  • Scaffolds a Node.js/express.js API project
  • Ability to generate Controllers
  • Ability to generate Models that maps to database tables
  • Ability to generate Service files
  • Ability to to add JWT based authentication to your app with a single command
  • Comes with Knex.js Built in
  • Comes with an easy to use ORM, Objection.js
    • Objection.js is built on top of Knex.js to allow easy database operations
  • Easy middleware creation and usage
  • Easily register controllers to your routes
  • 100% Typescript :wink:

Usage

npm install -g tode-cli
tode create-project hello-world

Commands

tode create-project PROJECT NAME

Scaffolds a fresh Tode project

USAGE
  $ tode create-project PROJECT NAME

ARGUMENTS
  PROJECT NAME  Name of project to create

OPTIONS
  -h, --help  show CLI help

EXAMPLE
  tode create-project myNewProject

tode add:controller CONTROLLER_NAME

Adds a controller to the application

USAGE
  $ tode add:controller CONTROLLER_NAME

ARGUMENTS
  CONTROLLER_NAME  Name of controller to create

OPTIONS
  -h, --help  show CLI help

ALIASES
  $ tode ac

EXAMPLE
  tode add:controller <controller_name>

tode add:model MODEL_NAME

adds a new Databse Model

USAGE
  $ tode add:model MODEL_NAME

ARGUMENTS
  MODEL_NAME  Name of model to create

OPTIONS
  -h, --help  show CLI help

ALIASES
  $ tode am

EXAMPLE
  tode add:model model_name

tode add:resource RESOURCE_NAME

adds a complete resource (mode, controller, service)

USAGE
  $ tode add:resource RESOURCE_NAME

ARGUMENTS
  RESOURCE_NAME  Name of resource to create

OPTIONS
  -h, --help  show CLI help

ALIASES
  $ tode rs

EXAMPLE
  tode add:resource resource_name

tode add:service SERVICE_NAME

adds a new service

USAGE
  $ tode add:service SERVICE_NAME

ARGUMENTS
  SERVICE_NAME  Name of service to create

OPTIONS
  -h, --help  show CLI help

ALIASES
  $ tode as

EXAMPLE
  tode add:service service_name

tode add:auth

adds JWT authentication

USAGE
  $ tode add:auth

OPTIONS
  -h, --help  show CLI help

ALIASES
  $ tode aa

tode help [COMMAND]

Displays help for menu

USAGE
  $ tode help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

Read full documentation here.

1.0.9

3 months ago

1.0.10

3 months ago

1.0.8-alpha

4 months ago

1.0.9-alpha

4 months ago

1.0.7-alpha

1 year ago

1.0.6-alpha

2 years ago

1.0.3-alpha

2 years ago

1.0.1-alpha

2 years ago

1.0.4-alpha

2 years ago

1.0.5-alpha

2 years ago

1.0.2-alpha

2 years ago

1.0.0-alpha

2 years ago

0.2.17

2 years ago

0.2.16

2 years ago

0.2.15

2 years ago

0.2.14

2 years ago

0.2.13

2 years ago

0.2.12

2 years ago

0.2.11

2 years ago

0.2.10

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.9

2 years ago

0.2.8

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.15

2 years ago

0.1.14

2 years ago

0.1.13

2 years ago

0.1.12

2 years ago

0.1.11

2 years ago

0.1.9

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago