arnaugm / band-accounting-bundle

本软件包最新版本(2.1.0)没有提供许可证信息。

音乐乐队会计系统

安装: 47

依赖: 0

建议: 0

安全: 0

星星: 0

观察者: 2

分支: 0

开放问题: 0

语言:JavaScript

类型:symfony-bundle

2.1.0 2017-08-15 09:33 UTC

This package is not auto-updated.

Last update: 2024-09-29 02:39:25 UTC


README

音乐乐队会计系统。Symfony2 组件。

安装

步骤 1:下载组件

$ composer require arnaugm/band-accounting-bundle

步骤 2:启用所需组件

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new ArnauGM\BandAccountingBundle\ArnauGMBandAccountingBundle(),
            new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(),
        );
    }

    // ...
}

步骤 3:配置组件

# app/config/config.yml
stof_doctrine_extensions:
    default_locale: es_ES
    orm:
        default:
            timestampable: true
    
# ...

步骤 4:加载组件的路由

# app/config/routing.yml
band_accounting:
    resource: '@ArnauGMBandAccountingBundle/Resources/config/routing.yml'
    prefix:   /admin/accounting
    
# ...

步骤 5:准备组件的网页资源

app/console assets:install --symlink

开发

  • 在模拟的 Symfony 2.7 应用中安装组件
  • 将 band-accounting 依赖改为指向本项目根目录的符号链接
mv <dummy_application_folder>/vendor/arnaugm/band-accounting-bundle <dummy_application_folder>/vendor/arnaugm/band-accounting-bundle-bkp
ln -s <root_folder> <dummy_application_folder>/vendor/arnaugm/band-accounting-bundle
  • 从模拟应用启动 PHP 服务器
cd <dummy_application_folder>
app/console server:start
  • 构建客户端
cd <root_folder>/client
npm install
grunt
  • 启用客户端观察者
grunt watch

测试

后端

bin/phpunit

前端

npm test