arnaugm/band-accounting-bundle

There is no license information available for the latest version (2.1.0) of this package.

Accounting system for music bands

Installs: 47

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Language:JavaScript

Type:symfony-bundle

2.1.0 2017-08-15 09:33 UTC

This package is not auto-updated.

Last update: 2024-04-28 00:37:54 UTC


README

Accounting system for music bands. Symfony2 bundle.

Installation

Step 1: Download the Bundle

$ composer require arnaugm/band-accounting-bundle

Step 2: Enable needed bundles

<?php
// app/AppKernel.php

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

    // ...
}

Step 3: Configure the bundles

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

Step 4: Load the Routes of the Bundle

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

Step 5: Prepare the Web Assets of the Bundle

app/console assets:install --symlink

Development

  • Install the bundle in a dummy Symfony 2.7 application
  • Change the band-accounting dependency for a symlink to this project's root folder
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
  • Start PHP server from the dummy application
cd <dummy_application_folder>
app/console server:start
  • Build client
cd <root_folder>/client
npm install
grunt
  • Enable client watcher
grunt watch

Test

Backend

bin/phpunit

Frontend

npm test