/cli

CLI Utility for Vuetronex

Primary LanguageJavaScriptMIT LicenseMIT

Vuetronex CLI

Vuetronex CLI

Build beatiful Electron application with Vue JS, Vue Router, Knex JS, Bookshelf JS & Tailwind CSS. Run database queries right from the Vue Application.

Installation

Install this package globally.

$ npm i -g @vuetronex/cli

Usage

Run: vex --help or vex to get all the command offered with this package.

Create Project

$ vex new project-name

Create Pages

$ vex make:page ProductPage

Out:
Page Created: ProductPage.vue

You will find the created page inside: src/pages.

Create Components

$ vex make:component ProductItem

Out:
Page Component: ProductItem.vue

You will find the created component inside: src/components.

Create Models

$ vex make:model Product

Out:
Model Created: Product.js

You will find the created model inside: models.

Optionally you can also use -m to make the migration as well. Also, you can use -s to make the seeder at the same go.

Create Migrations

$ vex make:migration product

Out:
Migration Created: 132545626_products.js

You will find the created migration inside: migrations.

Optionally, you can use -a flag if you want alter table migration.

Also, you can use -s to make the seeder at the same go.

Run Migrations

$ vex migrate

Rollback Migrations

$ vex migrate:rollback

Create Seeders

$ vex make:seed product

Out:
Seeder Created: 132545626_products.js

You will find the created seeder inside: seeds.

Running the Seeds

$ vex seed

Testing

Not done yet. Plans for future.

Contributing

Please feel free to contribute to this project to better improve this as a community. And also feel free to suggest any features.

Security

If you discover any security related issues, please email mailtokmahmed@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.