Getting started
mykehsd edited this page May 25, 2012
·
7 revisions
- Git 1.6+
- PHP 5.3.2+
- MongoDB 1.6+
- MySQL 5.x+
- phpUnit 3.5+ (optional)
- zeta components
git clone git://github.com/vespolina/vespolina.git
cd vespolina
curl -s http://getcomposer.org/installer | php
php composer.phar update
This will fetch the main project and all it’s dependencies ( Zend, Symfony, Doctrine, … )
In order to run tests or application, you will need a working Mongo database running and listening by default on port 28017.
- install the mongo database from the official repository
sudo apt-get install mongodb php5-mongo sudo service mongodb start # if needed #try it mongo # you should have a mongo prompt
- You can install mongodb-unstable via their ppa:
- If php5-mongo package doesn’t work, you can install it via PECL:
sudo pecl install mongo # Add the following line to your php.ini file: # extension=mongo.so
MySQL is used to store Orders information.
It’s usage could be dropped in favor of a pure noSQL solution.
I let you search for your distro install instructions.
pear channel-discover components.ez.no
pear install -a ezc/eZComponents
cp app/config/config.yml.dist app/config/config.yml
- config.yml.dist was removed lately
- edit app/config/config.yml to fit your needs ( mongo config, …)
the following bash commands show you how to initialize the database in dev and test environment.
# test env
php app/console-test doctrine:database:create
php app/console-test doctrine:schema:create
# dev env
php app/console doctrine:database:create
php app/console doctrine:schema:create
php app/console doctrine:mongodb:fixtures:load
phpunit -c app