2019-05-11 14:56:58 +02:00
|
|
|
# Requirements:
|
|
|
|
a web server speaking PHP, composer and NPM to install dependencies.
|
2019-05-11 15:09:11 +02:00
|
|
|
I develop on Ubuntu, so here are the steps i recommend:
|
2019-05-11 14:56:58 +02:00
|
|
|
|
2019-05-11 15:09:11 +02:00
|
|
|
|
|
|
|
## Install [Composer](https://getcomposer.org/download/) via PHP command
|
|
|
|
```
|
|
|
|
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
|
|
|
php -r "if (hash_file('sha384', 'composer-setup.php') === '48e3236262b34d30969dca3c37281b3b4bbe3221bda826ac6a9a62d6444cdb0dcd0615698a5cbe587c3f0fe57a54d8f5') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
|
|
|
|
php composer-setup.php
|
|
|
|
php -r "unlink('composer-setup.php');"
|
|
|
|
```
|
2019-05-11 14:56:58 +02:00
|
|
|
|
|
|
|
# Installation:
|
2019-05-11 15:09:11 +02:00
|
|
|
install dependencies with [the bash script](/install.sh):
|
2019-05-11 14:56:58 +02:00
|
|
|
```bash
|
|
|
|
bash install.sh
|
|
|
|
```
|
|
|
|
|
2019-05-11 15:09:11 +02:00
|
|
|
## Configure your app parameters
|
|
|
|
In the [paramters.yml](/app/config/parameters.yml) file, setup your database access. Works with mysql and others via the magic of Doctrine ORM.
|
|
|
|
|
|
|
|
update schema with doctrine in the command line.
|
2019-05-11 14:56:58 +02:00
|
|
|
```bash
|
|
|
|
php bin/console doctrine:schema:update --dump-sql
|
|
|
|
php bin/console doctrine:schema:update --force
|
|
|
|
```
|
|
|
|
compile front end assets
|
|
|
|
```bash
|
|
|
|
yarn run encore dev --watch
|
|
|
|
```
|
|
|
|
|
|
|
|
access the front with your browser
|
|
|
|
```bash
|
|
|
|
php bin/console server:run
|
|
|
|
firefox http://http://127.0.0.1:8000/
|
|
|
|
```
|
|
|
|
enjoy!
|