A Deckbuilder for Android:Netrunner LCG https://netrunnerdb.com
  • PHP 57.2%
  • Twig 21.4%
  • JavaScript 19.2%
  • CSS 2.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Noah 753154ace9
Merge pull request #331 from plural/fix-nav-for-incomplete-packs
Sort for the previous and next cards by position on the card nav.
2019-03-04 15:27:57 -05:00
app Make a very basic fix to the tooltip demo page. 2019-02-24 00:20:00 +00:00
bin migrate to Symfony 3.4 app structure 2018-02-01 11:20:37 +01:00
src Remove commented out code. 2019-03-02 20:28:48 +00:00
tests/AppBundle/Controller migrate to Symfony 3.4 app structure 2018-02-01 11:20:37 +01:00
var migrate to Symfony 3.4 app structure 2018-02-01 11:20:37 +01:00
web As far as I can tell, there is no longer any reason to not display these nice thumbnails in Firefox. 2019-02-27 22:11:46 +01:00
.gitignore Reverted .gitignore to no longer specify composer files. 2018-11-27 14:32:15 +00:00
.htaccess.dist initial commit 2016-05-26 19:06:31 +02:00
composer.json Replacing composer files with originals, removal was also a mistake! 2018-11-27 14:04:37 +00:00
composer.lock Replacing composer files with originals, removal was also a mistake! 2018-11-27 14:04:37 +00:00
convert2utf8mb4.sql add usage instructions 2018-04-03 21:55:06 +02:00
LICENSE initial commit 2016-05-26 19:06:31 +02:00
Makefile use Asset component for card image urls + phpstan level 7 2018-02-02 10:12:55 +01:00
phpunit.xml.dist migrate to Symfony 3.4 app structure 2018-02-01 11:20:37 +01:00
README.md Missed an app/console 2018-11-23 19:02:47 -07:00

This repository holds the source code of NetrunnerDB.

This is not where the cards data is

The data used by NetrunnerDB is at https://github.com/Alsciende/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.

Installing a local copy of NetrunnerDB

Prerequisite

  • you need a recent apache/php/mysql stack
  • your php module must be configured with mbstring.internal_encoding = UTF-8

How to install

  • Go into the directory where your server will reside
  • Clone the repository (or your own fork)
  • This creates a directory named netrunnerdb
  • 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. You'll be asked to input your database connection parameter.
  • Create the database: php bin/console doctrine:database:create
  • If the above command fails, edit app/config/parameters.yml and try again
  • Create the tables: php bin/console doctrine:schema:update --force
  • Import all the data from the data repository: php bin/console app:import:std -f path_to_json_repository
  • Configure your web server with the correct DocumentRoot. Alternatively, use PHP's built-in Web Server. Set your DocumentRoot to netrunnerdb/web
  • Point your browser to /app_dev.php

How to add card images

  • Put the card images in web/card_image/ (web/card_image/01001.png, etc.)

How to update

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

Deck of the Week

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.

Setup an admin account

  • register
  • make sure your account is enabled (or run php bin/console fos:user:activate <username>)
  • run php bin/console fos:user:promote --super <username>

Add or edit cards

  • update the json data
  • run php bin/console app:import:json path_to_json_repository