1.1.4 • Published 4 years ago
orbitjs-cli v1.1.4
Orbit CLI
A command-line interface focused on helping programmers develop their NodeJS applications.
How to install
Use yarn or npm to install the Orbit CLI in global mode.
$ yarn global add orbitjs-cli
$ yarn link
$ npm i -g orbitjs-cli
$ npm run link
Available commands
init-server
Install Express and CORS (if necessary) and generates a simple server.js with a Routes import (check generate-router to see more)
$ orbit init-server
>> Orbit will start generating an Express server in src/server.js
>>
>> √ Yarn has been detected on your machine, do you want to use it to install the dependencies? (y/N) · true
>> Orbit will use Yarn to install the following dependencies: express, cors
>>
>> Your server has been created. To use, follow the intructions:
>> yarn dev
generate-router
Install Express (if necessary) and generates a simple routes.js with a default GET / route.
$ orbit generate-router
>> √ Yarn has been detected on your machine, do you want to use it to install the dependencies? (y/N) · true
>> Orbit will use Yarn to install the following dependencies: express
>>
>> Generated src/routes.js.
generate-component
Generates a simple React (or React Native, he detects automatically) component and stylesheet into src/components.
$ orbit generate-component Test
>> Generated src/components/Test.
generate-page
Generates a simple React (or React Native, he detects automatically) page and stylesheet into src/pages.
$ orbit generate-page Test
>> Generated src/pages/Test.