Web 客户端命令

使用 tox:

  • 运行测试套件

    tox -egrunt test
    
  • 运行本地开发服务器

    tox -egrunt serve
    
  • 在没有 API 的情况下运行本地开发服务器

    tox -egrunt_no_api serve
    
  • 打包发行版

    tox -egrunt build
    

在虚拟环境中直接使用 grunt

  • 激活虚拟环境

    source .tox/grunt/bin/activate
    
  • 更新/刷新 JavaScript 构建和运行时依赖项

    npm prune
    npm install
    bower prune
    bower install
    
  • 运行带有 API 和 Web 客户端的本地开发服务器

    grunt serve
    
  • 运行测试套件

    grunt test
    
  • 打包发行版

    grunt build
    
  • 初始化你的数据库

    ./bin/api.sh create-db
    
  • 迁移数据库

    ./bin/api.sh migrate-db
    
  • 启动 API

    ./bin/api.sh start
    
  • 停止 API

    ./bin/api.sh stop