@accalia.io/accalia-tools 中文文档教程

发布于 5年前 浏览 19 项目主页 更新于 3年前

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

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文