This guide assumes you know how to use the command-line and that your machine has php and mysql installed.
- install composer
- install npm
- install gulp
- clone the data repository
- clone this repo
cdto it- run
composer installto install PHP dependencies - run
npm installto install JS dependencies - copy the
.envfile to.env.localand modify its configuration settings to your needs - run
php bin/console doctrine:database:createto create the database - run
php bin/console doctrine:migrations:migrateto create the database schema - run
php bin/console doctrine:fixtures:load --env=prodto load default application data - run
php bin/console app:import:std ../throneteki-json-dataor whatever the path to the data repository is to load cards and packs data - run
php bin/console app:restrictions:import ../throneteki-json-dataor whatever the path to the data repository is to load restricted lists - run
php bin/console app:restrictions:activateto activate any restricted lists that apply - run
php bin/console bazinga:js-translation:dump assets/jsto export translation files for the frontend - run
php bin/console fos:js-routing:dump --target=public/js/fos_js_routes.jsto export routes for the frontend - run
gulpto build web assets
- register (or run
php bin/console fos:user:create <username>) - make sure your account is enabled (or run
php bin/console fos:user:activate <username>) - run
php bin/console fos:user:promote --super <username>