This repository holds the source code of NetrunnerDB.
The data used by NetrunnerDB is at https://github.com/NetrunnerDB/netrunner-cards-json. If you want to fix a mistake in some card data, or add the data of a new card, you can submit a PR there. Also, that's where the localized data is.
mbstring.internal_encoding = UTF-8
netrunnerdb
netrunnerdb
composer install
. You'll be asked to input your database connection parameter.php bin/console doctrine:database:create
php bin/console doctrine:schema:update --force
php bin/console app:import:std -f path_to_json_repository
netrunnerdb/web
/app_dev.php
web/card_image/
(web/card_image/01001.png
, etc.)When you update your repository (git pull
), run the following commands:
composer self-update
composer install
(do not run composer update
)php bin/console doctrine:schema:update --force
php bin/console app:import:std path_to_json_repository
To update the deck of the week on the front page:
php bin/console app:highlight decklist_id
where decklist_id
is the numeric id of the deck you want to highlight.
If you want to show site updates on the home page, copy web/update_log.example.txt
to web/update_log.txt
and copy the format with your own data. The update log shows dates, each with a list of updates. The update log should be kept fairly concise, with only information that is relevant to users of the website, not developers.
php bin/console fos:user:activate <username>
)php bin/console fos:user:promote --super <username>
php bin/console app:import:json path_to_json_repository