Install - lkochniss/intent-backend GitHub Wiki

Requirements

This project requires php5 or php7, MySQL and composer.

Instal vendor packages

Execute

composer install

within your cli. After installing the vendor packages composer will ask for all parameters necessary for running the application. Here are my defaults for local development.

database_host: localhost
database_port: null
database_name: intent-backend
database_user: root
database_password: null
mailer_transport: smtp
mailer_host: 127.0.0.1
mailer_user: null
mailer_password: null
locale: de
secret: n0tS0S3cr3t
session_name: s3ss10nN4m3

Setup the database

To setup the database you can run the script

./scripts/db-rebuild.sh

The script will destroy the database named intent-backend if it exists and create a new empty database intent-backend. Then the script will create all tables by executing the migration-versions within app/DoctrineMigrations. The last step will fill the tables with some test fixtures. The fixtures are located in app/Resources/fixtures/fixtures_dev.yml.