0.3.1 • Published 4 years ago
racoon-cli v0.3.1
Description
Racoon CLI is a command-line interface tool that initializes and helps you create components for ExpressJS applications. You can generate JavaScript and TypeScript projects and automatically generate controllers, services and middlewares, maintaining consistency and structure.
Installation
$ npm install -g racoon-cli
Usage
- Create new ExpressJS project:
$ racoon new PROJECT_NAME [--path=APP_CONTEXT] [--lang=LANGUAGE]
- Replace
PROJECT_NAME
with the name of your project. - Replace
APP_CONTEXT
with base path of your project (default=''). - Replace
LANGUAGE
with the language of your project. (default='javascript').
- Generate new component:
$ racoon generate COMPONENT NAME [--path=ROUTE]
- Replace
COMPONENT
with controller, service or middleware. - Replace
NAME
with _the name of your component. - Replace
ROUTE
with the route of your controller (default is your component name). Controller only.