4.1 Getting started with Integrated
- PHP 5.6 or higher (including JSON, ctype and intl)
- MySQL database 4.0 or higher
- MongoDB database 2.6 or higher
- Solr 4.0 or higher
- Nodejs modules: less, bower, uglify-js, uglifycss
For development a completely configured Vagrantfile is provided, so Vagrant with Virtualbox is the only requirement.
How to install
Install Composer and run the following command:
php composer.phar create-project integrated/integrated path/ "~0.4" --ignore-platform-reqs
During the installation you need to enter the database details etc. If you are using the default development environment with Vagrant you can use the default values (after that you may get some errors because you didn't run Vagrant yet). Otherwise you have to take care of these details yourself.
Start using the application
In the default development environment you can start your Vagrant. On Windows you need the to install the winnfsd and vbguest plugins first. Customize the box name in puphpet/config-custom.yaml if you have multiple Integrated installations on your machine. Now start Vagrant with "vagrant up" in the terminal.
Start an SSH session (in PHPStorm with Tools - Start SSH session - Vagrant) and go to the right folder (cd /vagrant). If you are on the default development environment you have to run "php composer.phar update" to make sure database tables are created.
After that you can create a first user:
php app/console user:create username password ROLE_ADMIN
Integrated is now available on the URL /admin/content (http://localhost:8080/admin/content).
You can login as the user you just created.
Adding test data
Before you can add content you first have to define the content types. You can do this manually by going to Manage - Content types and add some content types. All content types are based on a document type.
An easier way is to load the fixtures is:
php app/console doctrine:mongodb:fixtures:load
php app/console solr:indexer:run -f -e prod