DevoKun/swccgdb

★ 0Forks 0PHPGitHub ↗Compare

README

SWCCG Decks Server

Roadmap

Code

JSON formatted card data

  • Card data sourced from swccg card json database.
  • The json files can not be loaded directly, they must be converted to the ThronesDB format.

Create swccgdb card data

git clone [email protected]:swccgpc/swccg-card-json.git
cd swccg-card-json
./make_swccgdb_json.py

Import swccgdb card data

./bin/console app:import:std ./swccg-card-json/swccgdb_json/

Dev setup:

Start MariaDB server using Docker

docker run -d \
  -p 3306:3306 \
  --name mariadb \
  -e MYSQL_ROOT_PASSWORD=swccgdb \
  -e MYSQL_DATABASE=swccgdb \
  -e MYSQL_USER=swccgdb_user \
  -e MYSQL_PASSWORD=swccgdb \
  -d mariadb:latest

Install Composer for PHP

brew install composer

Use Composer to setup DB

composer install
# ./bin/console doctrine:database:create
./bin/console doctrine:schema:create
./bin/console app:import:std ../swccg-card-json/swccgdb_json/

./bin/console server:run

Run Production Server

Clear Production Cache:

./bin/console cache:clear --env=prod --no-debug
./bin/console cache:warmup --env=prod --no-debug

Start Server

./bin/console server:run --env=prod --no-debug

Contributors

alsciendePrestonStahleyfafranco82DevoKunanemirovskydependabot[bot]ystrosstopfstedtzacchiro

Issues