- you need a recent apache/php/mysql stack
- your php module must be configured with
mbstring.internal_encoding = UTF-8
- Go into the directory where your server will reside
- Clone the repository (or your own fork)
- This creates a directory named
netrunnerdb
. This has to be your apache DocumentRoot. - Also, clone the data repository (or your own fork) at https://github.com/zaroth/netrunner-cards-json
- Go into it the directory
netrunnerdb
. - Install Composer (see https://getcomposer.org/download/)
- Install the vendor libs:
composer install
- Create the database:
php app/console doctrine:database:create
- If the above command fails, edit app/config/parameters.yml and try again
- Create the tables:
php app/console doctrine:schema:update --force
- Import all the data from the data repository:
php app/console nrdb:import:json ../netrunner-cards-json
- Configure your web server with the correct DocumentRoot. Alternatively, use PHP's built-in Web Server.
- Point your browser to
/web/app_dev.php
- Put the card images in
src/Netrunnerdb/CardsBundle/Resources/public/images/cards
- Set the
cardimages_dir
value inapp/config/parameters.yml
to the absolute path of thecards
directory
When you update your repository, run the following commands:
composer self-update
composer update
php app/console doctrine:schema:update --force
php app/console cache:clear --env=dev
To update the deck of the week on the front page:
php app/console highlight
- register
- make sure your account is enabled
- run
php app/console fos:user:promote --super <username>
- update the json data
- run
php app/console nrdb:import:json ../netrunner-cards-json