@accalia.io/accalia-tools 中文文档教程
Accalia-Tools CLI
创建你的全栈项目
Installation
- Using npm:
npm install -g @accalia.io/accalia-tools
- Using yarn:
yarn global add @accalia.io/accalia-tools
Project Usage
- Creates a
ProjectName
directory and installs api, web and app:
accalia-tools init ProjectName
- Creates a
ProjectName
directory but only installs api and app:
accalia-tools init ProjectName --only=api,app,web
- Install only web on current directory:
accalia-tools init . --only=web
Backend Options
- Create a empty Model using Sequelize:
accalia-tools generate:model ModelName
- Create a empty Model using Mongoose:
accalia-tools generate:model ModelName
- Create a empty Controller:
accalia-tools generate:controller ControllerName
- Create a CRUD controller using Sequelize:
accalia-tools generate:crud ModelName
- Create a CRUD controller using Sequelize and create Model:
accalia-tools generate:crud ModelName --model
Frontend Options
- Create a Component:
accalia-tools generate:component ComponentName
- Create a Page:
accalia-tools generate:controller PageName
License
麻省理工学院 - 见许可证
Accalia-Tools CLI
Create your Full-Stack project
Installation
- Using npm:
npm install -g @accalia.io/accalia-tools
- Using yarn:
yarn global add @accalia.io/accalia-tools
Project Usage
- Creates a
ProjectName
directory and installs api, web and app:
accalia-tools init ProjectName
- Creates a
ProjectName
directory but only installs api and app:
accalia-tools init ProjectName --only=api,app,web
- Install only web on current directory:
accalia-tools init . --only=web
Backend Options
- Create a empty Model using Sequelize:
accalia-tools generate:model ModelName
- Create a empty Model using Mongoose:
accalia-tools generate:model ModelName
- Create a empty Controller:
accalia-tools generate:controller ControllerName
- Create a CRUD controller using Sequelize:
accalia-tools generate:crud ModelName
- Create a CRUD controller using Sequelize and create Model:
accalia-tools generate:crud ModelName --model
Frontend Options
- Create a Component:
accalia-tools generate:component ComponentName
- Create a Page:
accalia-tools generate:controller PageName
License
MIT - see LICENSE