- Php 7.1.3 or higher;
- Composer;
- Symfony-cli;
- MySQL 5.7 or higher;
- PDO-SQLite PHP extension enabled;
- php-intl PHP extension enabled;
- and the usual Symfony application requirements;
- Node.js 6.4.0 or higher;
- Yarn;
-
Clone repository
$ git clone git@github.com:READYTOMASSACRE/php_part.git && cd php_part
-
Install composer dependencies
$ composer install
-
Install frontend dependencies
$ yarn install
-
Set your connection to database in
.env.local
For example:DATABASE_URL="mysql://root:root@0.0.0.0:3306/db_name"
-
Set up migrations
$ php bin/console doctrine:migrations:migrate
-
Fill data from source
$ php bin/console app:get-rbc-news
-
Build frontend
$ yarn encore production
-
Start your server (by default on http://127.0.0.1:8000)
$ symfony server:start