2017 © Pedro Peláez
 

symfony-bundle band-accounting-bundle

Accounting system for music bands

image

arnaugm/band-accounting-bundle

Accounting system for music bands

  • Tuesday, August 15, 2017
  • by arnaugm
  • Repository
  • 1 Watchers
  • 0 Stars
  • 34 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 42 % Grown

The README.md

Band accounting bundle

Accounting system for music bands. Symfony2 bundle., (*1)

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

The Versions