zebraf1 / Kassa

Private inventory system
GNU General Public License v2.0
0 stars 0 forks source link

Kassa

Build Status

Inventory system

Clone Repository

> git clone https://github.com/zebraf1/Kassa.git

Installation

Vendors are installed via composer. See https://getcomposer.org/download/ for updated installation guide.

Install vendors for project:

> php composer.phar install

Note: if you install composer to a runnable directory (ie --install-dir=/usr/bin) and set --filename=composer:

> composer install

At the end of the installation fill in parameters (saved to app/config/parameters.yml)

Install nodejs packages

> npm install -g bower polymer-cli

Create app.php from desired environment (dev, prod)

> cd web
> ln -s app_dev.php app.php

Building

Build base model files

> php app/console propel:model:build

Install web assets

> php app/console assets:install --relative --symlink

Build database if needed (use --force if needed) or run sql manually from app/propel/sql

> php app/console propel:sql:insert

Run migrations

> php app/console propel:mig:mig

Build frontend

cd src/Rotalia/FrontendBundle/Resources/source/
bower prune
bower install
bower update
polymer build

Deploy new version: composer install, propel build, assets install, bower install, polymer build

> sh build.sh

Testing

Run unit and functional tests with PHPUnit

> bin/phpunit -c app/